Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e9bcaa

Browse files
authored
Merge pull request #170 from hugovk/update-config
2 parents b05ad28 + 14335e4 commit 6e9bcaa

File tree

5 files changed

+61
-8
lines changed

5 files changed

+61
-8
lines changed

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
assignees:
8+
- "ezio-melotti"
9+
groups:
10+
actions:
11+
patterns:
12+
- "*"
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Read the Docs PR preview
2+
# Automatically edits a pull request's descriptions with a link
3+
# to the documentation's preview on Read the Docs.
4+
5+
on:
6+
pull_request_target:
7+
types:
8+
- opened
9+
paths:
10+
- 'Doc/**'
11+
- '.github/workflows/doc.yml'
12+
13+
permissions:
14+
pull-requests: write
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
documentation-links:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: readthedocs/actions/preview@v1
25+
with:
26+
project-slug: "python-docs-theme-previews"
27+
single-version: "true"

.github/workflows/pypi-package.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
name: Publish to PyPI
2828
environment: release-pypi
2929
# Only run for published releases.
30-
if: github.repository_owner == 'python' && github.event.action == 'published'
30+
if: |
31+
github.repository_owner == 'python'
32+
&& github.event.action == 'published'
3133
runs-on: ubuntu-latest
3234
needs: build-package
3335

.pre-commit-config.yaml

+15-7
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@ repos:
66
args: [--py38-plus]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 23.9.1
9+
rev: 24.1.1
1010
hooks:
1111
- id: black
1212

1313
- repo: https://github.com/PyCQA/isort
14-
rev: 5.12.0
14+
rev: 5.13.2
1515
hooks:
1616
- id: isort
17-
args: [--add-import=from __future__ import annotations]
1817

1918
- repo: https://github.com/PyCQA/flake8
20-
rev: 6.1.0
19+
rev: 7.0.0
2120
hooks:
2221
- id: flake8
2322
additional_dependencies:
@@ -32,19 +31,28 @@ repos:
3231
rev: v4.5.0
3332
hooks:
3433
- id: check-case-conflict
35-
- id: check-executables-have-shebangs
3634
- id: check-merge-conflict
37-
- id: check-json
3835
- id: check-toml
3936
- id: check-yaml
4037
- id: debug-statements
4138
- id: end-of-file-fixer
4239
- id: trailing-whitespace
4340

41+
- repo: https://github.com/tox-dev/pyproject-fmt
42+
rev: 1.7.0
43+
hooks:
44+
- id: pyproject-fmt
45+
args: [--max-supported-python=3.13]
46+
4447
- repo: https://github.com/abravalheri/validate-pyproject
45-
rev: v0.14
48+
rev: v0.16
4649
hooks:
4750
- id: validate-pyproject
4851

52+
- repo: meta
53+
hooks:
54+
- id: check-hooks-apply
55+
- id: check-useless-excludes
56+
4957
ci:
5058
autoupdate_schedule: quarterly

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ name = "python_docs_theme"
4343
include = [
4444
"python_docs_theme/",
4545
]
46+
47+
[tool.isort]
48+
add_imports = "from __future__ import annotations"
49+
profile = "black"

0 commit comments

Comments
 (0)