File tree 5 files changed +61
-8
lines changed
5 files changed +61
-8
lines changed Original file line number Diff line number Diff line change
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
+ - " *"
Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change 27
27
name : Publish to PyPI
28
28
environment : release-pypi
29
29
# 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'
31
33
runs-on : ubuntu-latest
32
34
needs : build-package
33
35
Original file line number Diff line number Diff line change 6
6
args : [--py38-plus]
7
7
8
8
- repo : https://github.com/psf/black-pre-commit-mirror
9
- rev : 23.9 .1
9
+ rev : 24.1 .1
10
10
hooks :
11
11
- id : black
12
12
13
13
- repo : https://github.com/PyCQA/isort
14
- rev : 5.12.0
14
+ rev : 5.13.2
15
15
hooks :
16
16
- id : isort
17
- args : [--add-import=from __future__ import annotations]
18
17
19
18
- repo : https://github.com/PyCQA/flake8
20
- rev : 6.1 .0
19
+ rev : 7.0 .0
21
20
hooks :
22
21
- id : flake8
23
22
additional_dependencies :
@@ -32,19 +31,28 @@ repos:
32
31
rev : v4.5.0
33
32
hooks :
34
33
- id : check-case-conflict
35
- - id : check-executables-have-shebangs
36
34
- id : check-merge-conflict
37
- - id : check-json
38
35
- id : check-toml
39
36
- id : check-yaml
40
37
- id : debug-statements
41
38
- id : end-of-file-fixer
42
39
- id : trailing-whitespace
43
40
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
+
44
47
- repo : https://github.com/abravalheri/validate-pyproject
45
- rev : v0.14
48
+ rev : v0.16
46
49
hooks :
47
50
- id : validate-pyproject
48
51
52
+ - repo : meta
53
+ hooks :
54
+ - id : check-hooks-apply
55
+ - id : check-useless-excludes
56
+
49
57
ci :
50
58
autoupdate_schedule : quarterly
Original file line number Diff line number Diff line change @@ -43,3 +43,7 @@ name = "python_docs_theme"
43
43
include = [
44
44
" python_docs_theme/" ,
45
45
]
46
+
47
+ [tool .isort ]
48
+ add_imports = " from __future__ import annotations"
49
+ profile = " black"
You can’t perform that action at this time.
0 commit comments