Skip to content
Snippets Groups Projects
.ruff.toml 1.28 KiB
Newer Older
# 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()`
]