[#293] Integrate allure-validator into pre-commit hook
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:
k.sosnovskikh 2024-08-08 10:15:51 +03:00
parent 0a5ce7f21a
commit 327867dbda
2 changed files with 13 additions and 1 deletions

View file

@ -9,6 +9,15 @@ repos:
hooks:
- id: isort
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:
autofix_prs: false

View file

@ -29,6 +29,7 @@ ${VENV_DIR}:
requirements:
@echo Isntalling pip requirements
${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_dev.txt
@ -36,7 +37,9 @@ requirements:
#### VALIDATION SECTION ####
lint: create requirements
${FROM_VENV} pip install -e ../frostfs-testlib;
${FROM_VENV} pip install -e ../allure-validator
${FROM_VENV} pylint --disable R,C,W pytest_tests
validation: lint
${FROM_VENV} pytest --collect-only
${FROM_VENV} pytest --collect-only
${FROM_VENV} allure-validator "pytest_tests/"