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

ci/style: Trying to ignore files that won't be type checked #105

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

ns-rse
Copy link
Contributor

@ns-rse ns-rse commented Dec 4, 2024

Tried various combinations to exclude based on the official
documentation
as well as adding an explicit # type: ignore to the top of the files that should be ignored but mypy is still trying to check these for some reason. 🤷

Ultimately the solution was to use # mypy: ignore-exceptions at the head of the file.

Have added some additional configuration options to mypy configuration in pyproject.toml and .pre-commit-config.yaml anyway.

Solution was to use `# mypy: ignore-errors` on individual files.

Adds the option `warn_unused_ignores = true` so that as individual type hints get corrected we can remove the specific
ignore statements that were added.
@ns-rse ns-rse force-pushed the ns-rse/mypy-config branch from 7bd311c to ffa951a Compare December 4, 2024 14:00
@ns-rse ns-rse merged commit 1b30165 into main Dec 4, 2024
8 checks passed
@ns-rse ns-rse deleted the ns-rse/mypy-config branch December 4, 2024 14:14
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 this pull request may close these issues.

1 participant