Skip to content

Commit b7ed95d

Browse files
authored
Merge pull request #100 from smkent/manage-cookie
Update project template cruft, dependencies
2 parents ef0eb85 + 97c1031 commit b7ed95d

4 files changed

Lines changed: 303 additions & 302 deletions

File tree

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": ".",
3-
"commit": "c4899ec894c43ac32a763a480b6fb0f209503ede",
3+
"commit": "ef0eb856151aa6b4a7442a6c3e8ceb6511203ac2",
44
"context": {
55
"cookiecutter": {
66
"project_name": "Cookiecutter template for new Python projects",

.github/workflows/actions/python-poetry/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
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
@@ -35,8 +35,10 @@ runs:
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

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ repos:
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:
@@ -42,6 +42,7 @@ repos:
4242
rev: v3.15.0
4343
hooks:
4444
- id: pyupgrade
45+
args: ["--keep-runtime-typing"]
4546
- repo: local
4647
hooks:
4748
- id: mypy

0 commit comments

Comments
 (0)