Skip to content

Commit 9d26eb3

Browse files
committed
run pre-commit
1 parent 64ec4af commit 9d26eb3

28 files changed

+1045
-764
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Follow the instructions in our [contributing page](./contributing.md).
1+
Follow the instructions in our [contributing page](./contributing.md).

.github/workflows/publish-to-pypi.yml

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -8,106 +8,106 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
12-
- name: Set up Python
13-
uses: actions/setup-python@v5
14-
with:
15-
python-version: "3.x"
16-
- name: Install pypa/build
17-
run: python3 -m pip install build --user
18-
- name: Build a binary wheel and a source tarball
19-
run: python3 -m build
20-
- name: Store the distribution packages
21-
uses: actions/upload-artifact@v4
22-
with:
23-
name: python-package-distributions
24-
path: dist/
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.x"
16+
- name: Install pypa/build
17+
run: python3 -m pip install build --user
18+
- name: Build a binary wheel and a source tarball
19+
run: python3 -m build
20+
- name: Store the distribution packages
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: python-package-distributions
24+
path: dist/
2525

2626
publish-to-pypi:
2727
name: >-
2828
Publish Python 🐍 distribution 📦 to PyPI
29-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
29+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3030
needs:
31-
- build
31+
- build
3232
runs-on: ubuntu-latest
3333
environment:
3434
name: pypi
3535
url: https://pypi.org/p/pyglider
3636
permissions:
37-
id-token: write # IMPORTANT: mandatory for trusted publishing
37+
id-token: write # IMPORTANT: mandatory for trusted publishing
3838

3939
steps:
40-
- name: Download all the dists
41-
uses: actions/download-artifact@v4
42-
with:
43-
name: python-package-distributions
44-
path: dist/
45-
- name: Publish distribution 📦 to PyPI
46-
uses: pypa/gh-action-pypi-publish@release/v1
40+
- name: Download all the dists
41+
uses: actions/download-artifact@v4
42+
with:
43+
name: python-package-distributions
44+
path: dist/
45+
- name: Publish distribution 📦 to PyPI
46+
uses: pypa/gh-action-pypi-publish@release/v1
4747

4848
github-release:
4949
name: >-
5050
Sign the Python 🐍 distribution 📦 with Sigstore
5151
and upload them to GitHub Release
5252
needs:
53-
- publish-to-pypi
53+
- publish-to-pypi
5454
runs-on: ubuntu-latest
5555

5656
permissions:
57-
contents: write # IMPORTANT: mandatory for making GitHub Releases
58-
id-token: write # IMPORTANT: mandatory for sigstore
57+
contents: write # IMPORTANT: mandatory for making GitHub Releases
58+
id-token: write # IMPORTANT: mandatory for sigstore
5959

