-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.ruff.toml
More file actions
47 lines (45 loc) · 1.25 KB
/
.ruff.toml
File metadata and controls
47 lines (45 loc) · 1.25 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
target-version = "py310"
show-fixes = true
[lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
]
ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
"NPY002", # Replace legacy random
"PD008", # False positive with Jax
"PLC2401", # Non-ascii
"B905", # zip() without an explicit strict=
]
[lint.per-file-ignores]
"*.ipynb" = [
"F811", # Redefinition of unused
]
"check.py" = [
"F401", # This files does this
]
"02_temperatures.ipynb" = [
"F401", # Unused import is used in %%timeit
"F821", # Can't look inside magic (yet)
]
"03_mcmc.ipynb" = ["F821"]