Skip to content

Conversation

@ZLLentz
Copy link
Member

@ZLLentz ZLLentz commented Jan 27, 2026

Description

This --select I command in the pre-commit config actually replaces our project's ruff options! So, pre-commit isn't running all of our configured rules!
Instead, run ruff without --select to include all of our rules in the pyproject.toml, so they all get picked up during pre-commit. Then each project can decide which rules to follow as needed.

On the side: I'm testing the N (pep8) and ANN (missing annotations) rulesets- if I end up thinking they are useful I'll make another PR here to make them our default, if they end up being annoying I will not.

Motivation and Context

I kept seeing PRs passing in bsmtraj when they would fail ruff in my IDE, this is why.

How Has This Been Tested?

Interactively only

Where Has This Been Documented?

Here only

@ZLLentz ZLLentz requested a review from a team as a code owner January 27, 2026 21:52
tangkong
tangkong previously approved these changes Jan 27, 2026
Copy link
Contributor

@tangkong tangkong left a comment

Choose a reason for hiding this comment

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

Whoops that's what I get for only working on projects with old pre-commit configs

@tangkong
Copy link
Contributor

I think the ci here needs a bump to ubuntu latest, 20.04 was removed a while ago

@ZLLentz
Copy link
Member Author

ZLLentz commented Jan 27, 2026

I'll bump it

@ZLLentz ZLLentz merged commit 891c7a6 into pcdshub:master Jan 27, 2026
2 checks passed
@ZLLentz ZLLentz deleted the mnt_ruff_config branch January 27, 2026 22:07
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