forked from libratbag/libratbag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
40 lines (39 loc) · 856 Bytes
/
pyproject.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
[tool.black]
target-version = ["py37"]
[tool.ruff]
target-version = "py37"
lint.select = [
# pycodestyle
"E",
"W",
# pyflakes
"F",
# pyupgrade
# Use modern Python features for the best possible develop experience.
"UP",
# flake8-bugbear
# Find obvious bugs.
"B",
# flake8-pie
"PIE",
# flake8-return
"RET",
# pep8-naming
# `Error` suffix on exception names.
"N818",
# flake8-simplify
"SIM",
]
lint.ignore = [
# Line too long.
# We have some places where it's just impossible to make it fit.
"E501",
# Use 'contextlib.suppress(...)' instead of try-except-pass.
# I think it's better to use integrated language constructs instead
# of libraries.
"SIM105",
# Use `"key" in dict` instead of `"key" in dict.keys()`.
# While the lint itself is good, fixing it's warnings causes `KeyError`
# errors with `GLib.Variant`.
"SIM118",
]