Skip to content

Commit

Permalink
gh-170: add traditional pygrep hooks (#236)
Browse files Browse the repository at this point in the history
Adds several misc `pygrep` hooks recommended by scientific python.

Refs: #170, #187
  • Loading branch information
Saransh-cpp authored Sep 18, 2024
1 parent 230690e commit a101ab4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-type-ignore
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
hooks:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and for the cosmological background. Make sure you have CAMB installed:
$ python -c 'import camb' # should not give an error
If you want to compute the angular matter power spectra in the examples, you
need the `glass.ext.camb` package:
need the ``glass.ext.camb`` package:

.. code-block:: console
Expand Down
4 changes: 2 additions & 2 deletions docs/manual/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ These notes document the changes between individual *GLASS* releases.
power spectra by index from a list using GLASS ordering.

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


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

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

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

0 comments on commit a101ab4

Please sign in to comment.