-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
91 lines (81 loc) · 1.47 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is a template `pyproject.toml` file for ops charms
# This file is managed by bootstack-charms-spec and should not be modified
# within individual charm repos. https://launchpad.net/bootstack-charms-spec
[tool.flake8]
ignore = ["D100", "D101", "D102", "D103", "W503", "W504"]
exclude = ['.eggs', '.git', '.tox', '.venv', '.build', 'lib', 'report']
max-line-length = 99
max-complexity = 10
[tool.black]
line-length = 99
target-version = ["py38", "py310"]
exclude = '''
/(
| .eggs
| .git
| .tox
| .venv
| .build
| lib
| report
)/
'''
[tool.isort]
profile = "black"
line_length = 99
skip_glob = [
".eggs",
".git",
".tox",
".venv",
".build",
"lib",
"report"
]
[tool.pylint]
max-line-length = 99
ignore-paths = [
".eggs",
".git",
".tox",
".venv",
".build",
"lib",
"report",
"tests",
]
disable = [
"E1102",
]
[tool.mypy]
warn_unused_ignores = true
warn_unused_configs = true
warn_unreachable = true
disallow_untyped_defs = true
ignore_missing_imports = true
exclude = [
".eggs",
".git",
".tox",
".venv",
".build",
"lib",
"report",
"tests",
]
## Ignore unsupported imports
[[tool.mypy.overrides]]
module = [
"charmhelpers.*"
]
[tool.coverage.run]
relative_files = true
source = ["src"]
omit = ["tests/**", "docs/**", "templates/**"]
[tool.coverage.report]
fail_under = 100
show_missing = true
[tool.coverage.html]
directory = "tests/unit/report/html"
[tool.coverage.xml]
output = "tests/unit/report/coverage.xml"