-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
40 lines (38 loc) · 966 Bytes
/
ruff.toml
File metadata and controls
40 lines (38 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# For a list of available rules, see: https://docs.astral.sh/ruff/rules/
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"UP", # pyupgrade
"I", # isort
"PTH", # flake8-use-pathlib
"PT", # flake8-pytest-style
"B", # bugbear
"SIM", # flake8-simplify
]
ignore = [
"E501", # Supress line-too-long warnings: trust the formatter's judgement on this one.
"W505", # Supress line-too-long warnings: trust the formatter's judgement on this one.
]
[lint.per-file-ignores]
# Tests: relax pytest-style and pathlib/style constraints
"tests/**/*.py" = [
"PT",
"PTH",
"SIM105",
"SIM115",
"SIM117",
"B011",
"B017",
"F841",
]
# Visualization modules: relax modernization and minor style requirements
"src/zyra/visualization/**/*.py" = [
"UP007",
"SIM105",
"PTH123",
"F841",
]
# Optional ImageManager re-export
"src/zyra/utils/__init__.py" = ["F401"]