-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize testing/linting configuration (#65)
This simplifies and modernizes the configuration for various testing and linting tools. Use pyproject.toml as the central location for all configuration as much as possible. Details: - Move pytest config to pyproject.toml (modern location) - Move mypy config to pyproject.toml (modern location) - Move unit test files into already existing tests/ dir; use importable and recognized-by-default-by-pytest names. - Remove seemingly unnecessary coveragerc file; it seemed mostly old and outdated copy/paste of boilerplate. - Move tool config out of CI config files as much as possible (coverage report filenames etc) which is not only cleaner but also better for local development because it will use the same settings. - make yamllint happy about all yaml/yml files
- Loading branch information
Showing
9 changed files
with
49 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
files = [ | ||
"result", | ||
"tests", | ||
] | ||
# Exclude files with pattern matching syntax until Mypy supports it; | ||
# see https://github.com/python/mypy/issues/10201 | ||
exclude = "tests/test_pattern_matching.py" | ||
disallow_untyped_calls = true | ||
disallow_untyped_defs = true | ||
ignore_missing_imports = true | ||
no_implicit_optional = true | ||
show_column_numbers = true | ||
show_error_codes = true | ||
show_error_context = true | ||
show_none_errors = true | ||
strict_optional = true | ||
warn_redundant_casts = true | ||
warn_return_any = true | ||
warn_unused_ignores = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"--flake8", | ||
"--tb=short", | ||
"--cov=.", | ||
"--cov-report=term", | ||
"--cov-report=xml", | ||
] | ||
testpaths = [ | ||
"result", | ||
"tests", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters