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

QA: mypy warn_unreachable #300

Closed

Conversation

ukmo-ccbunney
Copy link
Contributor

🚀 Pull Request

Description

Small update to turn comment out the following:

[mypy] warn_unreachable=true

as that check is listed in the disable_error_code list for mypy.

This also requires the MY103 check adding to the ignore list in repo-review.

This was supposed to go into PR #293 , but it got merged before I could update.

ukmo-ccbunney and others added 23 commits November 20, 2024 14:13
  - trailing-whitespace hook
  - CI chore
  - global file list
  - Required manually disabling on @savefig lines in docs/examples.rst
  - Update files list to include doc/*.rst in filespre-commit-config.yaml
Includes Ruff autofixes:
 - 11 × D212 (multi-line-summary-first-line)
 - 1 × RET506 (superfluous-else-raise)
 - 1 × RET505 (superfluous-else-return)
 - 1 × I001 (unsorted-imports)
Added `PLR5501` to exclude list to preserve readability of TODO
block in convert method
  - Applied some fixes to [tool.pytest.ini_options]
Bumps [scitools/workflows](https://github.com/scitools/workflows) from 2024.11.3 to 2024.11.5.
- [Release notes](https://github.com/scitools/workflows/releases)
- [Commits](SciTools/workflows@2024.11.3...2024.11.5)

---
updated-dependencies:
- dependency-name: scitools/workflows
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
the `disable_error_code` list. Required an ingore entry in repo-review.
@ukmo-ccbunney ukmo-ccbunney force-pushed the qa_mypy_warn_unreachable branch from bf0774f to d4c4297 Compare November 21, 2024 16:53
@ukmo-ccbunney
Copy link
Contributor Author

Messed this up. Closing.

@ukmo-ccbunney ukmo-ccbunney deleted the qa_mypy_warn_unreachable branch November 21, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant