Skip to content

Commit 8740ea1

Browse files
authored
Merge branch 'main' into skip-poetry-in-precommit
2 parents 3e03434 + 669a039 commit 8740ea1

File tree

7 files changed

+398
-289
lines changed

7 files changed

+398
-289
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Dependabot auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'dependabot[bot]'
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v2
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
- name: Enable auto-merge for Dependabot PRs
19+
# TODO: put this list somewhere more manageable
20+
if: contains(fromJSON('["ruff", "mypy", "pytest", "ansi2html", "lxml", "jinja2"]'), steps.metadata.outputs.dependency-names) && steps.metadata.outputs.update-type == 'version-update:semver-patch'
21+
run: gh pr merge --auto --merge "$PR_URL"
22+
env:
23+
PR_URL: ${{github.event.pull_request.html_url}}
24+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/make-based-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
poetry-checks:
1115
runs-on: ubuntu-latest

.github/workflows/pre-commit-updates.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
env:
2020
SKIP: "Reset Poetry Project Version to 0.0.0"
2121

22-
- uses: peter-evans/create-pull-request@v6
22+
- uses: peter-evans/create-pull-request@v7
2323
if: always()
2424
with:
2525
token: ${{ secrets.GITHUB_TOKEN }}
26+
sign-commits: true
2627
branch: update/pre-commit-hooks
2728
delete-branch: true
2829
labels: dependencies

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -25,7 +25,7 @@ repos:
2525

2626
# Prevent old Pythonisms
2727
- repo: https://github.com/asottile/pyupgrade
28-
rev: v3.16.0
28+
rev: v3.17.0
2929
hooks:
3030
- id: pyupgrade
3131

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ PYTEST ?= $(POETRY) run pytest
8383

8484
.PHONY: help
8585
help: ## Display this help
86-
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
86+
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
8787

8888
.PHONY: debug-make
8989
debug-make: ## Shows ~all runtime-set variables

poetry.lock

Lines changed: 364 additions & 284 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pytest-cov = "*"
3838
# opinionated code formatter
3939
black = ">=22"
4040
# type hints checker
41-
mypy = "*"
41+
mypy = { version = "*", extras = ["faster-cache"] }
4242
# xml library, used for outputting HTML reports from mypy, etc.
4343
lxml = "*"
4444
# lightning fast linter and style checker

0 commit comments

Comments
 (0)