-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
49 lines (46 loc) · 1.48 KB
/
pyproject.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
[tool.ruff]
target-version = "py38"
line-length = 100
extend-exclude = [
".github",
"__pycache__",
"firmware",
"openocd_scripts",
"third_party",
"docs/source/conf.py"
]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"E", # pycodestyle
"EM", # flake8-errmsg
"F", # Pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"Q", # flake8-quotes
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"B011", # Do not `assert False` #FIXME
"E203", # Whitespace before ':'
"D105", # Missing docstring in magic method
"D204", # 1 blank line required after class docstring
"D205", # 1 blank line required between summary line and description
"D200", # One-line docstring should fit on one line
"ISC001", # Single-line-implicit-string-concatenation
"EM101", # Checks for the use of string literals in exception constructors
"EM102", # Checks for the use of f-strings in exception constructors
"N802", # Checks for functions names that do not follow the `snake_case` naming convention
"N805" # Checks for instance methods that use a name other than `self` for their first argument
]
[tool.ruff.lint.isort]
known-first-party = ["rowhammer-tester"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"