Skip to content

Commit 8babf82

Browse files
authored
Use flake8-toml-config (#137)
2 parents 32f61bf + 5b47e27 commit 8babf82

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
@@ -45,6 +45,7 @@ repos:
4545
hooks:
4646
- id: "flake8"
4747
additional_dependencies:
48+
- "flake8-toml-config==1.0.0"
4849
- "flake8-bugbear==24.12.12"
4950

5051
- 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
@@ -78,6 +78,15 @@ directory = "htmlcov/"
7878
skip_covered = false
7979

8080

81+
# flake8
82+
# ------
83+
84+
[tool.flake8]
85+
max-line-length = 80
86+
extend-select = ["B950"]
87+
extend-ignore = ["E203", "E501", "E701"]
88+
89+
8190
# isort
8291
# -----
8392

tox.ini

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

118118
# Update copyrights
119119
copyrights: chipshot --update docs/ src/ tests/ CHANGELOG.rst
120-
121-
122-
[flake8]
123-
max-line-length = 88
124-
extend-ignore = E203

0 commit comments

Comments
 (0)