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

feat: move mypy configuration to pyproject.toml #198

Closed
wants to merge 2 commits into from
Closed
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ repos:
hooks:
- id: black

- repo: https://github.com/timothycrosley/isort
rev: 5.9.3
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort

Expand Down
31 changes: 0 additions & 31 deletions mypy.ini

This file was deleted.

24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,27 @@ force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 119

[mypy]
python_version = 3.6
disable_error_code = "override"
ignore_missing_imports = true
ignore_errors = true
follow_imports = "silent"
strict_optional = false
warn_unused_ignores = true
warn_redundant_casts = true
warn_no_return = true
warn_unreachle = true
allow_redefinition = true
show_error_codes = true
check_untyped_defs = true
files = [
"src",
"tests",
"train.py"
]

[[tool.mypy.overrides]]
module = ["mypy-src.*"]
ignore_errors = false