Commit graph

1038 commits

Author SHA1 Message Date
Hugo van Kemenade ddc80fc5c3 Update copyright year 2022-08-29 14:34:43 +03:00
Hugo van Kemenade 09fcc776a7 Refactor exceptions into package 2022-08-29 14:30:08 +03:00
Hugo van Kemenade 620323eab0 Refactor helper functions into a utils package 2022-08-29 14:28:22 +03:00
Hugo van Kemenade ece37c4659
Merge pull request #410 from pylast/all-repos_autofix_pypa/gh-action-pypi-publish 2022-07-25 21:44:24 +03:00
Hugo van Kemenade 8a967b52f4 Replace deprecated pypa/gh-action-pypi-publish@master with @release/v1
Committed via https://github.com/asottile/all-repos
2022-07-25 21:21:03 +03:00
Hugo van Kemenade d35eb5220f
Merge pull request #408 from pylast/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-07-04 22:10:41 +03:00
pre-commit-ci[bot] aeba21dedb
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.32.0 → v2.34.0](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.34.0)
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)
2022-07-04 17:40:19 +00:00
Hugo van Kemenade af71e116e0
Merge pull request #406 from pylast/renovate/github-actions 2022-06-21 20:05:13 +03:00
renovate[bot] 7df369dfff
chore(deps): update mheap/github-action-required-labels action to v2 2022-06-21 16:53:11 +00:00
Hugo van Kemenade 790351928f
Merge pull request #405 from pylast/renovate/github-actions
chore(deps): update actions/setup-python action to v4
2022-06-08 20:01:47 +03:00
Hugo van Kemenade 1e9d7d8c94
A Python version is required for v4 2022-06-08 19:55:48 +03:00
Renovate Bot 139e77707d
chore(deps): update actions/setup-python action to v4 2022-06-08 16:08:22 +00:00
Hugo van Kemenade 8ed1ff2a3e
Merge pull request #404 from pylast/renovate/github-actions
chore(deps): update pre-commit/action action to v3
2022-06-06 07:53:46 +03:00
Renovate Bot 3823d77a35
chore(deps): update pre-commit/action action to v3 2022-06-05 20:27:34 +00:00
Hugo van Kemenade 9f6fcf34fb
Merge pull request #401 from pylast/renovate/github-actions 2022-05-02 18:26:56 +03:00
Renovate Bot 75e2dd5f2e
chore(deps): update github-actions to v3 2022-05-02 15:20:10 +00:00
Hugo van Kemenade 11f70bfee9
Merge pull request #400 from pylast/renovate/configure 2022-05-02 18:19:51 +03:00
Hugo van Kemenade 4fc4a6ad89 Allow combining major bumps for GHA 2022-05-02 18:13:09 +03:00
Hugo van Kemenade 861182253c Move to .github and add labels 2022-05-02 18:13:09 +03:00
Renovate Bot ea421db602 chore(deps): add renovate.json 2022-05-02 18:13:09 +03:00
Hugo van Kemenade d3ba0be1a3
Merge pull request #399 from pylast/add-3.11
Support Python 3.11
2022-05-02 18:13:01 +03:00
Hugo van Kemenade afbafe1e76 Fix test 2022-05-02 15:06:07 +03:00
Hugo van Kemenade dec407d958 Add final 'Test successful' to simplify PR status check requirements 2022-05-02 14:59:08 +03:00
Hugo van Kemenade fa94ed0263 Support Python 3.11 2022-05-02 14:59:08 +03:00
Hugo van Kemenade 5b0c879fa0 Update config 2022-05-02 14:59:08 +03:00
Hugo van Kemenade aefa7cef1b
Merge pull request #395 from pylast/cleanup 2022-04-06 18:05:20 +03:00
Hugo van Kemenade caf0915062
Merge pull request #396 from pylast/pre-commit-ci-update-config 2022-04-04 20:47:36 +03:00
Hugo van Kemenade 2478980ca5 For some reason the earlier track is returning duration=0 2022-04-04 20:44:32 +03:00
pre-commit-ci[bot] c1a8a9455f
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v2.31.1)
- [github.com/psf/black: 21.12b0 → 22.3.0](https://github.com/psf/black/compare/21.12b0...22.3.0)
- [github.com/asottile/blacken-docs: v1.12.0 → v1.12.1](https://github.com/asottile/blacken-docs/compare/v1.12.0...v1.12.1)
- [github.com/asottile/setup-cfg-fmt: v1.20.0 → v1.20.1](https://github.com/asottile/setup-cfg-fmt/compare/v1.20.0...v1.20.1)
2022-04-04 17:19:23 +00:00
Hugo van Kemenade 4f37ba41bd
Initialise float as 0.0
And skip Iterator type for now to avoid its complex subscripting
2022-04-03 18:11:42 +03:00
Hugo van Kemenade ac991cbd2c Types and typos 2022-04-03 12:58:44 +03:00
Hugo van Kemenade 14e091c870 autotyping: --annotate-imprecise-magics: add imprecise type annotations for some additional magic methods 2022-04-03 12:49:01 +03:00
Hugo van Kemenade 7b9c73acb7 autotyping: --annotate-magics: add type annotation to certain magic methods 2022-04-03 12:47:58 +03:00
Hugo van Kemenade 54ea354a7a autotyping: --int-param, --float-param, --str-param, --bytes-param: add an annotation to any parameter for which the default is a literal int, float, str, or bytes object 2022-04-03 12:47:10 +03:00
Hugo van Kemenade 5ab3e53a44 autotyping: --bool-param: add a : bool annotation to any function parameter with a default of True or False 2022-04-03 12:46:14 +03:00
Hugo van Kemenade eb4af40d64 autotyping: --scalar-return: add a return annotation to functions that only return literal bool, str, bytes, int, or float objects 2022-04-03 12:45:23 +03:00
Hugo van Kemenade 6c3f3afb3a autotyping: --none-return: add a -> None return type to functions without any return, yield, or raise in their body 2022-04-03 12:45:02 +03:00
Hugo van Kemenade 4e5fe31572 Rename variable e to element 2022-04-03 12:38:16 +03:00
Hugo van Kemenade b0f2f5fe13 For some reason the earlier track is returning duration=0 2022-04-03 12:35:28 +03:00
Hugo van Kemenade 95c8b16564 Upgrade Black to fix Click 2022-04-03 12:35:28 +03:00
Hugo van Kemenade 549437b640 Fix 'a a...' to 'an a...' 2022-04-03 12:33:38 +03:00
Hugo van Kemenade b373de6c68 More f-strings 2022-04-03 12:33:38 +03:00
Hugo van Kemenade 5f8d150652 Remove redundant _get_cache_backend and add some typing 2022-04-03 12:33:38 +03:00
Hugo van Kemenade 83aeaddc43
Merge pull request #394 from pylast/update-logging 2022-04-03 10:57:22 +03:00
Hugo van Kemenade dd8836e59b Logging: log method names at INFO level, also log API return data at DEBUG level 2022-03-03 13:15:26 +02:00
Hugo van Kemenade 5c9509dfc4
Merge pull request #392 from pylast/all-repos_autofix_all-repos-sed 2022-03-01 11:51:54 +02:00
Hugo van Kemenade b726227d5d Upgrade to actions/setup-python@v3
Committed via https://github.com/asottile/all-repos
2022-03-01 11:48:22 +02:00
Hugo van Kemenade f28a74791d
Merge pull request #390 from pylast/fix-album-mbid-none 2022-02-27 20:18:30 +02:00
Hugo van Kemenade fe7484b3ca If album has no MBID, album.get_getmbid() returns None 2022-02-27 16:46:29 +02:00
Hugo van Kemenade 00f92eb436
Merge pull request #391 from pylast/fix-coverage 2022-02-27 16:45:33 +02:00