Newer
Older
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
# Extend the `.ruff.toml` file in the parent directory.
extend = "../.ruff.toml"
ignore = [
"G004", # Logging statement uses f-string
]
[per-file-ignores]
"worker/training.py" = [
"S113", # Probable use of requests call without timeout
]
"worker/entity.py" = [
"N818", # Exception name `MissingEntityType` should be named with an Error suffix
]
"cache.py" = [
"SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements
"PLR5501", # Consider using `elif` instead of `else` then `if` to remove one indentation level
"SIM114", # Combine `if` branches using logical `or` operator
"S608", # Possible SQL injection vector through string-based query construction
]
"worker/base.py" = [
"SIM115", # Use context handler for opening files
"PTH123", # `open()` should be replaced by `Path.open()`
]
"utils.py" = [
"S324", # Probable use of insecure hash functions in `hashlib`: `md5`
"PTH123", # `open()` should be replaced by `Path.open()`
]
"reporting.py" = [
"PTH123", # `open()` should be replaced by `Path.open()`
]
"image.py" = [
"G001", # Logging statement uses `string.format()`
]
"models.py" = [
"G003", # Logging statement uses `+`
]
"__init__.py" = [
"G001", # Logging statement uses `string.format()`
]