From 61684f9a4691449dc8aa129976789e3feab2b713 Mon Sep 17 00:00:00 2001 From: Benjamin Klimczak Date: Mon, 8 Aug 2022 16:29:21 +0100 Subject: MLIA-571 Use tox to run additional project tasks - Remove coverage from the pre-commit hooks as it takes too long and is not really suited to be a pre-commit hook - Added tox environments: - 'coverage': Run the code coverage. The code coverage was moved from the pre-commit hooks to tox. - 'lint': Run the pre-commit hooks - 'build': Build a distribution of MLIA - 'docs': Create documentation from the source code. Directory docs/ was added and copyright and license information add to files. Change-Id: Ife92b68043295ce41a0f2352ee2b2878329f4953 --- .pre-commit-config.yaml | 11 ----------- 1 file changed, 11 deletions(-) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08f5f7e..2d4e450 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -104,14 +104,3 @@ repos: entry: pylint language: system types: [python] - -- repo: local - hooks: - - id: pytest-cov - name: pytest coverage - stages: [push] - language: system - entry: pytest --cov=mlia --cov-report term-missing --cov-fail-under=95 tests - types: [python] - pass_filenames: false - verbose: true -- cgit v1.2.1