-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathruff.toml
More file actions
54 lines (47 loc) · 1.07 KB
/
ruff.toml
File metadata and controls
54 lines (47 loc) · 1.07 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
# https://github.com/pypa/hatch/blob/master/ruff_defaults.toml
extend = "ruff_defaults.toml"
# https://github.com/astral-sh/ruff/issues/8627
exclude = [".git", ".mypy_cache", ".ruff_cache", ".venv", ".direnv",
".bzr",
".direnv",
".eggs",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
target-version = "py311"
[format]
preview = true
[lint]
preview = true
# Documentation and ensure that the defaults are included
extend-select = ["D", "E4", "E7", "E9", "F", "C901"]
[lint.pydocstyle]
convention = "numpy"
[lint.per-file-ignores]
'modelscripts/**/*.py' = [
'INP001', # Missing return type annotation for public function
]
"tests/**/test_*.py" = [
"S101", # asserts allowed in tests
]
"**/*.ipynb" = [
"B018", # allow notebooks printing out variables in the mid cell with variable names only
]