6060
steps:
61-
- name: Download all the dists
62-
uses: actions/download-artifact@v4
63-
with:
64-
name: python-package-distributions
65-
path: dist/
66-
- name: Sign the dists with Sigstore
67-
uses: sigstore/gh-action-sigstore-python@v2.1.1
68-
with:
69-
inputs: >-
70-
./dist/*.tar.gz
71-
./dist/*.whl
72-
- name: Create GitHub Release
73-
env:
74-
GITHUB_TOKEN: ${{ github.token }}
75-
run: >-
76-
gh release create
77-
'${{ github.ref_name }}'
78-
--repo '${{ github.repository }}'
79-
--notes ""
80-
- name: Upload artifact signatures to GitHub Release
81-
env:
82-
GITHUB_TOKEN: ${{ github.token }}
83-
# Upload to GitHub Release using the `gh` CLI.
84-
# `dist/` contains the built packages, and the
85-
# sigstore-produced signatures and certificates.
86-
run: >-
87-
gh release upload
88-
'${{ github.ref_name }}' dist/**
89-
--repo '${{ github.repository }}'
61+
- name: Download all the dists
62+
uses: actions/download-artifact@v4
63+
with:
64+
name: python-package-distributions
65+
path: dist/
66+
- name: Sign the dists with Sigstore
67+
uses: sigstore/gh-action-sigstore-python@v2.1.1
68+
with:
69+
inputs: >-
70+
./dist/*.tar.gz
71+
./dist/*.whl
72+
- name: Create GitHub Release
73+
env:
74+
GITHUB_TOKEN: ${{ github.token }}
75+
run: >-
76+
gh release create
77+
'${{ github.ref_name }}'
78+
--repo '${{ github.repository }}'
79+
--notes ""
80+
- name: Upload artifact signatures to GitHub Release
81+
env:
82+
GITHUB_TOKEN: ${{ github.token }}
83+
# Upload to GitHub Release using the `gh` CLI.
84+
# `dist/` contains the built packages, and the
85+
# sigstore-produced signatures and certificates.
86+
run: >-
87+
gh release upload
88+
'${{ github.ref_name }}' dist/**
89+
--repo '${{ github.repository }}'
9090
9191
publish-to-testpypi:
9292
name: Publish Python 🐍 distribution 📦 to TestPyPI
9393
needs:
94-
- build
94+
- build
9595
runs-on: ubuntu-latest
9696

9797
environment:
9898
name: testpypi
9999
url: https://test.pypi.org/p/pyglider
100100

101101
permissions:
102-
id-token: write # IMPORTANT: mandatory for trusted publishing
102+
id-token: write # IMPORTANT: mandatory for trusted publishing
103103

104104
steps:
105-
- name: Download all the dists
106-
uses: actions/download-artifact@v4
107-
with:
108-
name: python-package-distributions
109-
path: dist/
110-
- name: Publish distribution 📦 to TestPyPI
111-
uses: pypa/gh-action-pypi-publish@release/v1
112-
with:
113-
repository-url: https://test.pypi.org/legacy/
105+
- name: Download all the dists
106+
uses: actions/download-artifact@v4
107+
with:
108+
name: python-package-distributions
109+
path: dist/
110+
- name: Publish distribution 📦 to TestPyPI
111+
uses: pypa/gh-action-pypi-publish@release/v1
112+
with:
113+
repository-url: https://test.pypi.org/legacy/

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ docs/pyglider
55
dist
66

77
*.png
8-
.DS_Store
8+
.DS_Store

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ sphinx:
88
configuration: docs/conf.py
99

1010
conda:
11-
environment: environment.yml
11+
environment: environment.yml

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ third-party archives.
188188
distributed under the License is distributed on an "AS IS" BASIS,
189189
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190190
See the License for the specific language governing permissions and
191-
limitations under the License.
191+
limitations under the License.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
![](docs/_static/PyGliderHorizontal.svg)
22

3-
Python tools for interacting with ocean glider data. PyGlider takes data from
3+
Python tools for interacting with ocean glider data. PyGlider takes data from
44
Teledyne/Webb Slocum gliders and Alseamar SeaExplorers and creates CF-compliant
55
NetCDF files.
66

77
For documentation, please see <http://pyglider.readthedocs.io>
88

99
### Contact
1010

11-
Get in touch with us using Discussion above or by opening an issue.
11+
Get in touch with us using Discussion above or by opening an issue.

codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ coverage:
2020
if_no_uploads: error
2121
if_not_found: success
2222
if_ci_failed: failure
23-
paths: '!tests/.*'
23+
paths: "!tests/.*"
2424
tests:
2525
target: auto
2626
if_no_uploads: error
2727
if_not_found: success
2828
if_ci_failed: failure
29-
paths: 'tests/.*'
29+
paths: "tests/.*"

docs/Install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## conda/pip
44

5-
PyGlider depends on `dask` and `netcdf4`, both of which can be tricky to install using ``pip``,
6-
hence we recommend these be installed with [``conda``](https://www.anaconda.com/). To install
5+
PyGlider depends on `dask` and `netcdf4`, both of which can be tricky to install using `pip`,
6+
hence we recommend these be installed with [`conda`](https://www.anaconda.com/). To install
77
PyGlider, create an environment, and do
88

99
```

docs/conf.py

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
# The full version, including alpha/beta/rc tags
2626
release = __version__
2727

28-
master_doc = "index"
28+
master_doc = 'index'
2929
source_suffix = ['.rst', '.md']
3030
# -- General configuration ---------------------------------------------------
3131

3232
# Add any Sphinx extension module names here, as strings. They can be
3333
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3434
# ones.
3535
extensions = [
36-
"numpydoc",
37-
"myst_parser",
36+
'numpydoc',
37+
'myst_parser',
3838
'sphinx.ext.autodoc',
3939
'sphinx.ext.inheritance_diagram',
4040
'autoapi.extension',
@@ -43,9 +43,9 @@
4343
extensions.append('sphinx.ext.intersphinx')
4444

4545
intersphinx_mapping = {
46-
'xarray': ('http://xarray.pydata.org/en/stable/', None),
47-
'python': ('https://docs.python.org/3/', None),
48-
}
46+
'xarray': ('http://xarray.pydata.org/en/stable/', None),
47+
'python': ('https://docs.python.org/3/', None),
48+
}
4949

5050
autoapi_dirs = ['../pyglider']
5151

@@ -63,40 +63,41 @@
6363
# The theme to use for HTML and HTML Help pages. See the documentation for
6464
# a list of builtin themes.
6565
#
66-
html_theme = "pydata_sphinx_theme"
66+
html_theme = 'pydata_sphinx_theme'
6767

6868
# Add any paths that contain custom static files (such as style sheets) here,
6969
# relative to this directory. They are copied after the builtin static files,
7070
# so a file named "default.css" will overwrite the builtin "default.css".
7171
html_static_path = ['_static']
7272

73-
html_logo = "_static/PyGliderHorizontal.svg"
73+
html_logo = '_static/PyGliderHorizontal.svg'
7474

7575
html_context = {
7676
# "github_url": "https://github.com", # or your GitHub Enterprise interprise
77-
"github_user": "c-proof",
78-
"github_repo": "pyglider",
79-
"doc_path": "docs/",
77+
'github_user': 'c-proof',
78+
'github_repo': 'pyglider',
79+
'doc_path': 'docs/',
8080
}
8181
html_theme_options = {
82-
"icon_links": [
82+
'icon_links': [
8383
{
8484
# Label for this link
85-
"name": "GitHub",
85+
'name': 'GitHub',
8686
# URL where the link will redirect
87-
"url": "https://github.com/c-proof/pyglider", # required
87+
'url': 'https://github.com/c-proof/pyglider', # required
8888
# Icon class (if "type": "fontawesome"), or path to local image (if "type": "local")
89-
"icon": "fab fa-github-square",
89+
'icon': 'fab fa-github-square',
9090
# The type of image to be used (see below for details)
91-
"type": "fontawesome",
91+
'type': 'fontawesome',
9292
},
9393
{
94-
"name": "PyPI",
95-
"url": "https://pypi.org/project/pyglider",
96-
"icon": "fas fa-box",
94+
'name': 'PyPI',
95+
'url': 'https://pypi.org/project/pyglider',
96+
'icon': 'fas fa-box',
9797
},
9898
# { "name": "conda-forge",
9999
# "url": "https://anaconda.org/conda-forge/pyglider",
100100
# "icon": "fas fa-box"
101101
# }
102-
]}
102+
]
103+
}

docs/contributing.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Contributing
22

33
## Create a fork
4+
45
```{note}
56
TODO: Create contributing page noting:
67
- the forking process (trimmed down)
@@ -20,6 +21,7 @@ Then install the dependencies:
2021
```bash
2122
conda env update -f environment.yml -n pyglider-dev
2223
```
24+
2325
And install the package in editable mode:
2426

2527
```bash
@@ -30,7 +32,7 @@ Done!
3032

3133
---
3234

33-
From here, you can make the changes you want, and add tests. When you are ready, you can create a pull request into the codebase.
35+
From here, you can make the changes you want, and add tests. When you are ready, you can create a pull request into the codebase.
3436

3537
## Running tests
3638

0 commit comments

Comments
 (0)