Skip to content

Commit

Permalink
Use mypy config similar to other tket projects
Browse files Browse the repository at this point in the history
Also add pytket as a mypy dependency
  • Loading branch information
qartik committed Sep 27, 2023
1 parent dc19e3c commit 0637f35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ repos:
pass_filenames: false
args: [.]
additional_dependencies: [
pytest==7.4.2,
types-setuptools==68.2.0.0,
pytest,
types-setuptools,
pytket,
]
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
; warn_unreachable = true # disabled because it can result in false positives
warn_unreachable = true

## Miscellaneous strictness flags
local_partial_types = true
Expand Down

0 comments on commit 0637f35

Please sign in to comment.