Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@
import pytest
from charms.operator_libs_linux.v2.snap import SnapError

from charm import (
CLOUD_NAME,
OS_CLIENT_CONFIG,
SNAP_NAME,
OpenstackExporterOperatorCharm,
)
from charm import CLOUD_NAME, OS_CLIENT_CONFIG, SNAP_NAME, OpenstackExporterOperatorCharm
from service import UPSTREAM_SNAP, SnapService


Expand Down
11 changes: 7 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ commands =
isort --check --diff --color .
flake8
deps =
black
# Pin black and isort because newer versions of black no longer support Python 3.8 and 3.9.
# This ensures consistent formatting and linting across all CI-tested Python versions
# (3.8, 3.10, and 3.12).
black==24.8.0
isort==5.13.2
colorama
flake8
flake8-colors
flake8-docstrings
flake8-import-order
flake8-pyproject
isort
pep8-naming
# so pylint and mypy can reason about the code
{[testenv:unit]deps}
Expand All @@ -44,8 +47,8 @@ commands =
black .
isort .
deps =
black
isort
black==24.8.0
isort==5.13.2

[testenv:unit]
setenv =
Expand Down