-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
51 lines (46 loc) · 1.25 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
# Copyright (C) 2023 Maxwell G <[email protected]>
# SPDX-License-Identifier: GPL-2.0-or-later
src = [
"src",
"tests",
]
exclude = [
# Contains vendored code that we don't want to touch.
"src/fedrq/_compat.py"
]
[lint]
select = [
"A", # flake8-builtins
"ARG", # unused-arguments
"B", # flake8-bugbear
"E", # pycodestyle errors
"F", # pyflakes
"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",
# Class attribute is shadowing a Python builtin
"A003",
# No explicit `stacklevel` keyword argument found
"B028",
# Line with empty comment
# I occassionally use these on purpose for sorting/formatting reasons
"PLR2044",
]
[lint.extend-per-file-ignores]
"tests/*" = ["ARG"]