Skip to content

Commit 6553dbf

Browse files
authored
chore: bump flake8 to v4 and add autopep8 (#93)
* chore: bump `flake8` to v4 and add `autopep8` Signed-off-by: Jan Kowalleck <[email protected]> * chore: make pep8 known in the contrib docs Signed-off-by: Jan Kowalleck <[email protected]>
1 parent fdd20ca commit 6553dbf

File tree

3 files changed

+58
-35
lines changed

3 files changed

+58
-35
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ To install dev-dependencies and tools:
1212
poetry install
1313
```
1414

15+
## Code style
16+
17+
This project uses [PEP8] Style Guide for Python Code.
18+
Get it applied via:
19+
20+
```shell
21+
poetry run autopep8 --in-place -r .
22+
```
23+
1524
## Testing
1625

1726
```shell
@@ -27,4 +36,5 @@ to show that you agree to publish your changes under the current terms and licen
2736
git commit --signed-off ...
2837
```
2938

30-
[poetry]: https://python-poetry.org
39+
[poetry]: https://python-poetry.org
40+
[PEP8]: https://www.python.org/dev/peps/pep-0008

poetry.lock

Lines changed: 43 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ types-setuptools = ">= 57.0.0"
5555
types-toml = "^0.10.0"
5656

5757
[tool.poetry.dev-dependencies]
58-
pdoc3 = "^0.10.0"
5958
tox = "^3.24.3"
6059
coverage = "^6.2"
6160
mypy = "^0.920"
62-
flake8 = "^3.9.2"
63-
flake8-annotations = "^2.0"
61+
autopep8 = "^1.6.0"
62+
flake8 = "^4.0.1"
63+
flake8-annotations = {version = "^2.7.0", python = ">= 3.6.2"}
6464
flake8-bugbear = "^21.11.29"
65+
pdoc3 = "^0.10.0"
6566

6667
[build-system]
6768
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)