[#293] Integrate allure-validator into pre-commit hook
Some checks reported warnings
DCO check / Commits Check (pull_request) Has been cancelled
Some checks reported warnings
DCO check / Commits Check (pull_request) Has been cancelled
Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
This commit is contained in:
parent
0a5ce7f21a
commit
327867dbda
2 changed files with 13 additions and 1 deletions
|
@ -9,6 +9,15 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort (python)
|
name: isort (python)
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: allure-validator
|
||||||
|
name: allure-validator
|
||||||
|
entry: allure-validator
|
||||||
|
language: system
|
||||||
|
args: ["pytest_tests/"]
|
||||||
|
pass_filenames: false
|
||||||
|
types: [python]
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
autofix_prs: false
|
autofix_prs: false
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -29,6 +29,7 @@ ${VENV_DIR}:
|
||||||
requirements:
|
requirements:
|
||||||
@echo Isntalling pip requirements
|
@echo Isntalling pip requirements
|
||||||
${FROM_VENV} pip install -e ../frostfs-testlib
|
${FROM_VENV} pip install -e ../frostfs-testlib
|
||||||
|
${FROM_VENV} pip install -e ../allure-validator
|
||||||
${FROM_VENV} pip install -Ur requirements.txt
|
${FROM_VENV} pip install -Ur requirements.txt
|
||||||
${FROM_VENV} pip install -Ur requirements_dev.txt
|
${FROM_VENV} pip install -Ur requirements_dev.txt
|
||||||
|
|
||||||
|
@ -36,7 +37,9 @@ requirements:
|
||||||
#### VALIDATION SECTION ####
|
#### VALIDATION SECTION ####
|
||||||
lint: create requirements
|
lint: create requirements
|
||||||
${FROM_VENV} pip install -e ../frostfs-testlib;
|
${FROM_VENV} pip install -e ../frostfs-testlib;
|
||||||
|
${FROM_VENV} pip install -e ../allure-validator
|
||||||
${FROM_VENV} pylint --disable R,C,W pytest_tests
|
${FROM_VENV} pylint --disable R,C,W pytest_tests
|
||||||
|
|
||||||
validation: lint
|
validation: lint
|
||||||
${FROM_VENV} pytest --collect-only
|
${FROM_VENV} pytest --collect-only
|
||||||
|
${FROM_VENV} allure-validator "pytest_tests/"
|
Loading…
Add table
Reference in a new issue