diff --git a/.github/workflows/test-only.yml b/.github/workflows/test-only.yml index 7a0eb49b..f7b3def0 100644 --- a/.github/workflows/test-only.yml +++ b/.github/workflows/test-only.yml @@ -33,7 +33,7 @@ jobs: done - name: Lint .pot template with dennis run: | - pip install "$(grep -E '^dennis ?>=' requirements.txt)" + pip install "$(grep -E '^dennis ?>=' requirements-dev.txt)" dennis-cmd lint --strict changedetectionio/translations/messages.pot - name: Lint .po files with dennis run: | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index da3d99a9..899591d6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,6 +4,8 @@ I am no professional flask developer, if you know a better way that something ca Otherwise, it's always best to PR into the `master` branch. +Install the development and test dependencies with `pip install -r requirements-dev.txt`. + Please be sure that all new functionality has a matching test! Use `pytest` to validate/test, you can run the existing tests as `pytest tests/test_notification.py` for example diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..cf8c6450 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,5 @@ +-r requirements.txt + +ruff >= 0.11.2 +pre_commit >= 4.2.0 +dennis >= 1.3.0 diff --git a/requirements.txt b/requirements.txt index 5aa090e8..5e1f7f94 100644 --- a/requirements.txt +++ b/requirements.txt @@ -157,12 +157,7 @@ rank-bm25>=0.2.2 # Needed for testing, cross-platform for process and system monitoring psutil==7.2.2 -ruff >= 0.11.2 -pre_commit >= 4.2.0 -dennis >= 1.3.0 - # For events between checking and socketio updates blinker pytest-xdist -