File tree Expand file tree Collapse file tree 6 files changed +43
-40
lines changed Expand file tree Collapse file tree 6 files changed +43
-40
lines changed Original file line number Diff line number Diff line change 10
10
- docs/*
11
11
workflow_dispatch :
12
12
13
+ # https://github.com/softprops/action-gh-release/issues/236
14
+ permissions :
15
+ contents : write
16
+
13
17
env :
14
- files : dist/*
18
+ PYTHONUTF8 : " 1 "
15
19
python-version : 3.x
16
20
cache : pip
17
21
40
44
- name : Test
41
45
run : |
42
46
pytest --cov
43
- - name : Test for macOS and Linux
44
- if : runner.os != 'Windows'
45
- run : |
46
- pre-commit run -a
47
47
- uses : codecov/codecov-action@v3
48
48
build :
49
49
needs : test
@@ -74,13 +74,13 @@ jobs:
74
74
if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
75
75
with :
76
76
path : |
77
- ${{ env.files }}
77
+ dist/*
78
78
- uses : softprops/action-gh-release@v1
79
- if : startsWith(github.ref, 'refs/tags/')
80
79
with :
80
+ body_path : build/CHANGELOG.md
81
81
files : |
82
- ${{ env.files }}
82
+ dist/*
83
83
- uses : pypa/gh-action-pypi-publish@release/v1
84
- if : startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux'
84
+ if : runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
85
85
with :
86
86
password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -23,31 +23,31 @@ repos:
23
23
- id : check-toml
24
24
- id : check-json
25
25
- repo : https://github.com/Lucas-C/pre-commit-hooks
26
- rev : v1.3.1
26
+ rev : v1.4.2
27
27
hooks :
28
28
- id : remove-crlf
29
29
- repo : https://github.com/codespell-project/codespell
30
- rev : v2.2.2
30
+ rev : v2.2.4
31
31
hooks :
32
32
- id : codespell
33
33
additional_dependencies :
34
34
- tomli
35
35
- repo : https://github.com/jorisroovers/gitlint
36
- rev : v0.18.0
36
+ rev : v0.19.1
37
37
hooks :
38
38
- id : gitlint
39
39
args :
40
40
- --msg-filename
41
41
- repo : https://github.com/editorconfig-checker/editorconfig-checker.python
42
- rev : 2.6.2
42
+ rev : 2.7.1
43
43
hooks :
44
44
- id : editorconfig-checker
45
45
- repo : https://github.com/jumanjihouse/pre-commit-hooks
46
46
rev : 3.0.0
47
47
hooks :
48
48
- id : check-mailmap
49
49
- repo : https://github.com/adrienverge/yamllint
50
- rev : v1.28 .0
50
+ rev : v1.30 .0
51
51
hooks :
52
52
- id : yamllint
53
53
- repo : https://github.com/executablebooks/mdformat
57
57
args :
58
58
- --number
59
59
additional_dependencies :
60
+ - mdformat-gfm
60
61
- mdformat-myst
61
62
- mdformat-toc
62
63
- mdformat-deflist
@@ -69,32 +70,45 @@ repos:
69
70
- id : markdownlint-cli2
70
71
additional_dependencies :
71
72
73
+ - repo : https://github.com/Freed-Wu/pre-commit-hooks
74
+ rev : 0.0.10
75
+ hooks :
76
+ - id : update-CITATION.cff
77
+ - id : update-pyproject.toml
78
+ - repo : https://github.com/perltidy/perltidy
79
+ rev : " 20230309.02"
80
+ hooks :
81
+ - id : perltidy
72
82
- repo : https://github.com/psf/black
73
- rev : 22.12 .0
83
+ rev : 23.1 .0
74
84
hooks :
75
85
- id : black
76
86
- repo : https://github.com/PyCQA/isort
77
- rev : 5.11.4
87
+ rev : 5.12.0
78
88
hooks :
79
89
- id : isort
80
90
- repo : https://github.com/pycqa/pydocstyle
81
- rev : 6.1.1
91
+ rev : 6.3.0
82
92
hooks :
83
93
- id : pydocstyle
84
94
additional_dependencies :
85
- - toml
95
+ - tomli
86
96
- repo : https://github.com/kumaraditya303/mirrors-pyright
87
- rev : v1.1.286
97
+ rev : v1.1.300
88
98
hooks :
89
99
- id : pyright
90
100
- repo : https://github.com/PyCQA/bandit
91
- rev : 1.7.4
101
+ rev : 1.7.5
92
102
hooks :
93
103
- id : bandit
94
104
args :
95
105
- -cpyproject.toml
96
106
additional_dependencies :
97
- - toml
107
+ - tomli
108
+ - repo : https://github.com/nix-community/nixpkgs-fmt
109
+ rev : v1.3.0
110
+ hooks :
111
+ - id : nixpkgs-fmt
98
112
99
113
ci :
100
114
skip :
Original file line number Diff line number Diff line change @@ -43,9 +43,13 @@ write_to = "src/sphinxcontrib/eval/_version.py"
43
43
[tool .setuptools .dynamic ]
44
44
dependencies = { file = " requirements.txt" }
45
45
46
- [tool .setuptools .dynamic .optional-dependencies ]
47
- dev = { file = " requirements/dev.txt" }
48
- myst = { file = " requirements/myst.txt" }
46
+ # begin: scripts/update-pyproject.toml.pl
47
+ [tool .setuptools .dynamic .optional-dependencies .dev ]
48
+ file = " requirements/dev.txt"
49
+
50
+ [tool .setuptools .dynamic .optional-dependencies .myst ]
51
+ file = " requirements/myst.txt"
52
+ # end: scripts/update-pyproject.toml.pl
49
53
50
54
[tool .black ]
51
55
line-length = 79
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# !/usr/bin/env -S perl -n
2
- $. = 1 unless $#ARGV == $oldargc ;
2
+ $. = 1 unless $#ARGV == $oldargc ;
3
3
$oldargc = $#ARGV ;
4
4
next unless $. == 1;
5
5
$_ = $ARGV ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments