Skip to content

Commit 0736e5d

Browse files
committed
pre-commit autoupdate
1 parent 05ab61d commit 0736e5d

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
max-parallel: 5
1919
matrix:
20-
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
20+
python-version: [3.8, 3.9, '3.10', '3.11']
2121

2222
steps:
2323
- name: Checkout code 🛎️

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
additional_dependencies:
1616
- mdformat-toc
1717
- repo: https://github.com/Lucas-C/pre-commit-hooks
18-
rev: v1.5.0
18+
rev: v1.5.1
1919
hooks:
2020
- id: forbid-crlf
2121
- id: remove-crlf
@@ -37,14 +37,14 @@ repos:
3737
- id: check-executables-have-shebangs
3838
- id: check-shebang-scripts-are-executable
3939
- repo: https://github.com/asottile/pyupgrade
40-
rev: v3.3.1
40+
rev: v3.10.1
4141
hooks:
4242
- id: pyupgrade
4343
args:
4444
- --py37-plus
4545
exclude: ^tests/resources/.*
4646
- repo: https://github.com/psf/black
47-
rev: 23.3.0
47+
rev: 23.7.0
4848
hooks:
4949
- id: black
5050
exclude: ^tests/resources/
@@ -54,7 +54,7 @@ repos:
5454
- id: python-bandit-vulnerability-check
5555
args: [--skip, 'B101', --recursive, .]
5656
- repo: https://github.com/pre-commit/mirrors-mypy
57-
rev: v1.1.1
57+
rev: v1.4.1
5858
hooks:
5959
- id: mypy
6060
args:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ In case you want to remove the comment headers introduced by
9090

9191
1. Temporarily add the `--remove-header` arg in your
9292
`.pre-commit-config.yaml` ;
93-
1. Run the hook on all your files:
93+
2. Run the hook on all your files:
9494
`pre-commit run insert-license --all-files` ;
95-
1. Remove the `--remove-header` arg and update your `LICENSE.txt` ;
96-
1. Re-run the hook on all your files.
95+
3. Remove the `--remove-header` arg and update your `LICENSE.txt` ;
96+
4. Re-run the hook on all your files.
9797

9898
#### Handling years flexibly
9999

@@ -351,5 +351,5 @@ form the historical ChangeLog.
351351
### Releasing a new version
352352

353353
1. Bump version in `setup.py` & `README.md`
354-
1. `git commit -nam "New release $version" && git tag $version && git push && git push --tags`
355-
1. Publish a GitHub release.
354+
2. `git commit -nam "New release $version" && git tag $version && git push && git push --tags`
355+
3. Publish a GitHub release.

pre_commit_hooks/insert_license.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def main(argv=None):
104104
if changed_files:
105105
print(f"Some sources were modified by the hook {changed_files}")
106106
if todo_files:
107-
print(f"Some sources {todo_files} contain TODO about inconsistent licenses")
107+
print(
108+
f"Some sources contain TODO about inconsistent licenses: {todo_files}"
109+
)
108110
print("Now aborting the commit.")
109111
print(
110112
'You should check the changes made. Then simply "git add --update ." and re-commit'

0 commit comments

Comments
 (0)