Skip to content

Commit

Permalink
Update project template cruft, dependencies
Browse files Browse the repository at this point in the history
Applied updates from upstream project template commits:

c4899ec...ef0eb85

*   ef0eb85 Merge pull request #99 from smkent/python-3.11
|\
| * b635686 Re-add missing Python 3.11 to project template CI config
|/
*   dfd8d8e Merge pull request #98 from smkent/pre-commit-update
|\
| * 9a19b22 Update pre-commit hooks
|/
*   83240dd Merge pull request #97 from smkent/python-3.12
|\
| * 66cd3af Install toml before running cruft in new cookie creation unit test
| * 6349efb Ignore flake8 E231 false positive
| * bcc7b94 Build with Poetry version 1.6
| * 2b191a0 Remove unused `type: ignore` comment
| * 6917c18 Update cookie-python dependencies
| * 8c2ae5b Add and use Python 3.12 for releases, update Poetry to 1.6
|/
*   8f8cd1d Merge pull request #96 from smkent/toml-for-update
|\
| * eef08fc Ensure toml is installed in repo sandbox before running cruft update
|/
*   ae5c427 Merge pull request #95 from smkent/container-version
|\
| * a813ce2 Enable and test container build in test_new_cookie_create
| * 3f2debd Update docker action versions in template's container.yml
| * 9ac5896 Escape `{{` in template container.yml
| * a99ca57 Fix container build with updated poetry-dynamic-versioning
|/
*   41468dd Merge pull request #94 from smkent/pyupgrade-keep-runtime-typing
|\
| * 82b8568 Add --keep-runtime-typing to pyupgrade args
|/
*   c83e9f4 Merge pull request #93 from smkent/manage-run-env
|\
| * 4a161e4 Include PYTHON_KEYRING_BACKEND in repo run commands env
|/
*   f6ac9b1 Merge pull request #92 from smkent/manage-update-pr-html-url
|\
| * 30372bf Log opened PR's HTML URL instead of API URL in manage-cookie update
|/
* 26efcfa Merge pull request #91 from smkent/manage-cookie
* 91b6a89 Set PYTHON_KEYRING_BACKEND for poetry within unit tests
* cf0f69a Apply automatic linting fixes
* 582d618 Update project template cruft

Updated project dependencies via `poetry update`:

Package operations: 0 installs, 30 updates, 0 removals

- Updating certifi (2023.7.22 -> 2023.11.17)
- Updating idna (3.4 -> 3.6)
- Updating pygments (2.16.1 -> 2.17.2)
- Updating types-python-dateutil (2.8.19.14 -> 2.8.19.20240106)
- Updating typing-extensions (4.8.0 -> 4.9.0)
- Updating urllib3 (2.0.7 -> 2.1.0)
- Updating cryptography (41.0.5 -> 41.0.7)
- Updating distlib (0.3.7 -> 0.3.8)
- Updating pbr (5.11.1 -> 6.0.0)
- Updating platformdirs (3.11.0 -> 4.1.0)
- Updating exceptiongroup (1.1.3 -> 1.2.0)
- Updating setuptools (68.2.2 -> 69.0.3)
- Updating wrapt (1.15.0 -> 1.16.0)
- Updating rich (13.6.0 -> 13.7.0)
- Updating attrs (23.1.0 -> 23.2.0)
- Updating cookiecutter (2.4.0 -> 2.5.0)
- Updating identify (2.5.31 -> 2.5.33)
- Updating coverage (7.3.2 -> 7.4.0)
- Updating pathspec (0.11.2 -> 0.12.1)
- Updating tomlkit (0.12.1 -> 0.12.3)
- Updating virtualenv (20.24.6 -> 20.25.0)
- Updating termcolor (2.3.0 -> 2.4.0)
- Updating pytest (7.4.3 -> 7.4.4)
- Updating importlib-metadata (6.8.0 -> 7.0.1)
- Updating bandit (1.7.5 -> 1.7.6)
- Updating black (23.10.1 -> 23.12.1)
- Updating isort (5.12.0 -> 5.13.2)
- Updating mypy (1.6.1 -> 1.8.0)
- Updating poethepoet (0.24.1 -> 0.24.4)
- Updating poetry-dynamic-versioning (1.1.1 -> 1.2.0)

Writing lock file
  • Loading branch information
smkent committed Jan 10, 2024
1 parent ef0eb85 commit 97c1031
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 302 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": ".",
"commit": "c4899ec894c43ac32a763a480b6fb0f209503ede",
"commit": "ef0eb856151aa6b4a7442a6c3e8ceb6511203ac2",
"context": {
"cookiecutter": {
"project_name": "Cookiecutter template for new Python projects",
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/actions/python-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
python-version: ${{ inputs.python_version }}
cache: poetry

- name: 🛠️ Install project dependencies
- name: 🛠️ Install project and dependencies
shell: bash
env:
# https://github.com/python-poetry/poetry/issues/1917
Expand All @@ -35,8 +35,10 @@ runs:
run: |
poetry install
poetry lock --check
[ "$(poetry version -s)" != "0.0.0" ] \
PROJECT_VERSION=$(poetry version -s)
[ "${PROJECT_VERSION}" != "0.0.0" ] \
|| { echo "Versioning broken"; exit 1; }
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV
- name: 🪝 Cache pre-commit hooks
uses: actions/cache@v3
Expand Down
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.12.1
hooks:
- id: black
args: ["--config", "pyproject.toml"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--show-config"]
- repo: https://github.com/pycqa/bandit
rev: 1.7.5
rev: 1.7.6
hooks:
- id: bandit
additional_dependencies: ['.[toml]']
args: ["--configfile", "pyproject.toml"]
exclude: '^tests/'
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -42,6 +42,7 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--keep-runtime-typing"]
- repo: local
hooks:
- id: mypy
Expand Down
Loading

0 comments on commit 97c1031

Please sign in to comment.