-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
107 lines (91 loc) · 2.31 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["hatchling", "PyYAML", "typing-extensions"]
build-backend = "hatchling.build"
[project]
name = "cosl"
version = "0.0.54"
authors = [
{ name = "sed-i", email = "[email protected]" },
]
description = "Utils for COS Lite charms"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
dependencies = [
"ops",
"pydantic",
"tenacity",
"PyYAML",
"typing-extensions",
"lightkube>=v0.15.4",
]
classifiers = [
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Utilities",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Development Status :: 4 - Beta",
"Typing :: Typed",
]
[project.urls]
"Homepage" = "https://github.com/canonical/cos-lib"
"Bug Tracker" = "https://github.com/canonical/cos-lib/issues"
[package]
include = ["py.typed"]
# Testing tools configuration
[tool.coverage.run]
branch = true
parallel = true
omit = ["tests/**", "lib/**"]
[tool.coverage.report]
show_missing = true
# Formatting tools configuration
[tool.black]
line-length = 99
target-version = ["py38"]
# Linting tools configuration
[tool.ruff]
line-length = 99
extend-exclude = ["__pycache__", "*.egg_info"]
[tool.ruff.lint]
select = ["E", "W", "F", "C", "N", "D", "I001"]
extend-ignore = [
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
"E402",
]
ignore = ["E501", "D107"]
per-file-ignores = { "tests/*" = ["D100", "D101", "D102", "D103", "D104"] }
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.pep8-naming]
# Allow Pydantic's `@validator` decorator to trigger class method treatment.
classmethod-decorators = ["classmethod", "pydantic.validator"]
[tool.pyright]
include = ["src"]
extraPaths = ["lib", "src/cosl"]
pythonVersion = "3.8"
pythonPlatform = "All"
typeCheckingMode = "strict"
reportIncompatibleMethodOverride = false
reportImportCycles = false
reportTypeCommentUsage = false
[tool.codespell]
skip = ".git,.tox,build,lib,venv*,.mypy_cache"
ignore-words-list = "assertIn"
[tool.hatch.metadata]
# allow git+ dependencies in pyproject
allow-direct-references = true