forked from canonical/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
42 lines (37 loc) · 1.19 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
# Testing tools configuration
[tool.coverage.run]
branch = true
omit = ["ops/_vendor/**"]
[tool.coverage.report]
show_missing = true
omit = ["ops/_vendor/**"]
# Formatting tools configuration
[tool.autopep8]
max-line-length = 99
ignore = ["E203", "W503"]
recursive = true
jobs = -1
aggressive = 3
exclude = "ops/_vendor/**"
[tool.isort]
profile = "black"
skip = "ops/_vendor"
# Linting tools configuration
[tool.flake8]
max-line-length = 99
max-doc-length = 99
exclude = ["ops/_vendor", ".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"]
select = ["E", "W", "F", "C", "N", "R", "D", "H"]
ignore = ["D105", "D107", "E203", "W503"]
# D100, D101, D102, D103, D104: Ignore missing docstrings in tests
per-file-ignores = ["test/*:D100,D101,D102,D103,D104"]
docstring-convention = "google"
[tool.pyright]
include = ["ops/jujuversion.py", "ops/log.py", "ops/model.py", "ops/version.py",
"ops/__init__.py", "ops/framework.py", "ops/pebble.py", "ops/charm.py",
"ops/storage.py", "ops/main.py", "ops/testing.py"]
pythonVersion = "3.5" # check no python > 3.5 features are used
pythonPlatform = "All"
typeCheckingMode = "strict"
reportIncompatibleMethodOverride = false
reportImportCycles = false