Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#161] adding mypy to the repo #180

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ flake8:
pylint:
@pylint ./hyperon_das_atomdb --rcfile=.pylintrc

mypy:
@mypy --config-file mypy.ini ./hyperon_das_atomdb

lint: isort black flake8

unit-tests:
Expand Down
10 changes: 10 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[mypy]
ignore_missing_imports = true
follow_imports = silent
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
implicit_reexport = true
show_error_context = true
namespace_packages = true
pretty = true
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ setuptools = "^70.2.0"
[tool.poetry.group.dev.dependencies]
flake8 = "^6.1.0"
pylint = "^3.2.6"
mypy = "^1.10.1"
isort = "^5.12.0"
black = "^23.7.0"
pytest = "^7.4.2"
Expand Down