diff --git a/Jenkinsfile b/Jenkinsfile index cc87c711..b722110f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..4a64351c --- /dev/null +++ b/tox.ini @@ -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