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

Update pre-commit to use ruff #161

Merged
merged 10 commits into from
Nov 20, 2024
Merged

Conversation

ElliottKasoar
Copy link
Member

@ElliottKasoar ElliottKasoar commented Nov 19, 2024

Resolves #157

Note: There are newer versions of ruff (0.7.4), but these would not allow us to use the latest janus-core, so that needs updating first.

I've also added an ignore for N806 (checks for the use of non-lowercase variable names in functions), as this is throwing errors about the returns from CalculationFactory in some, but not all, cases. This should probably be revisited at some point.

Partially resolves #156

@ElliottKasoar ElliottKasoar self-assigned this Nov 19, 2024
@ElliottKasoar ElliottKasoar added the testing Unit testing or CI label Nov 19, 2024
alinelena
alinelena previously approved these changes Nov 20, 2024
@ElliottKasoar
Copy link
Member Author

(Rebased to resolve conflicts with #163)

@alinelena alinelena merged commit 2fad7f1 into stfc:main Nov 20, 2024
7 checks passed
@ElliottKasoar ElliottKasoar deleted the update-pre-commit branch November 20, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Unit testing or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update docs Update pre-commit
2 participants