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

Consolidate Python config files #94

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

mattwthompson
Copy link
Member

@mattwthompson mattwthompson commented Dec 6, 2024

Description

  • Consolidate Python configs to pyproject.toml
  • Update build system to use PEP 517
  • Switch version handling to versioningit
  • Switch formatting to ruff
  • Make sure pixi support doesn't interact in surprising ways

Status

  • Ready to go

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.81%. Comparing base (f88523f) to head (ac738e5).

Additional details and impacted files

Comment on lines 46 to 52
raise ValueError("Bad type passed to skip_if_missing_exec. " f"Found type {type(exec)}")

found_exec = False
for exec_ in execs:
found_exec = found_exec or has_executable(exec_)

reason = f"Package {str(exec)} is required, but was not found."
reason = f"Package {exec!s} is required, but was not found."
Copy link
Member

Choose a reason for hiding this comment

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

(not blocking) both of these seem weird/worse to me. Maybe a weird interaction with a formatting tool? Not blocking either way, just stood out.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's probably an unnecessary cast tbh, but it's not going to be called at scale so the runtime penalty is small. I'm going to leave it as-is until it presents an issue

https://docs.astral.sh/ruff/rules/explicit-f-string-type-conversion/#explicit-f-string-type-conversion-ruf010

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