-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
40 lines (37 loc) · 972 Bytes
/
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
34
35
36
37
38
39
40
# Copyright (C) 2024 Maxwell G <[email protected]>
# SPDX-License-Identifier: MIT
src = [
"src",
"tests",
]
[lint]
select = [
"A", # flake8-builtins
"ARG", # unused-arguments
"B", # flake8-bugbear
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"F", # pyflakes
"PERF", # Perflint
"PL", # pylint
"SIM", # flake8-simplify
"W", # pycodestyle warnings
]
ignore = [
# function-call-in-default-argument
# There's nothing wrong with calling a function that returns an immutable
# object
"B008",
# `zip()` without an explicit `strict=` parameter.
# `zip()` only has that parameter in py310+
"B905",
# Allow overwriting loop variable
"PLW2901",
# Magic value used in comparison
# This is a good rule, but the checker is a bit overzealous.
"PLR2004",
# Too many arguments to function call
"PLR0913",
]
[lint.extend-per-file-ignores]
"tests/*" = ["ARG"]