-
Notifications
You must be signed in to change notification settings - Fork 17
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
BF: move check for metalad before import of meta_extract #257
Conversation
Otherwise we try to import meta_extract and it fails. Failed the build of datalad-container for debian
Code Climate has analyzed commit be5f9e1 and detected 0 issues on this pull request. View more on Code Climate. |
dc25ae8
to
be5f9e1
Compare
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.
one nitpick/question LGTM
Dataset, | ||
clone, |
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.
Is there a convention to import classes first? I've always just done strictly alphabetical
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.
"not sure". Please find an answer at https://pycqa.github.io/isort/docs/configuration/custom_sections_and_ordering.html somewhere or may be @jwodder could clarify?
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.
isort does sort by case
https://pycqa.github.io/isort/docs/configuration/options.html
Order imports by type, which is determined by case, in addition to alphabetically.
NOTE: type here refers to the implied type from the import name capitalization. isort does not do type introspection for the imports. These "types" are simply: CONSTANT_VARIABLE, CamelCaseClass, variable_or_function. If your project follows PEP8 or a related coding standard and has many imports this is a good default, otherwise you likely will want to turn it off. From the CLI the --dont-order-by-type option will turn this off.
Type: Bool
Default: True
Config default: true
Python & Config File Name: order_by_type
CLI Flags:
--ot
--order-by-type
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #257 +/- ##
=======================================
Coverage 94.70% 94.70%
=======================================
Files 24 24
Lines 1133 1134 +1
=======================================
+ Hits 1073 1074 +1
Misses 60 60 ☔ View full report in Codecov by Sentry. |
releasing so we simplify update of packages for debian and conda-forge both of which need this now |
Otherwise we try to import meta_extract and it fails. Failed the build of datalad-container for debian
I will shortly bundle also run of isort on that file to ensure that pragmas are effective