Add pre-commit support

Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
This commit is contained in:
k.sosnovskikh 2024-08-20 16:24:02 +03:00
parent f7b790b93a
commit 76ba757964

View file

@ -20,15 +20,12 @@ Additionally, `allure-validator` can be added to pre-commit hooks:
```yaml ```yaml
# .pre-commit-config.yaml # .pre-commit-config.yaml
repos: repos:
- repo: local - repo: https://git.frostfs.info/TrueCloudLab/allure-validator
rev: 1.0.0
hooks: hooks:
- id: allure-validator - id: allure-validator
name: allure-validator args: ["pytest_tests/"]
entry: allure-validator
language: system
args: ["pytest_tests/"] # folder with tests
pass_filenames: false pass_filenames: false
types: [python]
``` ```
### Ignore mechanism ### Ignore mechanism