Skip to content

Commit 5f2135f

Browse files
committed
Pre-commit updates
1 parent b250bab commit 5f2135f

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Distribution
4343
uses: actions/upload-artifact@v4
4444
with:
45-
name: "dist ${{ github.job }}-${{ strategy.job-index }}"
45+
name: "dist built in ${{ matrix.python-version }}-${{ matrix.os }}"
4646
path: dist/*
4747

4848
- name: Coverage

.github/workflows/enforce-label.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Enforce PR label
1+
name: Enforce PR label and pre-commit
22

33
concurrency:
44
group: label-${{ github.ref }}
@@ -15,3 +15,7 @@ jobs:
1515
steps:
1616
- name: enforce-triage-label
1717
uses: jupyterlab/maintainer-tools/.github/actions/enforce-label@v1
18+
19+
- name: pre-commit
20+
uses: pre-commit-ci/lite-action@v1.1.0
21+
if: always()

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ repos:
1313
- id: check-added-large-files
1414
- id: check-case-conflict
1515
- id: check-merge-conflict
16-
- id: check-json
1716
- id: check-toml
1817
- id: check-yaml
1918
- id: debug-statements
2019
exclude: async_kernel/kernel.py
2120
- id: end-of-file-fixer
2221
- id: trailing-whitespace
2322

23+
- repo: https://gitlab.com/bmares/check-json5
24+
rev: v1.0.0
25+
hooks:
26+
- id: check-json5
27+
2428
- repo: https://github.com/python-jsonschema/check-jsonschema
2529
rev: 0.33.2
2630
hooks:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ omit = ["tests/*", "hatch_build.py"]
153153

154154
[tool.ruff]
155155
required-version = ">=0.12.8"
156-
target-version = 'py311'
157156
line-length = 120
158157

159158
[tool.ruff.lint]
@@ -220,8 +219,9 @@ exclude = ["docs", "tests"]
220219
toplevel = ["async_kernel/"]
221220
ignore = ["W002"]
222221

223-
[tool.repo-review]
224-
ignore = ["PY007", "PP308", "GH102", "MY101"]
222+
[tool.repo-review.ignore]
223+
PC140 = "doesn't detect basedpyright as a typechecker" # Use a type checker
224+
MY = "Not using mypy yet" # Skip all MyPy
225225

226226
[tool.hatch.metadata]
227227
allow-direct-references = true

0 commit comments

Comments
 (0)