Skip to content

Commit 7e53d57

Browse files
committed
Add more hooks
1 parent 5e02df4 commit 7e53d57

7 files changed

Lines changed: 51 additions & 12 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ updates:
1111
pip:
1212
patterns:
1313
- "*"
14+
cooldown:
15+
default-days: 7
1416

1517
# Maintain dependencies for GitHub Actions
1618
- package-ecosystem: "github-actions"
@@ -23,3 +25,5 @@ updates:
2325
actions:
2426
patterns:
2527
- "*"
28+
cooldown:
29+
default-days: 7

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ jobs:
4444
if: always()
4545
with:
4646
token: ${{ secrets.CODECOV_ORG_TOKEN }}
47-
file: ./coverage.xml
47+
files: ./coverage.xml
4848
flags: Python_${{ steps.python-install.outputs.python-version }}

.github/zizmor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://docs.zizmor.sh/configuration/
2+
rules:
3+
unpinned-uses:
4+
config:
5+
policies:
6+
"*": ref-pin

.pre-commit-config.yaml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,35 @@ repos:
1616
- id: check-builtin-literals
1717
- id: check-added-large-files
1818
- id: check-case-conflict
19-
- id: check-toml
2019
- id: check-yaml
2120
- id: debug-statements
2221
- id: end-of-file-fixer
23-
- id: forbid-new-submodules
22+
- id: forbid-submodules
23+
- id: requirements-txt-fixer
2424
- id: trailing-whitespace
25+
26+
- repo: https://github.com/python-jsonschema/check-jsonschema
27+
rev: 0.36.0
28+
hooks:
29+
- id: check-dependabot
30+
- id: check-github-workflows
31+
32+
- repo: https://github.com/rhysd/actionlint
33+
rev: v1.7.10
34+
hooks:
35+
- id: actionlint
36+
37+
- repo: https://github.com/woodruffw/zizmor-pre-commit
38+
rev: v1.19.0
39+
hooks:
40+
- id: zizmor
41+
42+
- repo: https://github.com/tox-dev/tox-ini-fmt
43+
rev: 1.7.1
44+
hooks:
45+
- id: tox-ini-fmt
46+
47+
- repo: meta
48+
hooks:
49+
- id: check-hooks-apply
50+
- id: check-useless-excludes

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-r requirements.txt
22
asynctest==0.13.0
33
pytest==9.0.2
4-
pytest-asyncio==1.3.0
54
pytest-aiohttp==1.1.0
5+
pytest-asyncio==1.3.0
66
pytest-cov==7.0.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gidgethub==5.4.0
77
multidict==6.7.0
88
packaging==25.0
99
pyparsing==3.3.1
10+
sentry-sdk==2.48.0
1011
six==1.17.0
1112
uritemplate==4.2.0
1213
yarl==1.22.0
13-
sentry-sdk==2.48.0

tox.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
[tox]
2-
envlist = py{314, 313, 312, 311, 310}
3-
toxworkdir={env:TOX_WORK_DIR:.tox}
2+
requires =
3+
tox>=4.2
4+
env_list =
5+
py{314, 313, 312, 311, 310}
6+
work_dir = {env:TOX_WORK_DIR:.tox}
47

58
[testenv]
6-
passenv =
7-
FORCE_COLOR
8-
skip_install = True
9+
skip_install = true
910
deps =
10-
-r dev-requirements.txt
11+
-r dev-requirements.txt
12+
pass_env =
13+
FORCE_COLOR
1114
commands =
12-
pytest {posargs}
15+
pytest {posargs}

0 commit comments

Comments
 (0)