Repository navigation
Fix lint: codespell regex fragment and mypy errors in the MySQL TLS connection - #1696
Merged
Merged
Conversation
codespell flags "acter" in the char(?:acter)? pattern in condition.py; add it to the ignore list. mypy reports server_capabilities and _request_authentication on the TLS connection subclass, which are PyMySQL internals that types-PyMySQL does not declare; mark those three lines with targeted type-ignore codes. No behavior change.
dimitri-yatsenko
requested review from
MilagrosMarin,
lum-agilyti and
ttngu207
November 18, 2026 21:08
MilagrosMarin
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Lint job has failed on
mastersince the recent merges. This PR fixes it, and also clears the mypy pre-commit hook. The Lint workflow runs only codespell, ruff and ruff-format, so the mypy part fixes local commit hooks rather than CI.codespell: the pattern
char(?:acter)?insrc/datajoint/condition.pymatches bothcharandcharacter. codespell readsacteras a misspelling of "actor". This PR addsactertoignore-words-listin[tool.codespell]with a comment like the existing entries. The regex is not changed.mypy: the TLS connection subclass in
src/datajoint/adapters/mysql.pyusesserver_capabilitiesand_request_authentication. Both are PyMySQL internals thattypes-PyMySQLdoes not declare. This PR adds targeted# type: ignore[attr-defined]/# type: ignore[misc]comments to those three lines, with a short note explaining why. There is no behavior change.Verification:
pre-commit run --all-files: all hooks pass, including codespell, ruff and ruff-format (the ones the Lint workflow runs) and mypypytest tests/unit: 1068 passed