-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (119 loc) · 3.68 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (119 loc) · 3.68 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
[tool.poetry]
package-mode = false
requires-poetry = ">=2.0.0"
[tool.poetry.dependencies]
python = "^3.10"
ops = "^3.3.0"
tenacity = "^9.1.2"
boto3 = "^1.38.36"
overrides = "^7.7.0"
requests = "2.32.4"
# Official name: ruamel.yaml, but due to Poetry GH#109 - replace dots with dashs
ruamel-yaml = "0.18.14"
shortuuid = "1.0.13"
pydantic = ">= 1.0"
cryptography = "^45.0.4"
jsonschema = "^4.24.0"
data-platform-helpers = "^0.1.7"
poetry-core = "<2.0.0"
azure-storage-blob = "^12.25.0"
google-cloud-storage = "^2.16.0"
google-api-core = "^2.17.0"
opensearch-charms-single-kernel = "0.0.5"
[tool.poetry.group.charm-libs.dependencies]
# data_platform_libs/v0/data_interfaces.py
ops = "^3.3.0"
# data_platform_libs/v0/upgrade.py
# grafana_agent/v0/cos_agent.py requires pydantic <2
pydantic = ">= 1.0"
# tls_certificates_interface/v3/tls_certificates.py
cryptography = "^45.0.4"
jsonschema = "^4.24.0"
# grafana_agent/v0/cos_agent.py
cosl = "^1.0.0"
bcrypt = "^4.3.0"
email-validator = ">=2"
[tool.poetry.group.format]
optional = true
[tool.poetry.group.format.dependencies]
black = "^25.1.0"
isort = "^6.0.1"
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
black = "^25.1.0"
isort = "^6.0.1"
flake8 = "^7.0.0"
flake8-docstrings = "^1.7.0"
flake8-copyright = "^0.2.4"
flake8-builtins = "^2.5.0"
pyproject-flake8 = "^7.0.0"
pep8-naming = "^0.15.1"
codespell = "^2.4.1"
shellcheck-py = "^0.10.0.1"
[tool.poetry.group.unit.dependencies]
ops = { version = "^3.3.0", extras = ["testing"] }
ops-scenario = "^8.5.2"
pytest = "^8.4.0"
pytest-asyncio = "^0.21.2"
coverage = { extras = ["toml"], version = "^7.9.1" }
parameterized = "^0.9.0"
responses = "^0.25.7"
[tool.poetry.group.integration.dependencies]
boto3 = "^1.38.36"
pytest = "^8.4.0"
pytest-asyncio = "^0.21.2"
pytest-operator = "^0.42.0"
juju = "^3.6.1.2"
ops = "^3.3.0"
tenacity = "^9.1.2"
pyyaml = "^6.0.2"
pyjwt = "^2.10.1"
urllib3 = "^2.4.0"
protobuf = "^6.31.1"
opensearch-py = "^2.8.0"
allure-pytest = "^2.14.3"
allure-pytest-default-results = "^0.1.3"
# Azure integration tests
azure-identity = "^1.23.0"
azure-storage-blob = "^12.25.1"
oauth_tools = {git = "https://github.com/canonical/iam-bundle", rev = "921d113325eed156e5b54f97c42e6c50810180c0"}
opensearch-charms-single-kernel = "0.0.5"
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
minversion = "6.0"
log_cli_level = "INFO"
markers = ["unstable"]
asyncio_mode = "auto"
# Formatting tools configuration
[tool.black]
line-length = 99
target-version = ["py310"]
[tool.isort]
profile = "black"
# Linting tools configuration
[tool.flake8]
max-line-length = 99
max-doc-length = 99
max-complexity = 10
exclude = [".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"]
select = ["E", "W", "F", "C", "N", "R", "D", "H"]
# Ignore W503, E501 because using black creates errors with this
# Ignore D107 Missing docstring in __init__
# Ignore D415 Docstring first line punctuation (doesn't make sense for properties)
# Ignore N818 Exceptions end with "Error" (not all exceptions are errors)
# Ignore E202 which is a linter error that raises if whitespace exists before `:`
# in slicing syntax, but it’s ignored in many projects because it conflicts with Black’s formatting style.
ignore = ["W503", "E501", "D107", "D415", "N818", "E203"]
# D100, D101, D102, D103: Ignore missing docstrings in tests
per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"]
docstring-convention = "google"
# Check for properly formatted copyright header in each file
copyright-check = "True"
copyright-author = "Canonical Ltd."
copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"