Skip to content

Commit ab26d60

Browse files
committed
Update config
1 parent 537266b commit ab26d60

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

.github/workflows/lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push, pull_request, workflow_dispatch]
44

55
env:
66
FORCE_COLOR: 1
7+
PIP_DISABLE_PIP_VERSION_CHECK: 1
78

89
permissions:
910
contents: read
@@ -17,4 +18,5 @@ jobs:
1718
- uses: actions/setup-python@v5
1819
with:
1920
python-version: "3.x"
21+
cache: pip
2022
- uses: pre-commit/[email protected]

.github/workflows/test.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: Test
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
58
env:
69
FORCE_COLOR: 1
10+
PIP_DISABLE_PIP_VERSION_CHECK: 1
711

812
jobs:
913
test:
@@ -27,7 +31,6 @@ jobs:
2731
- name: Install dependencies
2832
run: |
2933
python -m pip install -U pip
30-
python -m pip install -U wheel
3134
python -m pip install -U tox
3235
3336
- name: Tox tests
@@ -38,7 +41,7 @@ jobs:
3841
uses: codecov/[email protected]
3942
with:
4043
flags: ${{ matrix.os }}
41-
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
44+
name: "${{ matrix.os }} Python ${{ matrix.python-version }}"
4245

4346
success:
4447
needs: test

.pre-commit-config.yaml

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,49 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.3.5
3+
rev: v0.4.5
44
hooks:
55
- id: ruff
6-
args: [--fix, --exit-non-zero-on-fix]
6+
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.3.0
9+
rev: 24.4.2
1010
hooks:
1111
- id: black
1212
exclude: ^html/
1313

1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.5.0
15+
rev: v4.6.0
1616
hooks:
17+
- id: check-added-large-files
1718
- id: check-case-conflict
1819
- id: check-merge-conflict
1920
- id: check-json
2021
- id: check-toml
2122
- id: check-yaml
2223
- id: debug-statements
2324
- id: end-of-file-fixer
25+
- id: forbid-submodules
2426
- id: trailing-whitespace
2527

28+
- repo: https://github.com/python-jsonschema/check-jsonschema
29+
rev: 0.28.4
30+
hooks:
31+
- id: check-github-workflows
32+
- id: check-renovate
33+
34+
- repo: https://github.com/rhysd/actionlint
35+
rev: v1.7.0
36+
hooks:
37+
- id: actionlint
38+
2639
- repo: https://github.com/tox-dev/pyproject-fmt
27-
rev: 1.7.0
40+
rev: 1.8.0
2841
hooks:
2942
- id: pyproject-fmt
3043
additional_dependencies: [tox]
3144

3245
- repo: https://github.com/abravalheri/validate-pyproject
33-
rev: v0.16
46+
rev: v0.18
3447
hooks:
3548
- id: validate-pyproject
3649

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ version.source = "vcs"
5252
[tool.hatch.version.raw-options]
5353
local_scheme = "no-local-version"
5454

55+
[tool.ruff]
56+
fix = true
57+
5558
[tool.ruff.lint]
5659
select = [
5760
"C4", # flake8-comprehensions
@@ -63,6 +66,7 @@ select = [
6366
"LOG", # flake8-logging
6467
"PGH", # pygrep-hooks
6568
"RUF100", # unused noqa (yesqa)
69+
"RUF022", # unsorted-dunder-all
6670
"UP", # pyupgrade
6771
"W", # pycodestyle warnings
6872
"YTT", # flake8-2020

0 commit comments

Comments
 (0)