ci: make pre-commit check style (#70186)
gitea/publik-base-theme/pipeline/head There was a failure building this commit Details

This commit is contained in:
Frédéric Péters 2023-06-29 11:33:28 +02:00
parent 2beee3ff88
commit 546d2a414a
2 changed files with 11 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -7,6 +7,7 @@ pipeline {
stage('Checks') {
steps {
script {
sh 'tox -rv' // makes pre-commit check style
if (env.GIT_BRANCH.startsWith('wip/')) {
sh 'make css'
}

10
tox.ini Normal file
View File

@ -0,0 +1,10 @@
[tox]
envlist = codestyle
skipsdist = True
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/publik-base-theme/{env:BRANCH_NAME:}
[testenv]
deps =
codestyle: pre-commit
commands =
codestyle: pre-commit run --all-files --show-diff-on-failure