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 1010 - docs/*
1111 workflow_dispatch :
1212
13+ # https://github.com/softprops/action-gh-release/issues/236
14+ permissions :
15+ contents : write
16+
1317env :
14- files : dist/*
18+ PYTHONUTF8 : " 1 "
1519 python-version : 3.x
1620 cache : pip
1721
4044 - name : Test
4145 run : |
4246 pytest --cov
43- - name : Test for macOS and Linux
44- if : runner.os != 'Windows'
45- run : |
46- pre-commit run -a
4747 - uses : codecov/codecov-action@v3
4848 build :
4949 needs : test
@@ -74,13 +74,13 @@ jobs:
7474 if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
7575 with :
7676 path : |
77- ${{ env.files }}
77+ dist/*
7878 - uses : softprops/action-gh-release@v1
79- if : startsWith(github.ref, 'refs/tags/')
8079 with :
80+ body_path : build/CHANGELOG.md
8181 files : |
82- ${{ env.files }}
82+ dist/*
8383 - 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/')
8585 with :
8686 password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -23,31 +23,31 @@ repos:
2323 - id : check-toml
2424 - id : check-json
2525 - repo : https://github.com/Lucas-C/pre-commit-hooks
26- rev : v1.3.1
26+ rev : v1.4.2
2727 hooks :
2828 - id : remove-crlf
2929 - repo : https://github.com/codespell-project/codespell
30- rev : v2.2.2
30+ rev : v2.2.4
3131 hooks :
3232 - id : codespell
3333 additional_dependencies :
3434 - tomli
3535 - repo : https://github.com/jorisroovers/gitlint
36- rev : v0.18.0
36+ rev : v0.19.1
3737 hooks :
3838 - id : gitlint
3939 args :
4040 - --msg-filename
4141 - repo : https://github.com/editorconfig-checker/editorconfig-checker.python
42- rev : 2.6.2
42+ rev : 2.7.1
4343 hooks :
4444 - id : editorconfig-checker
4545 - repo : https://github.com/jumanjihouse/pre-commit-hooks
4646 rev : 3.0.0
4747 hooks :
4848 - id : check-mailmap
4949 - repo : https://github.com/adrienverge/yamllint
50- rev : v1.28 .0
50+ rev : v1.30 .0
5151 hooks :
5252 - id : yamllint
5353 - repo : https://github.com/executablebooks/mdformat
5757 args :
5858 - --number
5959 additional_dependencies :
60+ - mdformat-gfm
6061 - mdformat-myst
6162 - mdformat-toc
6263 - mdformat-deflist
@@ -69,32 +70,45 @@ repos:
6970 - id : markdownlint-cli2
7071 additional_dependencies :
7172 - markdown-it-texmath@0.9.1
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
7282 - repo : https://github.com/psf/black
73- rev : 22.12 .0
83+ rev : 23.1 .0
7484 hooks :
7585 - id : black
7686 - repo : https://github.com/PyCQA/isort
77- rev : 5.11.4
87+ rev : 5.12.0
7888 hooks :
7989 - id : isort
8090 - repo : https://github.com/pycqa/pydocstyle
81- rev : 6.1.1
91+ rev : 6.3.0
8292 hooks :
8393 - id : pydocstyle
8494 additional_dependencies :
85- - toml
95+ - tomli
8696 - repo : https://github.com/kumaraditya303/mirrors-pyright
87- rev : v1.1.286
97+ rev : v1.1.300
8898 hooks :
8999 - id : pyright
90100 - repo : https://github.com/PyCQA/bandit
91- rev : 1.7.4
101+ rev : 1.7.5
92102 hooks :
93103 - id : bandit
94104 args :
95105 - -cpyproject.toml
96106 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
98112
99113ci :
100114 skip :
Original file line number Diff line number Diff line change @@ -43,9 +43,13 @@ write_to = "src/sphinxcontrib/eval/_version.py"
4343[tool .setuptools .dynamic ]
4444dependencies = { file = " requirements.txt" }
4545
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
4953
5054[tool .black ]
5155line-length = 79
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# !/usr/bin/env -S perl -n
2- $. = 1 unless $#ARGV == $oldargc ;
2+ $. = 1 unless $#ARGV == $oldargc ;
33$oldargc = $#ARGV ;
44next unless $. == 1;
55$_ = $ARGV ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments