Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datasource exchange #109

Merged
merged 11 commits into from
Dec 10, 2024
Merged
Next Next commit
fixed dependencies
  • Loading branch information
PietroPasotti committed Dec 3, 2024
commit f1cbe0ac9bfe2440aeccd3dd60429fc5bec7d683
49 changes: 28 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -6,19 +6,21 @@ build-backend = "hatchling.build"
name = "cosl"
version = "0.0.44"
authors = [
{ name="sed-i", email="82407168+sed-i@users.noreply.github.com" },
{ name = "sed-i", email = "82407168+sed-i@users.noreply.github.com" },
PietroPasotti marked this conversation as resolved.
Show resolved Hide resolved
]
description = "Utils for COS Lite charms"
readme = "README.md"
license = {file = "LICENSE"}
license = { file = "LICENSE" }
requires-python = ">=3.8"
dependencies = [
"ops",
"pydantic",
"tenacity",
"PyYAML",
"typing-extensions",
"lightkube>=v0.15.4"
"ops",
"pydantic",
"tenacity",
"jsonschema",
"PyYAML",
"typing-extensions",
"lightkube>=v0.15.4",
"charm-relation-interfaces @ git+https://github.com/canonical/charm-relation-interfaces@grafana_datasource_exchange",
]
classifiers = [
"Programming Language :: Python :: 3.8",
@@ -60,21 +62,21 @@ 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",
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
"E402",
]
ignore = ["E501", "D107"]
per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]}
per-file-ignores = { "tests/*" = ["D100", "D101", "D102", "D103", "D104"] }

[tool.ruff.lint.pydocstyle]
convention = "google"
@@ -99,3 +101,8 @@ 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
PietroPasotti marked this conversation as resolved.
Show resolved Hide resolved

6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -70,17 +70,13 @@ commands =
[testenv:unit]
description = Run unit tests
deps =
.
deepdiff
fs
pytest
pytest-cov
ops[testing]
PyYAML
typing_extensions
cryptography
jsonschema
lightkube>=v0.15.4
lightkube-models==1.24.1.4
allowlist_externals =
/usr/bin/env
charmcraft