-
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
Fix various code style issues #165
Conversation
Most importantly, don't use module names that are the same as the contained class names, as this can lead to errors where the import order matters, as classes are confused with their modules. (For example, this was the case if you sorted imports of hcs/imagexpress/__init__.py before this commit.) We now collect several classes into single (sub-)modules. Usages of `xml`/`lxml` where replaced by alternatives from `defusedxml`. This commit also fixes various other errors reported by `hatch fmt` (i.e. ruff).
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #165 +/- ##
===========================================
+ Coverage 81.03% 91.50% +10.47%
===========================================
Files 35 50 +15
Lines 1687 3295 +1608
Branches 240 345 +105
===========================================
+ Hits 1367 3015 +1648
+ Misses 314 270 -44
- Partials 6 10 +4 ☔ View full report in Codecov by Sentry. |
b6d5cd6
to
6ca845b
Compare
Achieved by: toml-sort --trailing-comma-inline-array -o pyproject.toml .\pyproject.toml (also sort dependencies)
64fea52
to
c9fc096
Compare
3bf7305
to
d008b11
Compare
The remaining ruff errors are now:
We should discuss whether we want to fix or ignore them, I'll open a separate issue. I will merge this, bump the version to |
Most importantly, don't use module names that are the same as the contained class names, as this can lead to errors where the import order matters, as classes are confused with their modules. (For example, this was the case if you sorted imports of
hcs/imagexpress/__init__.py
before this commit.)We now collect several classes into single (sub-)modules.
Usages of
xml
/lxml
were replaced by alternatives fromdefusedxml
.This commit also fixes various other errors reported by
hatch fmt
(i.e. ruff).I didn't rename any of the test files yet, although they should also be lower-case in general, and correlate with the now-renamed modules. I'll leave this for a follow-up pull request.
Closes #117.