Skip to content

Commit b018581

Browse files
authored
Adopt sp-repo-review (#883)
1 parent d033967 commit b018581

22 files changed

+359
-255
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ jobs:
7070
steps:
7171
- uses: actions/checkout@v4
7272
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
73-
- name: Run Linters
74-
run: |
73+
- name: Run Linters
74+
run: |
7575
hatch run typing:test
7676
hatch run lint:style
7777
pipx run 'validate-pyproject[all]' pyproject.toml

.pre-commit-config.yaml

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
ci:
22
autoupdate_schedule: monthly
3+
autoupdate_commit_msg: "chore: update pre-commit hooks"
34

45
repos:
56
- repo: https://github.com/pre-commit/pre-commit-hooks
67
rev: v4.4.0
78
hooks:
8-
- id: end-of-file-fixer
99
- id: check-case-conflict
10+
- id: check-ast
11+
- id: check-docstring-first
1012
- id: check-executables-have-shebangs
11-
- id: requirements-txt-fixer
1213
- id: check-added-large-files
1314
- id: check-case-conflict
15+
- id: check-merge-conflict
16+
- id: check-json
1417
- id: check-toml
1518
- id: check-yaml
1619
- id: debug-statements
17-
- id: forbid-new-submodules
18-
- id: check-builtin-literals
20+
- id: end-of-file-fixer
1921
- id: trailing-whitespace
2022

2123
- repo: https://github.com/python-jsonschema/check-jsonschema
@@ -27,14 +29,47 @@ repos:
2729
rev: 0.7.17
2830
hooks:
2931
- id: mdformat
32+
additional_dependencies:
33+
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]
34+
35+
- repo: https://github.com/pre-commit/mirrors-prettier
36+
rev: "v3.0.2"
37+
hooks:
38+
- id: prettier
39+
types_or: [yaml, html, json]
40+
41+
- repo: https://github.com/adamchainz/blacken-docs
42+
rev: "1.16.0"
43+
hooks:
44+
- id: blacken-docs
45+
additional_dependencies: [black==23.7.0]
3046

31-
- repo: https://github.com/psf/black
47+
- repo: https://github.com/psf/black-pre-commit-mirror
3248
rev: 23.9.1
3349
hooks:
3450
- id: black
3551

52+
- repo: https://github.com/codespell-project/codespell
53+
rev: "v2.2.5"
54+
hooks:
55+
- id: codespell
56+
args: ["-L", "sur,nd"]
57+
58+
- repo: https://github.com/pre-commit/pygrep-hooks
59+
rev: "v1.10.0"
60+
hooks:
61+
- id: rst-backticks
62+
- id: rst-directive-colons
63+
- id: rst-inline-touching-normal
64+
3665
- repo: https://github.com/astral-sh/ruff-pre-commit
37-
rev: v0.0.292
66+
rev: v0.1.1
3867
hooks:
3968
- id: ruff
40-
args: ["--fix"]
69+
args: ["--fix", "--show-fixes"]
70+
71+
- repo: https://github.com/scientific-python/cookie
72+
rev: "2023.08.23"
73+
hooks:
74+
- id: sp-repo-review
75+
additional_dependencies: ["repo-review[cli]"]

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ python:
1414
build:
1515
os: ubuntu-22.04
1616
tools:
17-
python: "3.11"
17+
python: "3.11"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
- Fix version_info
232232
- Make generated config files more lintable
233233
- Fix union trait from string
234-
- Add security.md, and tidelift bage
234+
- Add security.md, and tidelift badge
235235

236236
## 5.3.0
237237

docs/source/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Dynamic default values
4141
.. autofunction:: default
4242

4343
To calculate a default value dynamically, decorate a method of your class with
44-
`@default({traitname})`. This method will be called on the instance, and should
44+
``@default({traitname})``. This method will be called on the instance, and should
4545
return the default value. For example::
4646

4747
import getpass

0 commit comments

Comments
 (0)