-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
70 lines (64 loc) · 1.27 KB
/
ruff.toml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
src = ["src"]
target-version = "py311"
line-length = 127
respect-gitignore = false
exclude = [
".bzr",
".direnv",
".eggs",
"*.egg-info",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
"__pycache__",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"dist",
"node_modules",
"site-packages",
"venv",
]
include = [
# To avoid ignoring files when running on Github actions
]
[lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"B", # flake8-bugbear
"UP", # pyupgrade
"I", # isort
"D", # pydocstyle
"S", # flake8-bandit
"TID", # flake8-tidy-imports
]
ignore = [
"S101", # Test for use of assert
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
]
unfixable = [
"B", # Avoid trying to fix flake8-bugbear (`B`) violations.
]
[lint.pydocstyle]
convention = "numpy"
[per-file-ignores]
# Ignore all directories named `tests`.
"**tests/**" = ["D"]
# Ignore all files that end in `_tests.py`.
"*_tests.py" = ["D"]
[lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"