-
Notifications
You must be signed in to change notification settings - Fork 300
bootstrap ci for 3.0.x #4154
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
Merged
Merged
bootstrap ci for 3.0.x #4154
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e83e551
add cirrus-ci docker support
bjlittle 13d8c02
wip
bjlittle b713451
wip
bjlittle db58d9a
wip
bjlittle 55f30aa
wip
bjlittle e8bd3ad
wip
bjlittle d8fbd56
add pip
bjlittle 56b9cb8
revert docker
bjlittle a89bead
fix add_weekday (#32)
rcomer cc1ef75
fix link
bjlittle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ linted according to our ``.flake8`` configuration file. Note that, | |
| for each ``.pre-commit-config.yaml`` git hook. | ||
|
|
||
| Additionally, you may wish to enable ``black`` for your preferred | ||
| `editor/IDE <https://black.readthedocs.io/en/stable/editor_integration.html#editor-integration>`_. | ||
| `editor/IDE <https://black.readthedocs.io/en/stable/integrations/editors.html>`_. | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was causing a |
||
|
|
||
| With the ``pre-commit`` configured, the output of performing a ``git commit`` | ||
| will look similar to:: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ def vectorised_fn(*args): | |
| # Private "helper" function | ||
| def _pt_date(coord, time): | ||
| """ | ||
| Return the date of a time-coordinate point. | ||
| Return the datetime of a time-coordinate point. | ||
|
|
||
| Args: | ||
|
|
||
|
|
@@ -103,14 +103,11 @@ def _pt_date(coord, time): | |
| value of a coordinate point | ||
|
|
||
| Returns: | ||
| datetime.date | ||
| cftime.datetime | ||
| """ | ||
| # NOTE: All of the currently defined categorisation functions are | ||
| # calendar operations on Time coordinates. | ||
| # - All these currently depend on Unit::num2date, which is deprecated (!!) | ||
| # - We will want to do better, when we sort out our own Calendars. | ||
| # - For now, just make sure these all call through this one function. | ||
| return coord.units.num2date(time) | ||
| return coord.units.num2date(time, only_use_cftime_datetimes=True) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ported change, merge to my branch, thanks to @rcomer 😄 |
||
|
|
||
|
|
||
| # -------------------------------------------- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.