File tree Expand file tree Collapse file tree
.github/workflows/actions/python-poetry Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "template" : " ." ,
3- "commit" : " c4899ec894c43ac32a763a480b6fb0f209503ede " ,
3+ "commit" : " ef0eb856151aa6b4a7442a6c3e8ceb6511203ac2 " ,
44 "context" : {
55 "cookiecutter" : {
66 "project_name" : " Cookiecutter template for new Python projects" ,
Original file line number Diff line number Diff line change 2626 python-version : ${{ inputs.python_version }}
2727 cache : poetry
2828
29- - name : 🛠️ Install project dependencies
29+ - name : 🛠️ Install project and dependencies
3030 shell : bash
3131 env :
3232 # https://github.com/python-poetry/poetry/issues/1917
3535 run : |
3636 poetry install
3737 poetry lock --check
38- [ "$(poetry version -s)" != "0.0.0" ] \
38+ PROJECT_VERSION=$(poetry version -s)
39+ [ "${PROJECT_VERSION}" != "0.0.0" ] \
3940 || { echo "Versioning broken"; exit 1; }
41+ echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV
4042
4143 - name : 🪝 Cache pre-commit hooks
4244 uses : actions/cache@v3
Original file line number Diff line number Diff line change 99 - id : end-of-file-fixer
1010 - id : trailing-whitespace
1111 - repo : https://github.com/psf/black
12- rev : 23.10 .1
12+ rev : 23.12 .1
1313 hooks :
1414 - id : black
1515 args : ["--config", "pyproject.toml"]
1616 - repo : https://github.com/pycqa/isort
17- rev : 5.12.0
17+ rev : 5.13.2
1818 hooks :
1919 - id : isort
2020 args : ["--show-config"]
2121 - repo : https://github.com/pycqa/bandit
22- rev : 1.7.5
22+ rev : 1.7.6
2323 hooks :
2424 - id : bandit
2525 additional_dependencies : ['.[toml]']
2626 args : ["--configfile", "pyproject.toml"]
2727 exclude : ' ^tests/'
2828 - repo : https://github.com/pycqa/flake8
29- rev : 6.1 .0
29+ rev : 7.0 .0
3030 hooks :
3131 - id : flake8
3232 additional_dependencies :
4242 rev : v3.15.0
4343 hooks :
4444 - id : pyupgrade
45+ args : ["--keep-runtime-typing"]
4546 - repo : local
4647 hooks :
4748 - id : mypy
You can’t perform that action at this time.
0 commit comments