-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathruff.toml
More file actions
54 lines (51 loc) · 1.52 KB
/
ruff.toml
File metadata and controls
54 lines (51 loc) · 1.52 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Assume Python 3.10
target-version = "py310"
[lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["ALL"]
ignore = ["D203", "D212", "E501"]
[lint.per-file-ignores]
# "src/jobs/remove_bad_files.py" = ["ERA001"]
"tests/settings/test__user_config_from_env.py" = ["S101"]
"tests/jobs/test_strikes_handler.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_unmonitored.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_stalled.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_slow.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_orphans.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_missing_files.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_metadata_missing.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_failed_imports.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_failed_downloads.py" = ["S101", "SLF001"]
"tests/jobs/test_remove_bad_files.py" = ["S101", "SLF001"]
"tests/jobs/test_removal_handler.py" = ["S101", "SLF001"]