Skip to content

Python tooling shouldn't look at pyproject.toml outside the repository#141

Merged
OpsBotPrime merged 2 commits into
masterfrom
reinier/contain-python-tooling
Jul 21, 2026
Merged

Python tooling shouldn't look at pyproject.toml outside the repository#141
OpsBotPrime merged 2 commits into
masterfrom
reinier/contain-python-tooling

Conversation

@ReinierMaas

Copy link
Copy Markdown
Contributor

This prevents ruff from depending on the ./pyproject.toml of a folder containing the Opsqueue checkout.

@ReinierMaas ReinierMaas self-assigned this Jul 17, 2026
@ReinierMaas
ReinierMaas force-pushed the reinier/contain-python-tooling branch from 1213a8f to ac3b210 Compare July 17, 2026 11:50
@ReinierMaas
ReinierMaas requested a review from Copilot July 17, 2026 20:50
@ReinierMaas
ReinierMaas requested a review from jerbaroo July 17, 2026 20:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-root Python tooling configuration to prevent tools (notably ruff) from walking up the directory tree and accidentally picking up a parent pyproject.toml, while also updating Nix pins and aligning some Python version settings.

Changes:

  • Add ruff.toml and a root pyproject.toml intended to anchor Python tooling configuration within the repo.
  • Update the pinned nixpkgs revision/sha and minor Nix overlay formatting.
  • Adjust Nix-based integration test recipe wiring and bump Python version expectations in a few places.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ruff.toml Adds repo-root Ruff configuration to prevent config discovery outside the repo.
pyproject.toml Adds repo-root pyproject intended to anchor Python tooling config.
nix/sources.json Updates pinned nixpkgs revision and checksum.
nix/overlay.nix Removes trailing whitespace in overlay.
libs/opsqueue_python/pyproject.toml Raises the Python client library’s declared minimum Python version.
justfile Changes nix-test-integration prerequisite from nix-build-bin to nix-build.
extra/experimentation/shell.nix Updates experimental shell to use Python 3.13.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml Outdated
Comment thread justfile
Comment thread libs/opsqueue_python/pyproject.toml

@jerbaroo jerbaroo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ReinierMaas

Copy link
Copy Markdown
Contributor Author

@OpsBotPrime merge!

@OpsBotPrime

Copy link
Copy Markdown
Contributor

Rebased as 229abca, waiting for CI …

@OpsBotPrime

Copy link
Copy Markdown
Contributor

CI job 🟡 started.

@OpsBotPrime
OpsBotPrime force-pushed the reinier/contain-python-tooling branch from fecc0cc to 229abca Compare July 21, 2026 10:28
@OpsBotPrime
OpsBotPrime merged commit 229abca into master Jul 21, 2026
5 of 7 checks 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 this pull request may close these issues.

4 participants