Skip to content

Commit

Permalink
Enable pytest openfiles checking
Browse files Browse the repository at this point in the history
Disable .ttf files opened by matplotlib.
  • Loading branch information
timj committed Jul 17, 2020
1 parent 5ccfb63 commit 4e020d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: pip install -v .

- name: Run tests
run: pytest -r a -v -n 3
run: pytest -r a -v -n 3 --open-files

- name: Install documenteer
run: pip install documenteer[pipelines]
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ tests_require =
pytest >= 3.2
flake8 >= 3.7.5
pytest-flake8 >= 1.0.4
pytest-openfiles >= 0.5.0
numpy >= 1.17
matplotlib >= 3.0.3
pyarrow >= 0.16
Expand All @@ -54,3 +55,5 @@ exclude = __init__.py
[tool:pytest]
addopts = --flake8
flake8-ignore = E133 E226 E228 N802 N803 N806 N812 N815 N816 W503
# The matplotlib test may not release font files
open_files_ignore = "*.ttf"

0 comments on commit 4e020d7

Please sign in to comment.