generated from Appsilon/tapyr-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
33 lines (31 loc) · 1.23 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
target-version = "py310"
line-length = 120
[lint]
select = [
"I", # isort: Import sorting
"S", # flake8-bandit: Security checks from Bandit
"B", # flake8-bugbear: Finds likely bugs and design problems in your program
"PT", # flake8-pytest-style: PyTest style checks
"DTZ", # flake8-datetimez: Checks for correct datetime usage
"ISC", # flake8-implicit-str-concat: Checks for implicitly concatenated strings in a list
"RET", # flake8-return: Checks return values
"PTH", # flake8-use-pathlib: Encourages the use of pathlib over os.path
"N", # pep8-naming: Naming convention checks
"E", # pycodestyle errors: Checks against PEP 8 errors
"F", # Pyflakes: Checks for various errors
"UP", # pyupgrade: Checks for older syntax versions and suggests upgrades
"NPY", # NumPy-specific rules
"PD", # pandas-vet: Checks for pandas best practices and potential errors
"RUF", # Ruff-specific rules: Rules specific to Ruff
]
unfixable = [
"B", # Marking flake8-bugbear as unfixable, indicating that these warnings should be manually reviewed
]
ignore = [
"ISC001" # ruff recommends disabling the rule
]
[lint.per-file-ignores]
"tests/*" = [
"S101", # Security check: assert statements
"S311", # Security check: random
]