Skip to content

Commit fe9d5a3

Browse files
authored
Merge pull request #45 from genotrance/flake8-toml-config
Use flake8-toml-config
2 parents fe941b1 + e095ff1 commit fe9d5a3

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: "trailing-whitespace"
2727

2828
- repo: "https://github.com/asottile/pyupgrade"
29-
rev: "v3.19.1"
29+
rev: "v3.20.0"
3030
hooks:
3131
- id: "pyupgrade"
3232
name: "Enforce Python 3.8+ idioms"
@@ -44,19 +44,20 @@ repos:
4444
- id: "isort"
4545

4646
- repo: "https://github.com/pycqa/flake8"
47-
rev: "7.2.0"
47+
rev: "7.3.0"
4848
hooks:
4949
- id: "flake8"
5050
additional_dependencies:
51-
- "flake8-bugbear==24.8.19"
51+
- "flake8-toml-config==1.0.0"
52+
- "flake8-bugbear==24.12.12"
5253

53-
- repo: "https://github.com/editorconfig-checker/editorconfig-checker.python"
54-
rev: "3.2.1"
54+
- repo: "https://github.com/editorconfig-checker/editorconfig-checker"
55+
rev: "v3.3.0"
5556
hooks:
5657
- id: "editorconfig-checker"
5758

5859
- repo: "https://github.com/python-jsonschema/check-jsonschema"
59-
rev: "0.32.1"
60+
rev: "0.33.2"
6061
hooks:
6162
- id: "check-dependabot"
6263
- id: "check-github-workflows"

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ source = [
6161
fail_under = 82
6262

6363

64+
# flake8
65+
# ------
66+
67+
[tool.flake8]
68+
max-line-length = 80
69+
extend-select = ["B950"]
70+
extend-ignore = ["E203", "E501", "E701"]
71+
72+
6473
# mypy
6574
# ----
6675
#

tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,3 @@ commands =
7676
# Update pre-commit hook versions
7777
pre-commit autoupdate
7878
upadup
79-
80-
81-
[flake8]
82-
max-line-length = 88
83-
extend-ignore = E203

0 commit comments

Comments
 (0)