-
Notifications
You must be signed in to change notification settings - Fork 270
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
Drop python 3.9 #2526
Drop python 3.9 #2526
Conversation
This comment has been minimized.
This comment has been minimized.
5b60f75
to
f2133c6
Compare
Checking the uncovered lines, it is all error conditions which we cannot really check in the tests reasonably. I deactivated the hard "wait=True" which makes the whole CI fail in case of sonarqube not being happy. |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2526 +/- ##
=======================================
Coverage 92.59% 92.59%
=======================================
Files 233 232 -1
Lines 20056 20034 -22
=======================================
- Hits 18571 18551 -20
+ Misses 1485 1483 -2 ☔ View full report in Codecov by Sentry. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -272,7 +271,7 @@ def load_config_file(self, path: Union[str, pathlib.Path]) -> None: | |||
|
|||
if path.suffix in [".yaml", ".yml"]: | |||
# do our own YAML loading | |||
with open(path, "r") as infile: |
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 feels a bit scary, prefer the more explicit version.
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.
"r" is the default and python won't ever change that, it would break everyone
@@ -104,12 +104,12 @@ def test_signal_fraction(tmp_path, gamma_train_clf, proton_train_clf): | |||
], | |||
) | |||
|
|||
with open(log_file, "r") as f: | |||
with open(log_file) as f: |
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.
prefer it when the open
is explicit about being a read.
This comment has been minimized.
This comment has been minimized.
1 similar comment
Analysis Details0 IssuesCoverage and DuplicationsProject ID: cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs |
The drop schedule according to NEP 29 says to drop 3.9 in the first week of April and the newer SPEC https://scientific-python.org/specs/spec-0000/ already dropped it.
So I think we should follow and for 0.21, also drop 3.9.
I used
ruff --select=UP
to check what can be changed and opted for now not converting every.format
to anf-string
and also didn't remove explicitencoding='utf-8'
arguments as "explicit is better than implicit":