Skip to content

Commit

Permalink
fix: define testpaths in pytest.ini(#5)
Browse files Browse the repository at this point in the history
* ci: upgrade developer dependencies

Co-authored-by: GitHub <[email protected]>
  • Loading branch information
redeboer and web-flow authored Apr 19, 2021
1 parent dd5293d commit 371b43a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"docs/conf.py",
"pyproject.toml",
"pyrightconfig.json",
"pytest.ini",
"requirements*.txt",
"setup.cfg",
"setup.py",
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.11
rev: 0.0.12
hooks:
- id: check-dev-files

Expand Down Expand Up @@ -73,7 +73,7 @@ repos:
language_version: 12.18.2 # prettier does not specify node correctly

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.130
rev: v1.1.132
hooks:
- id: pyright

Expand Down
17 changes: 17 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[coverage:run]
branch = True
source = src

[pytest]
addopts =
--color=yes
--doctest-continue-on-failure
--doctest-modules
--durations=3
filterwarnings =
error
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
testpaths =
src
tests
16 changes: 0 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,3 @@ allowlist_externals =
commands =
mypy src tests # run separately because of potential caching problems
pre-commit run {posargs} -a

[coverage:run]
branch = True
source = src

[pytest]
addopts =
--color=yes
--durations=3
--doctest-continue-on-failure
--doctest-modules
--ignore docs/conf.py
filterwarnings =
error
markers =
slow: marks tests as slow (deselect with '-m "not slow"')

0 comments on commit 371b43a

Please sign in to comment.