Add pre-commit support
Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
This commit is contained in:
parent
cba529dd3b
commit
156c32a0cb
2 changed files with 10 additions and 6 deletions
7
.pre-commit-hooks.yaml
Normal file
7
.pre-commit-hooks.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- id: allure-validator
|
||||||
|
name: allure-validator
|
||||||
|
entry: allure-validator
|
||||||
|
language: python
|
||||||
|
minimum_pre_commit_version: 2.20.0
|
||||||
|
require_serial: true
|
||||||
|
types_or: [python, pyi]
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue