Skip to content

Commit 9b0ec8e

Browse files
authored
Merge pull request #73 from CCPBioSim/72-feature-migrate-repository-tooling-to-ruff
Migrate repository tooling to Ruff
2 parents 1347039 + 5119a62 commit 9b0ec8e

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.14.8
3+
rev: v0.16.5
44
hooks:
55
- id: ruff-check
66
args: [--fix]
@@ -12,8 +12,26 @@ repos:
1212
- id: check-added-large-files
1313
- id: check-merge-conflict
1414
- id: check-yaml
15+
exclude: ^conda-recipe/meta\.yaml$
1516
- id: check-toml
16-
- id: end-of-file-fixer
17-
- id: trailing-whitespace
1817
- id: check-case-conflict
1918
- id: check-ast
19+
- id: end-of-file-fixer
20+
- id: trailing-whitespace
21+
22+
- repo: https://github.com/rstcheck/rstcheck
23+
rev: v6.3.0
24+
hooks:
25+
- id: rstcheck
26+
name: rstcheck (docstrings only)
27+
files: \.py$
28+
args: ["--report-level", "warning"]
29+
30+
- repo: local
31+
hooks:
32+
- id: sphinx-docs
33+
name: sphinx-build (pre-push, warnings as errors)
34+
entry: bash -lc 'make -C docs clean && make -C docs html SPHINXOPTS="-W --keep-going"'
35+
language: system
36+
pass_filenames: false
37+
stages: [pre-push]

0 commit comments

Comments
 (0)