Skip to content

Commit

Permalink
Fix: test configs (#85)
Browse files Browse the repository at this point in the history
* Add --frozen to uv run
* Combine optional deps into dev
* Updated config to match coordinator
* Ignore .tox directory for codespell
  • Loading branch information
MichaelThamm authored Dec 4, 2024
1 parent 37878a4 commit ab560be
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ branch = true
show_missing = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
minversion = "6.0"
log_cli_level = "INFO"
asyncio_mode = "auto"
markers = [
'setup: marks tests as setup (deselect with -m "not setup")'
]

# Linting tools configuration
[tool.ruff]
Expand Down Expand Up @@ -70,8 +73,22 @@ 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.ruff.format]
docstring-code-format = true

[tool.pyright]
include = ["src"]
extraPaths = ["lib"]
pythonVersion = "3.8"
pythonPlatform = "Linux"
reportUnknownParameterType = true

[tool.codespell]
skip = ".git,build,.venv"
ignore-words-list = "assertIn,aNULL"
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MimirWorkerK8SOperatorCharm(CharmBase):
_name = "mimir"
_mimir_port = 8080

def __init__(self, *args):
def __init__(self, *args): # type: ignore
super().__init__(*args)
self.worker = Worker(
charm=self,
Expand Down

0 comments on commit ab560be

Please sign in to comment.