-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathruff.toml
More file actions
17 lines (16 loc) · 1.02 KB
/
ruff.toml
File metadata and controls
17 lines (16 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Basic Ruff configuration
target-version = "py39"
line-length = 150 # longest line length you can have in the python script
exclude = [] # exclude the script from the ruff check
[lint]
select = [
"E", # Error(E) pycode style checks for intendations. For more details: https://docs.astral.sh/ruff/rules/#error-e
"F", # Flakes(F) uses Pyflakes, a program that checks for errors in source files. Important to have for writing clean scripts. For more details: https://docs.astral.sh/ruff/rules/#pyflakes-f
"W", # Warning(W), relevant to give out pycode style warnings.
"N999", # N999 is a rule that checks for invalid module name
"S105", # S105 is a rule that checks for the presence of a hardcoded string password
"S106", # Checks for potential uses of hardcoded passwords in function calls.
"S107", # Checks for potential uses of hardcoded passwords in function argument defaults.
]
# a sample exception added for certain rules to be ignored by ruff, despite having the category selected selected
ignore = ["E501"]