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

Merged
merged 6 commits into from
Jan 21, 2025
Merged

Consolidate Python config files #94

merged 6 commits into from
Jan 21, 2025

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).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
openff/utilities/utilities.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
- Coverage   96.87%   96.81%   -0.06%     
==========================================
  Files           6        6              
  Lines         160      157       -3     
==========================================
- Hits          155      152       -3     
  Misses          5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@mattwthompson mattwthompson merged commit e319330 into main Jan 21, 2025
52 checks passed
@mattwthompson mattwthompson deleted the consolidate-configs branch January 21, 2025 13:27
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