10000 Fix Dependabot grouping and validate YAML (#692) · python/miss-islington@005e01b · GitHub
[go: up one dir, main page]

Skip to content

Commit 005e01b

Browse files
authored
Fix Dependabot grouping and validate YAML (#692)
1 parent 4388193 commit 005e01b

File tree

4 files changed

+64
-13
lines changed

4 files changed

+64
-13
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
version: 2
22
updates:
3-
- package-ecosystem: pip
4-
directory: "/"
5-
schedule:
6-
interval: monthly
7-
assignees:
8-
- "ezio-melotti"
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
assignees:
8+
- "ezio-melotti"
99
groups:
1010
pip:
1111
patterns:
1212
- "*"
1313

14-
- package-ecosystem: "github-actions"
15-
directory: "/"
16-
schedule:
17-
interval: monthly
18-
assignees:
19-
- "ezio-melotti"
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: monthly
18+
assignees:
19+
- "ezio-melotti"
2020
groups:
2121
actions:
2222
patterns:

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
FORCE_COLOR: 1
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
cache: pip
21+
- uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pygrep-hooks
3+
rev: v1.10.0
4+
hooks:
5+
- id: python-check-blanket-noqa
6+
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v4.5.0
9+
hooks:
10+
- id: check-added-large-files
11+
- id: check-case-conflict
12+
- id: check-merge-conflict
13+
- id: check-yaml
14+
- id: debug-statements
15+
- id: end-of-file-fixer
16+
- id: forbid-submodules
17+
- id: trailing-whitespace
18+
19+
- repo: https://github.com/python-jsonschema/check-jsonschema
20+
rev: 0.28.1
21+
hooks:
22+
- id: check-dependabot
23+
- id: check-github-workflows
24+
25+
- repo: meta
26+
hooks:
27+
- id: check-hooks-apply
28+
- id: check-useless-excludes
29+
30+
ci:
31+
autoupdate_schedule: quarterly

tests/test_util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,3 @@ async def test_assign_pr_to_coredev():
175175

176176
await util.assign_pr_to_core_dev(gh, issue_number, coredev_login)
177177
assert gh.patch_url == f"/repos/python/cpython/issues/{issue_number}"
178-

0 commit comments

Comments
 (0)
0