Commit graph

1007 commits

Author SHA1 Message Date
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
Hugo van Kemenade f7090f26a0 Output coverage XML for Codecov to upload 2022-02-27 16:38:08 +02:00
Hugo van Kemenade 4ae6c16f57
Merge pull request #379 from pylast/httpx 2022-02-27 16:22:07 +02:00
Hugo van Kemenade 1a45c3b919 Allow setting multiple proxies + some cleanup 2022-02-27 16:18:41 +02:00
Hugo van Kemenade da2e7152ba Update blacken-docs to match main black 2022-02-27 16:18:41 +02:00
Hugo van Kemenade a418f64b15 Simplify _unicode 2022-02-27 16:18:41 +02:00
Hugo van Kemenade 122c870312 Replace _string with str 2022-02-27 16:18:41 +02:00
Hugo van Kemenade 44ade40579 Replace http.client with HTTPX 2022-02-27 16:18:41 +02:00
Hugo van Kemenade 26db2bc68b
Merge pull request #388 from pylast/rm-deprecations 2022-02-27 16:17:06 +02:00
Hugo van Kemenade bb05699252 Remove deprecated is_streamable and is_fulltrack_available 2022-02-27 16:13:04 +02:00
Hugo van Kemenade 7f4bea6f07
Merge pull request #387 from pylast/revert-383-add-3.6 2022-02-27 16:11:20 +02:00
Hugo van Kemenade d610721167 Drop support for Python EOL 3.6 2022-02-27 16:08:33 +02:00
Hugo van Kemenade 6465f4cf51
Update link to deploy action 2022-01-31 12:50:28 +02:00
Hugo van Kemenade bafc3fe673
Merge pull request #385 from pylast/rm-mergify 2022-01-24 22:57:48 +02:00
Hugo van Kemenade b151dd0c93 Remove Mergify, use native GitHub auto-merge instead 2022-01-24 22:54:54 +02:00
Hugo van Kemenade dd869b5183
Merge pull request #384 from pylast/deprecate-streamable 2022-01-24 22:37:16 +02:00
Hugo van Kemenade 3ffe7cf65a test_get_userplaycount now passes 2022-01-24 22:26:16 +02:00
Hugo van Kemenade 1841fb66dc This test now passes, although some other MBID searches are still broken 2022-01-24 22:07:03 +02:00
Hugo van Kemenade d672e89f23 Is an xfail passing unexpectedly? Make it fail 2022-01-24 21:15:11 +02:00
Hugo van Kemenade 3b7cb9c8c7 Deprecate is_streamable and is_fulltrack_available 2022-01-24 19:05:06 +02:00
Hugo van Kemenade e14f51a32a
Merge pull request #383 from pylast/add-3.6 2022-01-24 19:04:27 +02:00
Hugo van Kemenade c63e0a75ef Restore support for Python 3.6 2022-01-24 18:02:15 +02:00
Hugo van Kemenade a204055798
Merge pull request #382 from pylast/remove-invalid-xml-chars-from-response 2022-01-12 22:14:45 +02:00
Hugo van Kemenade 9676714dcf Strip invalid XML characters from response 2022-01-12 13:04:34 +02:00
Hugo van Kemenade 2469a6ea47
Merge pull request #378 from pylast/rm-3.6 2022-01-11 15:35:19 +02:00
Hugo van Kemenade d46aabc372
Merge pull request #380 from pylast/pre-commit-ci-update-config 2022-01-03 19:06:47 +02:00
pre-commit-ci[bot] 129e4392fc
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.29.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.29.1...v2.31.0)
- [github.com/psf/black: 21.11b1 → 21.12b0](https://github.com/psf/black/compare/21.11b1...21.12b0)
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0)
- [github.com/tox-dev/tox-ini-fmt: 0.5.1 → 0.5.2](https://github.com/tox-dev/tox-ini-fmt/compare/0.5.1...0.5.2)
2022-01-03 16:58:33 +00:00
Hugo van Kemenade 8b66e69004 Drop support for soon-EOL Python 3.6 2021-11-21 18:43:32 +02:00
Hugo van Kemenade 2966ecfd13
Merge pull request #367 from ChandlerSwift/fix-limit-on-user-top-tracks 2021-11-21 18:30:38 +02:00
Hugo van Kemenade 4d4d167394
Merge pull request #377 from pylast/speedup 2021-11-21 18:21:06 +02:00
Hugo van Kemenade b48fbb4eb8 Speedup: Use faster importlib.metadata for getting version 2021-11-21 18:07:40 +02:00
Hugo van Kemenade d3ee0e4942
Merge pull request #376 from pylast/setup-py-to-cfg 2021-11-21 17:51:06 +02:00