Skip to content

Commit 1f0f08a

Browse files
committed
Restored ruff config/dep for IDE squiggling
1 parent e631331 commit 1f0f08a

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ repos:
44
rev: v6.0.0
55
hooks: # https://github.com/pre-commit/pre-commit-hooks/#hooks-available
66
- id: check-json
7+
- id: check-toml
78
- id: double-quote-string-fixer
89
- id: end-of-file-fixer
910
- id: trailing-whitespace
@@ -21,16 +22,6 @@ repos:
2122
rev: v0.15.8
2223
hooks:
2324
- id: ruff
24-
args: # https://docs.astral.sh/ruff/rules/
25-
- --select=E # enforce all pycodestyle error-level rules
26-
- --select=F # enforce all Pyflakes rules (logic)
27-
- --select=W # enforce all pycodestyle warning-level rules
28-
- --ignore=E401 # allow multiple imports on one line
29-
- --ignore=E402 # allow module level import at top of file
30-
- --ignore=E701 # allow multiple statements on one line (colon)
31-
- --ignore=E702 # allow multiple statements on one line (semicolon)
32-
- --ignore=E722 # allow bare exceptions
33-
- --line-length=120
3425

3526
- repo: https://github.com/adrienverge/yamllint
3627
rev: v1.38.0

.ruff.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[lint]
2+
select = [
3+
"E", # enforce all pycodestyle error-level rules
4+
"F", # enforce all Pyflakes rules (logic)
5+
"W" # enforce all pycodestyle warning-level rules
6+
]
7+
ignore = [ # https://docs.astral.sh/ruff/rules/
8+
"E401", # allow multiple imports on one line
9+
"E402", # allow module level import at top of file
10+
"E701", # allow multiple statements on one line (colon)
11+
"E702", # allow multiple statements on one line (semicolon)
12+
"E722" # allow bare exceptions
13+
]
14+
15+
[lint.pycodestyle]
16+
max-line-length = 120

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
nox>=2026.2.9
22
pre-commit>=4.5.1,<5
3+
ruff>=0.15.8,<1
34
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability

0 commit comments

Comments
 (0)