Skip to content

Commit e3254bd

Browse files
authored
Address some repo-review comments. (#474)
* Address some repo-review comments. * update * Add pygrep-hooks * Fix rst
1 parent 0f0e997 commit e3254bd

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ ci:
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
66
# Ruff version.
7-
rev: 'v0.0.292'
7+
rev: 'v0.1.1'
88
hooks:
99
- id: ruff
10-
args: ["--fix"]
10+
args: ["--show-fixes", "--fix"]
1111

12-
- repo: https://github.com/psf/black
13-
rev: 23.9.1
12+
- repo: https://github.com/psf/black-pre-commit-mirror
13+
rev: 23.10.1
1414
hooks:
1515
- id: black
1616

@@ -38,10 +38,10 @@ repos:
3838
entry: nbqa mdformat
3939
name: nbqa-mdformat
4040
alias: nbqa-mdformat
41-
additional_dependencies: [mdformat==0.7.14]
41+
additional_dependencies: [mdformat==0.7.17]
4242

4343
- repo: https://github.com/pre-commit/pre-commit-hooks
44-
rev: v4.4.0
44+
rev: v4.5.0
4545
hooks:
4646
- id: trailing-whitespace
4747
- id: end-of-file-fixer
@@ -61,6 +61,14 @@ repos:
6161
- id: validate-cff
6262

6363
- repo: https://github.com/abravalheri/validate-pyproject
64-
rev: v0.14
64+
rev: v0.15
6565
hooks:
6666
- id: validate-pyproject
67+
68+
- repo: https://github.com/pre-commit/pygrep-hooks
69+
rev: v1.10.0
70+
hooks:
71+
# - id: python-check-blanket-type-ignore
72+
- id: rst-backticks
73+
- id: rst-directive-colons
74+
- id: rst-inline-touching-normal

doc/whats-new.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ v0.7.9 (Jan 31, 2023)
4242
v0.7.8 (Jan 31, 2023)
4343
=====================
4444

45-
- Optionally use the `regex` package to continue supporting global flags in regular expressions that are not at start of pattern (:pr:`408`). By `Kristen Thyng`_
45+
- Optionally use the ``regex`` package to continue supporting global flags in regular expressions that are not at start of pattern (:pr:`408`). By `Kristen Thyng`_
4646
- Added link to docs for a new example "COSIMA ocean-sea ice model demo" (:pr:`397`). By `Aidan Heerdegen`_
4747

4848
v0.7.7 (Jan 14, 2023)
@@ -82,7 +82,7 @@ v0.7.4 (July 14, 2022)
8282
v0.7.3 (June 30, 2022)
8383
======================
8484
- :py:meth:`Dataset.cf.guess_coord_axis` now skips known axes/coordinates and only returns a single guess per variable.
85-
Additional attributes such as `units` must be added to known axes/coordinates using :py:meth:`Dataset.cf.add_canonical_attributes`.
85+
Additional attributes such as ``units`` must be added to known axes/coordinates using :py:meth:`Dataset.cf.add_canonical_attributes`.
8686
By `Mattia Almansi`_.
8787
- Increased support for ``cf_role`` variables. Added :py:attr:`Dataset.cf.cf_roles` By `Deepak Cherian`_.
8888

@@ -126,7 +126,7 @@ v0.6.0 (June 29, 2021)
126126
- Begin adding support for units with a unit registry for pint arrays. :pr:`197`.
127127
By `Jon Thielen`_ and `Justus Magin`_.
128128
- :py:meth:`Dataset.cf.rename_like` also updates the ``bounds`` and ``cell_measures`` attributes. By `Mattia Almansi`_.
129-
- Support of custom vocabularies/criteria: user can input criteria for identifying variables by their name and attributes to be able to refer to them by custom names like `ds.cf["ssh"]`. :pr:`234`. By `Kristen Thyng`_ and `Deepak Cherian`_.
129+
- Support of custom vocabularies/criteria: user can input criteria for identifying variables by their name and attributes to be able to refer to them by custom names like ``ds.cf["ssh"]``. :pr:`234`. By `Kristen Thyng`_ and `Deepak Cherian`_.
130130

131131
v0.5.2 (May 11, 2021)
132132
=====================

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ requires = [
3535
# xarray is need for dynamic version string
3636
"xarray",
3737
"setuptools>=45",
38-
"wheel",
3938
"setuptools_scm[toml]>=6.2",
4039
]
4140
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)