Commit a34c72d
authored
chore: fix broken pre-commit hooks (#60)
* chore: bump pre-commit hook versions for Python 3.12 / click 8.1
black 20.8b1 was broken against click>=8.1 (ImportError: _unicodefun),
and flake8 3.9.2 was broken on Python 3.12 (EntryPoints.get removed).
Bumps black, flake8, their transitive plugins, and blacken-docs to
currently-maintained versions.
* chore: remove invalid 'safe = true' from [tool.black] in pyproject.toml
Modern black does not recognize 'safe' as a pyproject config key and
emits "Invalid config keys detected: 'safe'" on every run. --safe is
still the default CLI behavior, so removing the key is a no-op for
actual formatting.
* chore: apply black 24 reformat and fix flake8 lint errors
Applies black 24.10.0 formatting to the repo (mostly trailing-comma
and blank-line-after-module-docstring changes from 4 years of black
style evolution) and fixes the 29 E501 line-length errors plus 1 D419
empty-docstring that the upgraded flake8 surfaced. Bundled together
because the formatting hook and the lint hook block each other in
intermediate states — keeping them in one commit avoids a red
midpoint in the series.
* chore: bump black and flake8 dev-deps to align with pre-commit
black ^22.0.0 -> ^24.0.0 and flake8 ^6.0.0 -> ^7.0.0 so that
'poetry run black' / 'poetry run flake8' (and editor integrations
using the poetry venv) produce the same output as the pre-commit
hooks. Regenerates poetry.lock; transitive bumps are scoped to
black/flake8 deps only (packaging, pycodestyle, pyflakes,
typing-extensions).
* chore: pin pre-commit flake8 to 7.3.0 to match poetry-resolved version
Keeps the pre-commit hook and the poetry dev-dep on the exact same
flake8 version so local and CI runs can't diverge.1 parent f6f7eae commit a34c72d
28 files changed
Lines changed: 188 additions & 131 deletions
File tree
- docs
- shipengine
- enums
- errors
- http_client
- util
- tests
- errors
- services
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments