Skip to content

Commit

Permalink
Treat warnings as errors when running tests + pyproject.toml formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
orting committed Jan 16, 2024
1 parent 92dd6a1 commit 7fa7e61
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@ build-backend = "setuptools.build_meta"

[tool.pylint.messages_control]
disable = [
'trailing-whitespace',
'trailing-newlines',
]
'trailing-whitespace',
'trailing-newlines',
]

[tool.pytest.ini_options]
testpaths = [ "daisy_vis" ]
addopts = [
"--mpl",
"--mpl-baseline-path=test-data/baseline/matplotlib-3.8.2",
"--mpl-results-path=test-data/results"
# Uncomment the line below and add matplotlib version to generate test images.
#"--mpl-generate-path=test-data/baseline/matplotlib-3.8.2"
]
"--mpl",
"--mpl-baseline-path=test-data/baseline/matplotlib-3.8.2",
"--mpl-results-path=test-data/results"
# Uncomment the line below and add matplotlib version to generate test images.
#"--mpl-generate-path=test-data/baseline/matplotlib-3.8.2"
]
filterwarnings = [
"error"
]

[tool.coverage.run]
command_line = "-m pytest"
Expand Down

0 comments on commit 7fa7e61

Please sign in to comment.