mirror of
https://github.com/NohamR/prometheus-qbittorrent-exporter.git
synced 2025-05-23 16:49:29 +00:00

* 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
30 lines
674 B
YAML
30 lines
674 B
YAML
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
|