Skip to content

Commit d7c7499

Browse files
committed
Update repo to the newest cookiecutter template
1 parent 79389e9 commit d7c7499

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/nekeal/cookiecutter-python-package",
3-
"commit": "d31925e91689aaddecbf2a1f8d29d5d3cbf451ee",
3+
"commit": "5ce8cdcdf6b14e216a450efd12e888019856616c",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
continue-on-error: true
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v4
1414
with:
1515
python-version: "3.12"
@@ -27,7 +27,7 @@ jobs:
2727
matrix:
2828
python-version: ["3.11", "3.12"]
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
- uses: actions/setup-python@v4
3232
with:
3333
python-version: ${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ repos:
2020
types: [python]
2121
- id: ruff
2222
name: ruff
23-
entry: poetry run ruff check --fix
23+
# Remove --fix, in case you want it to disable autofix when this hook runs
24+
entry: poetry run ruff check --fix --force-exclude
25+
require_serial: true
2426
language: system
2527
types: [ python ]
2628
- id: mypy

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
### Fixed
88
- Fixed typing in cli module
99
- Adapt ruff config for a newer version
10+
11+
### Changed
12+
- Update repository to the newest cookiecutter template

LICENCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2023 nekeal <[email protected]>
3+
Copyright (c) 2024 nekeal <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ aoc verify
145145

146146
### Pre-commit
147147

148-
Pre-commit hooks run all the auto-formatters (e.g. `ruff`), linters (e.g. `mypy`), and other quality
148+
Pre-commit hooks run all the auto-formatting (`ruff format`), linters (e.g. `ruff` and `mypy`), and other quality
149149
checks to make sure the changeset is in good shape before a commit/push happens.
150150

151151
You can install hooks with (runs for each commit):

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ requires = ["poetry-core>=1.0.0"]
4747
build-backend = "poetry.core.masonry.api"
4848

4949
[tool.ruff]
50+
target-version = "py311"
5051
exclude = [
5152
".git",
5253
"__pycache__",

0 commit comments

Comments
 (0)