Skip to content

Commit 347d531

Browse files
authored
Use flake8-toml-config (#523)
2 parents 74a0bf4 + ceb3622 commit 347d531

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ repos:
4848
hooks:
4949
- id: "flake8"
5050
additional_dependencies:
51+
- "flake8-toml-config==1.0.0"
5152
- "flake8-bugbear==24.12.12"
5253

5354
- repo: "https://github.com/editorconfig-checker/editorconfig-checker"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Project development
2+
-------------------
3+
4+
* Migrate the flake8 configuration to ``pyproject.toml`` using
5+
the `flake8-toml-config <https://github.com/kurtmckee/flake8-toml-config>`_ plugin.

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ fail_under = 93
5454
directory = "htmlcov/"
5555

5656

57+
# flake8
58+
# ------
59+
60+
[tool.flake8]
61+
max-line-length = 80
62+
extend-select = ["B950"]
63+
extend-ignore = ["E203", "E501", "E701"]
64+
65+
5766
# isort
5867
# -----
5968

tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,3 @@ commands =
9595

9696
# Run pre-commit immediately, but ignore its exit code
9797
- pre-commit run -a
98-
99-
100-
[flake8]
101-
max-line-length = 88
102-
extend-ignore = E203

0 commit comments

Comments
 (0)