mirror of
https://github.com/MaxenceG2M/prometheus-immich-exporter.git
synced 2025-12-08 23:03:22 +00:00
Unit tests (#23)
* Added unit tests and linting tools for development * Added pre-commit config file * Added lint github action * Add tests and coverage comments to PRs * Set coverage options * Fixed yaml * Fixed permissions * Omit tests in coverage report * Run linting only on PRs
This commit is contained in:
29
.pre-commit-config.yaml
Normal file
29
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: black
|
||||
name: black
|
||||
stages: [commit]
|
||||
types: [python]
|
||||
entry: pdm run black .
|
||||
language: system
|
||||
pass_filenames: false
|
||||
always_run: true
|
||||
- id: ruff
|
||||
name: ruff
|
||||
stages: [commit]
|
||||
types: [python]
|
||||
entry: pdm run ruff .
|
||||
language: system
|
||||
pass_filenames: false
|
||||
always_run: true
|
||||
fail_fast: true
|
||||
- id: pytest
|
||||
name: pytest
|
||||
stages: [commit]
|
||||
types: [python]
|
||||
entry: pdm run pytest
|
||||
language: system
|
||||
pass_filenames: false
|
||||
always_run: true
|
||||
fail_fast: true
|
||||
Reference in New Issue
Block a user