Skip to content

Commit a101ab4

Browse files
authored
gh-170: add traditional pygrep hooks (#236)
Adds several misc `pygrep` hooks recommended by scientific python. Refs: #170, #187
1 parent 230690e commit a101ab4

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pygrep-hooks
3+
rev: v1.10.0
4+
hooks:
5+
- id: python-check-blanket-type-ignore
6+
- id: rst-backticks
7+
- id: rst-directive-colons
8+
- id: rst-inline-touching-normal
29
- repo: https://github.com/astral-sh/ruff-pre-commit
310
rev: v0.6.3
411
hooks:

docs/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and for the cosmological background. Make sure you have CAMB installed:
1313
$ python -c 'import camb' # should not give an error
1414
1515
If you want to compute the angular matter power spectra in the examples, you
16-
need the `glass.ext.camb` package:
16+
need the ``glass.ext.camb`` package:
1717

1818
.. code-block:: console
1919

docs/manual/releases.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ These notes document the changes between individual *GLASS* releases.
7575
power spectra by index from a list using GLASS ordering.
7676

7777
* The :func:`~glass.galaxies.gaussian_phz()` function now accepts bounds using
78-
`lower=` and `upper=` keyword parameters.
78+
``lower=`` and ``upper=`` keyword parameters.
7979

8080

8181
2023.6 (30 Jun 2023)
@@ -157,7 +157,7 @@ These notes document the changes between individual *GLASS* releases.
157157
by window functions using :func:`glass.shells.restrict` and
158158
:func:`glass.shells.partition`.
159159

160-
- The ``zmin`` and ``zmax`` parameters of `glass.galaxies.redshifts_from_nz`
160+
- The ``zmin`` and ``zmax`` parameters of ``glass.galaxies.redshifts_from_nz``
161161
have been removed for the same reason.
162162

163163
- The ``glass.lensing.multi_plane_weights`` function, which computed all

0 commit comments

Comments
 (0)