Skip to content

Commit

Permalink
tests: tidy
Browse files Browse the repository at this point in the history
- drop tox:flake8
- drop pre-commit:metadata
- minor options updates
  • Loading branch information
casperdcl committed Jan 11, 2021
1 parent 94ae1e7 commit 718a124
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,16 @@ repos:
name: Check TODO
language: pygrep
entry: WIP
args: [-i]
types: [text]
exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$
args: [-i]
- id: metadata
name: Check metadata
language: system
entry: make testsetup
pass_filenames: false
- id: pytest
name: pytest quick
language: python
entry: pytest
args: ['-qq', '--durations=1', '-k=not slow']
pass_filenames: false
types: [python]
language: python
pass_filenames: false
additional_dependencies:
- numpy
- pandas
Expand All @@ -47,6 +42,7 @@ repos:
rev: 3.8.4
hooks:
- id: flake8
args: ['-j8']
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ testsetup:

testcoverage:
@make coverclean
pytest -k "not perf" --cov=tqdm --cov-fail-under=80
pytest -k "not perf" --cov=tqdm --cov-report=xml --cov-report=term --cov-fail-under=80

testperf:
# do not use coverage (which is extremely slow)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ classifiers=
[options]
setup_requires=setuptools>=42; setuptools_scm[toml]>=3.4
python_requires=>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
tests_require=pytest; flake8; coverage
tests_require=tox
include_package_data=True
packages=find:
[options.extras_require]
Expand Down
9 changes: 0 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ deps=
pytest-timeout
commands=pytest -k perf

[testenv:flake8]
deps=
flake8
flake8-bugbear
flake8-comprehensions
flake8-debugger
flake8-string-format
commands=flake8 -j 8 --count --statistics .

[testenv:setup.py]
deps=
docutils
Expand Down

0 comments on commit 718a124

Please sign in to comment.