Skip to content

Commit

Permalink
tidy up sunpy config
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Apr 16, 2024
1 parent a257362 commit 6ba2580
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.tox
.hypothesis
result_images
30 changes: 22 additions & 8 deletions sunpy_tst.ini → sunpy_pytest.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
[tool:pytest]
testpaths = "sunpy" "docs"
norecursedirs = ".tox" "build" "docs[\/]_build" "docs[\/]generated" "*.egg-info" "examples" "sunpy[/\]_dev" ".jupyter" ".history" "tools" "sunpy[\/]extern" "benchmarks"
# This is a reduced config to run in this specific CI
[pytest]
minversion = 7.0
testpaths =
sunpy
docs
norecursedirs =
.tox
build
docs/_build
docs/generated
*.egg-info
examples
sunpy/_dev
.history
tools
sunpy/extern
benchmarks
doctest_plus = enabled
doctest_optionflags = NORMALIZE_WHITESPACE FLOAT_CMP ELLIPSIS
addopts = --dist no --arraydiff --doctest-rst --doctest-ignore-import-errors -p no:unraisableexception -p no:threadexception -m "not mpl_image_compare"
addopts = --arraydiff --doctest-rst --doctest-ignore-import-errors -p no:unraisableexception -p no:threadexception -m "not mpl_image_compare"
asdf_schema_tests_enabled = true
asdf_schema_root = sunpy/io/special/asdf/resources/
mpl-results-path = figure_test_images
mpl-use-full-test-name = True
markers =
remote_data: marks this test function as needing remote data.
online: marks this test function as needing online connectivity.
mpl_image_compare: marks this test function as using hash-based Matplotlib figure verification. This mark is not meant to be directly applied, but is instead automatically applied when a test function uses the @sunpy.tests.helpers.figure_test decorator.
flaky
array_compare
remote_data_strict = True
# We do not care about junit_family or filterwarnings here.
remote_data_strict = true
filterwarnings =
ignore
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ commands =
reproject,all: pytest --pyargs reproject
specreduce,all: pytest --pyargs specreduce
specutils,all: pytest --pyargs specutils
sunpy,all: pytest --pyargs sunpy -c sunpy_tst.ini
sunpy,all: pytest --pyargs sunpy -c sunpy_pytest.ini

0 comments on commit 6ba2580

Please sign in to comment.