Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/codecov/codecov-ac…
Browse files Browse the repository at this point in the history
…tion-4
  • Loading branch information
hugovk committed Apr 10, 2024
2 parents d0ba01c + 005e01b commit ba45dde
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 22 deletions.
34 changes: 20 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: monthly
assignees:
- "ezio-melotti"
open-pull-requests-limit: 10
- package-ecosystem: pip
directory: "/"
schedule:
interval: monthly
assignees:
- "ezio-melotti"
groups:
pip:
patterns:
- "*"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
assignees:
- "ezio-melotti"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
assignees:
- "ezio-melotti"
groups:
actions:
patterns:
- "*"
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint

on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 1

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
- uses: pre-commit/[email protected]
31 changes: 31 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
repos:
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: forbid-submodules
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.1
hooks:
- id: check-dependabot
- id: check-github-workflows

- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

ci:
autoupdate_schedule: quarterly
6 changes: 3 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r requirements.txt
coverage
pytest==7.4.4
pytest-asyncio==0.23.3
pytest==8.1.1
pytest-asyncio==0.23.6
pytest-aiohttp==1.0.5
pytest-cov==4.1.0
pytest-cov==5.0.0
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cherry_picker==2.2.0
#git+https://github.com/python/cherry-picker.git@remove-initial-state#egg=cherry_picker
aiohttp==3.9.2
aiohttp==3.9.3
gidgethub==5.3.0
cachetools==5.3.2
redis==5.0.1
cachetools==5.3.3
redis==5.0.3
celery==5.3.6
sentry-sdk==1.39.1
sentry-sdk==1.44.0
click==8.1.7
1 change: 0 additions & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,3 @@ async def test_assign_pr_to_coredev():

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

0 comments on commit ba45dde

Please sign in to comment.