-
Notifications
You must be signed in to change notification settings - Fork 6
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
Rebuild of QA chain using ruff #220
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -267,7 +267,8 @@ def __init__( | |||
"co2", | |||
"patm", | |||
"vpd", | |||
] + optimal_chi_class.requires | |||
*optimal_chi_class.requires, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a strange change. Is it separate to the edits to support ruff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - it's this rule: https://docs.astral.sh/ruff/rules/collection-literal-concatenation/
I believe them, but it puzzled me too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, its not super obvious is it!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #220 +/- ##
===========================================
+ Coverage 95.12% 95.24% +0.11%
===========================================
Files 30 28 -2
Lines 1724 1703 -21
===========================================
- Hits 1640 1622 -18
+ Misses 84 81 -3 ☔ View full report in Codecov by Sentry. |
Description
This PR switches the QA chain away from
flake8
,black
,isort
andpyupgrade
toruff
: it is significantly faster and looks to be more robust and less version sensitive. This is needed to close #226 - we should be able to support Python 3.12 seamlessly with the new QA chain.Although
pytest-ruff
exists, I have also removed QA plugins from thepytest
configuration, sopytest-mypy
andpytest-flake8
are now retired and not replaced. The rationale for this is that they significantly slow down testing - which is about making sure the code works - and the QA steps are already enforced viapre-commit
on local machines and the GA workflows.Fixes #219
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks