Skip to content

Commit

Permalink
add pytest to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Jul 10, 2024
1 parent 14a6074 commit d3f0a85
Showing 4 changed files with 19 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion .pyre_configuration
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"site_package_search_strategy": "pep561",
"source_directories": [
"sidecar"
{"import_root": ".", "source": "sidecar"}
]

}
4 changes: 2 additions & 2 deletions sidecar/cli/cli.py
Original file line number Diff line number Diff line change
@@ -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()
3 changes: 2 additions & 1 deletion sidecar/tests/app/query/test_status.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit d3f0a85

Please sign in to comment.