-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add pytest configuration with verbose output - Add mypy configuration with strict type checking - Add coverage configuration and reporting - Add development dependencies in requirements.txt - Update CI workflow to run tests, type checks and coverage - Update gitignore for test artifacts Co-Authored-By: K. Yanagisawa <[email protected]>
- Loading branch information
1 parent
0c64c50
commit b3ef76a
Showing
6 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[run] | ||
source = script | ||
omit = | ||
script/test_*.py | ||
script/**/test_*.py | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
def __repr__ | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
pass | ||
raise ImportError |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[mypy] | ||
python_version = 3.12 | ||
warn_return_any = True | ||
warn_unused_configs = True | ||
disallow_untyped_defs = True | ||
disallow_incomplete_defs = True | ||
check_untyped_defs = True | ||
disallow_untyped_decorators = True | ||
no_implicit_optional = True | ||
warn_redundant_casts = True | ||
warn_unused_ignores = True | ||
warn_no_return = True | ||
warn_unreachable = True | ||
strict_optional = True | ||
ignore_missing_imports = True | ||
|
||
[mypy.plugins.numpy.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-gridData.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-Bio.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-scipy.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-jinja2.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-tqdm.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-yaml.*] | ||
ignore_missing_imports = True |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
python_files = test_*.py | ||
python_functions = test_* | ||
addopts = --maxfail=1 --disable-warnings -v | ||
testpaths = script |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pytest>=7.0.0 | ||
coverage>=7.0.0 | ||
mypy>=1.0.0 | ||
numpy>=1.24.0 | ||
gridData>=1.0.0 | ||
scipy>=1.10.0 | ||
Bio>=1.0.0 | ||
jinja2>=3.0.0 | ||
tqdm>=4.65.0 | ||
pyyaml>=6.0.0 |