Skip to content

Commit

Permalink
Run mypy on all files including tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored Oct 16, 2021
1 parent 5733b0c commit f7993a7
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 189 deletions.
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ repos:
hooks:
- id: mypy
args: ["--strict"]
files: ^distro\.py$
additional_dependencies: [
"pytest==6.2.5",
"types-setuptools==57.4.2",
]
2 changes: 1 addition & 1 deletion query_local_distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import distro


def pprint(obj):
def pprint(obj: object) -> None:
for line in pformat(obj).split("\n"):
print(4 * " " + line)

Expand Down
Loading

0 comments on commit f7993a7

Please sign in to comment.