Skip to content

Commit a42cd18

Browse files
committed
run pre-commit
1 parent 02f52f9 commit a42cd18

29 files changed

Lines changed: 1072 additions & 787 deletions

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
- store_artifacts:
2626
path: docs/_build/html/
2727

28-
2928
workflows:
3029
main:
3130
jobs:

.github/workflows/doc-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
with:
1010
repo-token: ${{ secrets.GITHUB_TOKEN }}
1111
artifact-path: 0/docs/_build/html/index.html
12-
circleci-jobs: build_docs
12+
circleci-jobs: build_docs

.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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ python:
2828
# Install our python package before building the docs
2929
- method: pip
3030
path: .
31-
3231
# Optionally build your docs in additional formats such as PDF and ePub
3332
# formats:
3433
# - pdf
@@ -39,4 +38,4 @@ python:
3938
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
4039
# python:
4140
# install:
42-
# - requirements: docs/requirements.txt
41+
# - requirements: docs/requirements.txt

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: 5 additions & 5 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
```
@@ -15,13 +15,13 @@ conda install -c conda-forge pyglider
1515
## Editable installation
1616

1717
If you want to be able to edit the files in `pyglider/pyglider` then install
18-
the dependencies as above. Fork of PyGlider on github, and then clone it locally:
18+
the dependencies as above. Fork of PyGlider on github, and then clone it locally:
1919

2020
```
2121
git clone https://github.com/yourname/pyglider.git
2222
```
2323

24-
Navigate to the new ``pyglider`` directory and then do `pip install -e .`.
24+
Navigate to the new `pyglider` directory and then do `pip install -e .`.
2525
That will re-install pyglider with links to the local directory, so you
26-
can edit the library files. If you do so, consider making a pull-request
26+
can edit the library files. If you do so, consider making a pull-request
2727
with your changes!

docs/conf.py

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3333
# ones.
3434
extensions = [
35-
"numpydoc",
36-
"myst_parser",
35+
'numpydoc',
36+
'myst_parser',
3737
'sphinx.ext.autodoc',
3838
'sphinx.ext.inheritance_diagram',
3939
'autoapi.sphinx',
@@ -42,9 +42,9 @@
4242
extensions.append('sphinx.ext.intersphinx')
4343

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

4949
autoapi_modules = {'pyglider': None}
5050

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

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

72-
html_logo = "_static/PyGliderHorizontal.svg"
72+
html_logo = '_static/PyGliderHorizontal.svg'
7373

7474
html_context = {
7575
# "github_url": "https://github.com", # or your GitHub Enterprise interprise
76-
"github_user": "c-proof",
77-
"github_repo": "pyglider",
78-
"doc_path": "docs/",
76+
'github_user': 'c-proof',
77+
'github_repo': 'pyglider',
78+
'doc_path': 'docs/',
7979
}
8080
html_theme_options = {
81-
"icon_links": [
81+
'icon_links': [
8282
{
8383
# Label for this link
84-
"name": "GitHub",
84+
'name': 'GitHub',
8585
# URL where the link will redirect
86-
"url": "https://github.com/c-proof/pyglider", # required
86+
'url': 'https://github.com/c-proof/pyglider', # required
8787
# Icon class (if "type": "fontawesome"), or path to local image (if "type": "local")
88-
"icon": "fab fa-github-square",
88+
'icon': 'fab fa-github-square',
8989
# The type of image to be used (see below for details)
90-
"type": "fontawesome",
90+
'type': 'fontawesome',
9191
},
9292
{
93-
"name": "PyPI",
94-
"url": "https://pypi.org/project/pyglider",
95-
"icon": "fas fa-box",
93+
'name': 'PyPI',
94+
'url': 'https://pypi.org/project/pyglider',
95+
'icon': 'fas fa-box',
9696
},
9797
# { "name": "conda-forge",
9898
# "url": "https://anaconda.org/conda-forge/pyglider",
9999
# "icon": "fas fa-box"
100100
# }
101-
]}
101+
]
102+
}

0 commit comments

Comments
 (0)