-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathpyproject.toml
More file actions
39 lines (34 loc) · 1.04 KB
/
pyproject.toml
File metadata and controls
39 lines (34 loc) · 1.04 KB
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 100
target-version = "py38"
# Treat "_" as a builtin (same as flake8 config)
builtins = ["_"]
# Exclude external directory (same as black/flake8/etc)
exclude = ["rednotebook/external/*"]
[tool.ruff.lint]
# Enable the same rules that were previously handled by flake8, isort, and pyupgrade.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
# Ignore the same rules that were ignored in flake8 config
ignore = [
"E203", # whitespace before ':' (not compliant with PEP 8)
"E402", # module level import not at top of file
"F821", # undefined name "_"
]
[tool.ruff.lint.per-file-ignores]
# Allow certain files to have different rules.
"rednotebook/journal.py" = ["I001"] # Skip isort for this file
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.vulture]
min_confidence = 0
paths = ["rednotebook/", "dev/whitelist.py"]
exclude = ["external/"]