Skip to content

Commit

Permalink
merge into one
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Oct 15, 2024
1 parent 4f3ca74 commit 4a9e944
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,15 @@ repos:
entry: 'pytest\.xfail'
language: pygrep
types: [python]
- id: no-unseeded-default-rng
name: no-unseeded-default-rng
description: 'Enforce that no non-seeded default_rng is used'
entry: 'default_rng\(\)'
language: pygrep
types: [python]
- id: no-np-random-seed
name: no-np-random-seed
description: 'Enforce that default_rng is used instead of np.random.seed'
entry: 'np.random.seed\('
- id: use-only-default-rng
name: use-only-default-rng
description: 'Enforce that `default_rng` is used instead of `np.random.seed` and it must be seeded.'
entry: |
(?x)
# no unseeded default_rng
|default_rng\(\)
# no np.random.seed
|np.random.seed\(
language: pygrep
types: [python]
- id: cmake-format
Expand Down

0 comments on commit 4a9e944

Please sign in to comment.