Skip to content

fix(deps): bump runtime, dev, and CI dependencies - #37

Merged
zarmstrong merged 1 commit into
masterfrom
deps/combined-2026-11-23
Nov 23, 2026
Merged

zarmstrong merged 1 commit into
masterfrom
deps/combined-2026-11-23

Conversation

@zarmstrong

Copy link
Copy Markdown
Owner

Summary

Combines the dep-bot PRs #31, #32, #33, #34, #35 and #36 into one change. Merged one by one, they conflicted on poetry.lock's content-hash; this PR has a single regenerated lockfile (Poetry 2.5.2, existing pins kept).

Package From To Source PR
requests 2.32.5 2.34.2 #31
certifi (transitive) 2022.6.15 2026.11.20 #31
apprise (floor) >=2 >=2.3.0 #32
flake8 7.3.0 7.5.0 #33
debugpy 1.8.21 1.8.22 #33
pylint 2.14.3 4.1.4 #34
autoflake 1.4 2.4.0 #35
actions/checkout, actions/setup-python v6 v7 #36

The lockfile also picks up the transitive changes from those bumps: astroid 4.3.4, dill 0.4.1, pycodestyle 2.15.0 and pyflakes 4.1.0. lazy-object-proxy and wrapt are removed. No other packages moved.

The pylint and autoflake majors are needed on current Python. pylint 2.14.3 rates the code 0.00/10 on Python 3.12, and autoflake 1.4 fails at import because distutils was removed in 3.12.

fix: because the runtime dependency floors in requirements.txt changed (patch release).

Validation

Local, Python 3.12.3:

  • python -m unittest discover -s tests: 24 tests, OK
  • python auto.py --help: OK
  • poetry check --lock: OK
  • flake8 *.py: 105 findings, same as on master with flake8 7.3.0 (no new findings)
  • pylint *.py (4.1.4): 7.71/10
  • autoflake --check *.py (2.4.0): reports unused imports in auto.py and shift.py (code already on master, out of scope)

Supersedes #31, #32, #33, #34, #35, #36.

🤖 Generated with Claude Code

Combines dep-bot PRs #31-#36 into a single change with one regenerated
poetry.lock.

- requests 2.32.5 -> 2.34.2 (pulls certifi 2022.6.15 -> 2026.11.20)
- apprise floor raised to 2.3.0
- flake8 7.3.0 -> 7.5.0, debugpy 1.8.21 -> 1.8.22
- pylint 2.14.3 -> 4.1.4 (2.14.3 does not work on Python 3.12+)
- autoflake 1.4 -> 2.4.0 (1.4 imports distutils, removed in 3.12)
- actions/checkout and actions/setup-python v6 -> v7 in tests.yml

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zarmstrong
zarmstrong merged commit 4972352 into master Nov 23, 2026
2 checks passed
@zarmstrong
zarmstrong deleted the deps/combined-2026-11-23 branch November 23, 2026 18:45
zarmstrong pushed a commit that referenced this pull request Nov 23, 2026
Resolve the dev-group conflict with the combined dependency bump (#37),
re-lock, and use actions/checkout@v7 and setup-python@v7 in the new
mypy job to match the unittest job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zarmstrong added a commit that referenced this pull request Nov 23, 2026
## Summary

mypy was pinned to `0.961` in both the Poetry dev group (`^0.961`, which
Poetry reads as `>=0.961,<0.962`) and the pre-commit hook (`mirrors-mypy
rev: v0.961`). The automated dependency update never proposed a bump
because of those pins.

It also never ran successfully. The empty root `__init__.py` made mypy
treat the checkout as an `autoshift` package, so every module was seen
twice (`autoshift.query` and `query`) and mypy stopped with "Source file
found twice under different module names". In a checkout folder whose
name has a hyphen, it failed earlier still. Nothing imports
`autoshift.*`, so the file is removed.

Changes:
- Remove the root `__init__.py`.
- Add `[tool.mypy]` to `pyproject.toml` (files, `python_version =
"3.11"`, `ignore_missing_imports`), so a plain `mypy` command behaves
the same locally, in pre-commit, and in CI.
- Dev group: `mypy = "^2.4.1"`, add `types-requests`. Re-locked. The
lock also moves `urllib3` 1.26.9 → 2.8.0, which `types-requests`
requires; Docker and CI already get urllib3 2.x from `requirements.txt`.
- pre-commit: `mirrors-mypy` `v2.4.1` with `types-requests` and
`beautifulsoup4` as `additional_dependencies`; the arguments now come
from the config.
- `Tests` workflow: new `mypy` job.
- Fix the existing type errors without changing runtime behaviour:
  - declare the `Key` attributes on the class
- replace the `parse_shift_orcicorn.first_parse` function attribute with
a module-level flag
  - `Optional[str]` defaults for `ShiftClient`
  - annotate `migrationFunctions`
  - `Database.__exit__` returns `None` (same behaviour as `False`)
  - `cast(str, …)` on single-valued bs4 attributes
- AGENTS.md: the mypy command is now just `mypy`.

## Validation

- `mypy` (2.4.1, runtime dependencies + `types-requests` installed):
`Success: no issues found in 5 source files`
- `pre-commit run mypy --all-files`: Passed
- `python -m unittest discover -s tests`: 24 tests OK
- `python auto.py --help`: OK
- `flake8 *.py`: no new warnings (103 vs 105 on master)
- Merged current `master` (#37); dev-group conflict resolved and
re-locked. The new mypy job uses `checkout@v7` / `setup-python@v7`,
matching the unittest job.
- Codex review (2 rounds): no actionable findings.
- CI on the latest commit: `mypy`, `unittest (Python 3.11)` and
`unittest (Python 3.14)` pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: x <x@x>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
zarmstrong added a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[2.1.1](v2.1.0...v2.1.1)
(2026-11-23)


### Bug Fixes

* **deps:** bump runtime, dev, and CI dependencies
([#37](#37))
([4972352](4972352))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: zarmstrong <zarmstrong@users.noreply.github.com>
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.

2 participants