refactor: Remove * imports and update __all__ to be static#6802
Conversation
| param.parameterized.docstring_signature = False | ||
| param.parameterized.docstring_describe_params = False | ||
|
|
||
| from nbsite.shared_conf import * # noqa: F403 |
There was a problem hiding this comment.
Keeping this for other side effects
| Returns the object or a clone with the options applied | ||
| """ | ||
| if isinstance(options, str): | ||
| from ..util.parser import OptsSpec |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6802 +/- ##
==========================================
+ Coverage 89.21% 89.22% +0.01%
==========================================
Files 334 335 +1
Lines 72362 72379 +17
==========================================
+ Hits 64559 64583 +24
+ Misses 7803 7796 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This reverts commit a9f9cec.
| from ..core.util.dependencies import _is_installed | ||
| from ..util.warnings import deprecated | ||
| from . import * # noqa (All Elements need to support comparison) | ||
| from . import ( |
There was a problem hiding this comment.
Remove the elements not used here. This modules is deprecated, so no need to add more them.
| @@ -9,12 +9,12 @@ | |||
|
|
|||
| # Holoviews imports | |||
| import holoviews as hv | |||
There was a problem hiding this comment.
Changed this back to absolute import. Not entirely sure if it was intended to be run directly at some point
| Dimension.type_formatters[date] = '%Y-%m-%d' | ||
| # First one is for Pandas <3 and second for Pandas 3+ | ||
| Dimension.type_formatters['pandas._libs.tslibs.timestamps.Timestamp'] = "%Y-%m-%d %H:%M:%S" | ||
| Dimension.type_formatters['pandas.Timestamp'] = "%Y-%m-%d %H:%M:%S" |
There was a problem hiding this comment.
Not related to changes here, but Pandas 3 upgrade.
76369dc to
2f21b35
Compare
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
This PR enables the lint rules to not have
*imports and make__all__behave static with strings.script used to generate
all.jsonDetails
Script to check for re-import problems.
Details
Checklist