Skip to content

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

Open
ReinierMaas wants to merge 6 commits into
masterfrom
reinier/contain-python-tooling
Open

Python tooling shouldn't look at pyproject.toml outside the repository#141
ReinierMaas wants to merge 6 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

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
Comment on lines +1 to +12
[project]
name = "opsqueue"
description = "Top level python settings to prevent python tooling from looking further up the directory tree for a pyproject.toml"
version = "0.1.0"
readme = "README.md"
requires-python = ">= 3.13"

[tool.mypy]
strict = true
follow_imports = "normal"
show_error_codes = true
warn_unused_configs = true
Comment thread justfile
# Python integration test suite, using artefacts built through Nix. Args are forwarded to pytest
[group('nix')]
nix-test-integration *TEST_ARGS: nix-build-bin
nix-test-integration *TEST_ARGS: nix-build


requires-python = ">=3.8"
requires-python = ">=3.13"
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