diff --git a/.gitignore b/.gitignore index f60de49..e5af302 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,13 @@ *.py[cod] -/shtab/_dist_ver.py +__pycache__/ # Packages +/shtab/_dist_ver.py /*.egg*/ /build/ /dist/ # Unit test / coverage reports -/.coverage -/.pytest_cache/ +/.coverage* /coverage.xml -__pycache__/ +/.pytest_cache/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d77ba8..b05349d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,9 +22,9 @@ repos: name: Check TODO language: pygrep entry: TODO + args: [-i] types: [text] exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$ - args: [-i] - repo: https://gitlab.com/pycqa/flake8 rev: 3.9.2 hooks: diff --git a/setup.cfg b/setup.cfg index 9aab8a1..62d4c4e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -86,4 +86,7 @@ known_first_party=shtab [tool:pytest] timeout=5 -addopts=-v --tb=short -rxs -W=error --log-level=debug --durations=0 --cov=shtab --cov-report=term-missing --cov-report=xml +log_level=DEBUG +python_files=test_*.py +testpaths=tests +addopts=-v --tb=short -rxs -W=error --durations=0 --cov=shtab --cov-report=term-missing --cov-report=xml