-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruff.toml
86 lines (82 loc) · 1.52 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This file is being managed from within https://github.com/VerticeOne/vertice-file-templates, do not edit directly
target-version = "py311"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".aws-sam",
]
[lint]
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
"UP",
# isort
"I",
# commas
"COM",
# flake8-simplify
"SIM",
# flake8-datetimez
"DTZ",
# flake8-import-conventions
"ICN",
# flake8-print
"T20",
# flake8-pytest-style
"PT",
# flake8-quotes
"Q",
# flake8-return
"RET",
# flake8-unused-arguments
"ARG",
# eradicate
"ERA",
# pandas-vet
"PD",
# NumPy-specific rules
"NPY",
# Ruff-specific rules
"RUF",
# Perflint
"PERF",
# pep8-naming
"N",
# flynt
"FLY",
]
ignore = [
"E501", # Line too long (x > 88)
"D400", # End in period
"COM812", # Incompatible with `ruff format`
"FLY002", # Avoid f-strings joining
"PD901", # Avoid using the generic variable name `df` for DataFrames
"RUF012", # Mutable class attributes should be annotated with
"PT001", # PyTest fixture
]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[lint.per-file-ignores]
"__init__.py" = ["N999"]