Skip to content

Commit 95132ea

Browse files
authored
Use flake8-toml-config (#69)
2 parents 802461d + d33ec87 commit 95132ea

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.pre-commit-config.yaml

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

5455
- 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+
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
@@ -47,6 +47,15 @@ skip_covered = true
4747
fail_under = 85
4848

4949

50+
# flake8
51+
# ------
52+
53+
[tool.flake8]
54+
max-line-length = 80
55+
extend-select = ["B950"]
56+
extend-ignore = ["E203", "E501", "E701"]
57+
58+
5059
# mypy
5160
# ----
5261

tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,3 @@ passenv =
9999
commands =
100100
poetry version "{env:VERSION}"
101101
scriv collect
102-
103-
[flake8]
104-
max-line-length = 80
105-
extend-select = B950
106-
extend-ignore = E203,E501,E701

0 commit comments

Comments
 (0)