forked from canonical/cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
62 lines (56 loc) · 1.33 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 79
include = '(brpm|bddeb|\.py)$'
[tool.isort]
profile = "black"
line_length = 79
# We patch logging in main.py before certain imports
skip = ["cloudinit/cmd/main.py", ".tox", "packages", "tools"]
[tool.mypy]
follow_imports = "silent"
warn_unused_ignores = "true"
warn_redundant_casts = "true"
exclude = []
[[tool.mypy.overrides]]
module = [
"apport.*",
"BaseHTTPServer",
"cloudinit.feature_overrides",
"configobj",
"debconf",
"httplib",
"jsonpatch",
"netifaces",
"paramiko.*",
"pip.*",
"pycloudlib.*",
"responses",
"serial",
"tests.integration_tests.user_settings",
"uaclient.*",
]
ignore_missing_imports = true
[tool.ruff]
target-version = "py37"
line-length = 79
# E, W, and F make up the entirety of default flake8
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"CPY", # flake8-copyright
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PIE", # flake8-pie
"Q", # flake8-quotes
]
ignore = [
"E731", # Do not assign a `lambda` expression, use a `def`
]
[tool.ruff.per-file-ignores]
"cloudinit/cmd/main.py" = ["E402"]