-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
101 lines (95 loc) · 2.08 KB
/
ruff.toml
File metadata and controls
101 lines (95 loc) · 2.08 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
target-version = "py311"
line-length = 119
respect-gitignore = true
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",
".history",
]
[lint]
extend-select = [
"A", # bad name
"ANN", # flake8-annotations
"ARG", # bad arguments
"ASYNC", # async
"B", # flake8-bugbear
"C", # Complexity
"C4", #flake8-comprehensions
"E", # PEP8 errors
"ERA", # commented-out-code
"F", # PEP8 formatting
"FLY", # static-join-to-f-string
"FAST", # FastAPI (FAST)
"FLY", # static-join-to-f-string
"FURB", # refurb
"I", # Import sorting
"INP", # flake8-no-pep420
"N", # name-conventions
"PERF", # Perflint
"PIE", # Improper comments
"PTH", # use-pathlib
"PT", # pytest
"RET", # unnecessary-return
"RUF", # specific rules
"S", # flake8-bandit
"SIM", # simplify
"T10", # debug found
"T201", # print found
"TID", # tidy-imports
"UP", # Pyupgrade upgrades
"W", # PEP8 warnings
]
ignore = [
"B008", # Do not perform function calls in argument defaults
"B009", # get-attr-with-constant
"B010", # set-attr-with-constant
"ERA001",
"C901",
"E402", # Module level import not at top of file
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
"ANN204", # ANN204 Missing return type annotation for special method
# "ANN201", # Missing return type annotation for public function
"E501", # Line too long
]
[lint.per-file-ignores]
"tests/**/*.py" = [
"S101",
"ANN201",
"ANN001",
"ANN002",
"ANN003",
"ANN202",
"ARG001",
]
[lint.flake8-builtins]
builtins-ignorelist = ["input", "id", "bytes", "type"]
[lint.isort]
force-wrap-aliases = true
combine-as-imports = true
split-on-trailing-comma = true
[lint.pydocstyle]
convention = "numpy"