diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 877f29c..70d1064 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,6 +19,19 @@ repos: [ "-rn", # Only display messages ] + - id: pytest + name: pytest + language: python + entry: pytest + types: [python] + pass_filenames: false + - id : pytest-coverage + name: coverage + language: python + entry: coverage report + types: [python] + pass_filenames: false + args: [--fail-under=9] # increase this over time - id: pyre-check name: pyre-check entry: pyre check diff --git a/.pyre_configuration b/.pyre_configuration index f4023d7..caaf31e 100644 --- a/.pyre_configuration +++ b/.pyre_configuration @@ -1,6 +1,7 @@ { "site_package_search_strategy": "pep561", "source_directories": [ - "sidecar" + {"import_root": ".", "source": "sidecar"} ] + } diff --git a/sidecar/cli/cli.py b/sidecar/cli/cli.py index 91dc1c0..7f89aa4 100644 --- a/sidecar/cli/cli.py +++ b/sidecar/cli/cli.py @@ -9,8 +9,8 @@ import click import click_pathlib -from ..app.command import Command, start_commands_parallel -from ..app.helpers import Role +from sidecar.app.command import Command, start_commands_parallel +from sidecar.app.helpers import Role @click.group() diff --git a/sidecar/tests/app/query/test_status.py b/sidecar/tests/app/query/test_status.py index 511bf44..4a35c4e 100644 --- a/sidecar/tests/app/query/test_status.py +++ b/sidecar/tests/app/query/test_status.py @@ -3,7 +3,8 @@ import loguru import pytest -from app.query.status import Status, StatusChangeEvent, StatusHistory + +from sidecar.app.query.status import Status, StatusChangeEvent, StatusHistory @pytest.fixture(name="status_history_fixture")