generated from NHSDigital/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
53 lines (53 loc) · 1007 Bytes
/
ruff.toml
File metadata and controls
53 lines (53 loc) · 1007 Bytes
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
[lint]
select = [
# Standard configuration taken from https://docs.astral.sh/ruff/linter/#rule-selection.
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# Additional configuration.
# Flake8-bandit
"S",
# Flake8-quotes
"Q",
# Flake8-self
"SLF",
# Flake8-2020
"YTT",
# Flake8-builtins
"A",
# Flake8-commas
"COM",
# Flake8-comprehensions
"C4",
# Flake8-implicit-str-concat
"ISC",
# Flake8-import-conventions
"ICN",
# Flake8-datetimez
"DTZ",
# Flake8-logging
"LOG",
# Flake8-logging-format
"G",
# Flake8-pytest-style
"PT",
# Flake8-type-checking
"TC",
# Flake8-unused-arguments
"ARG"
]
# Ignore Flake8-commas trailing commas as this can conflict with the Ruff standard format.
ignore =["COM812"]
# Ignore assert rule in test files to keep test code susinct and easy to read.
[lint.per-file-ignores]
"**/{tests,steps}/*" = ["S101"]
"**/test_*.py" = ["S101"]