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

Error running pre-commit with mypy #25

Closed
kumaraditya303 opened this issue Nov 16, 2020 · 0 comments · Fixed by #26
Closed

Error running pre-commit with mypy #25

kumaraditya303 opened this issue Nov 16, 2020 · 0 comments · Fixed by #26

Comments

@kumaraditya303
Copy link
Contributor

When running pre-commit, mypy fails:

Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check Yaml...............................................................Passed
Check for added large files..............................................Passed
black....................................................................Passed
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

tests/assets/django/settings.py:16: error: Need type annotation for 'ALLOWED_HOSTS' (hint: "ALLOWED_HOSTS: List[<type>] = ...")
tests/assets/django/urls.py:2: error: Module 'django.urls' has no attribute 'path'
Found 2 errors in 2 files (checked 8 source files)

flake8...................................................................Passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant