Skip to content

Commit dda7315

Browse files
committed
Add pyupgrade to pre-commit config
1 parent 429b0c8 commit dda7315

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ A template for new Python projects, with:
1717
* [black][black]
1818
* [flake8][flake8] (with [bugbear][flake8-bugbear], [simplify][flake8-simplify],
1919
and [pep8-naming][pep8-naming])
20+
* [pyupgrade][pyupgrade]
2021
* [bandit][bandit]
2122
* [cruft][cruft]
2223
* GitHub Actions support
@@ -84,4 +85,5 @@ cookiecutter https://github.com/smkent/cookie-python
8485
[pre-commit]: https://pre-commit.com/
8586
[pypi]: https://pypi.org/project/cookie-python/
8687
[pytest]: https://docs.pytest.org
88+
[pyupgrade]: https://github.com/asottile/pyupgrade
8789
[repo]: https://github.com/smkent/cookie-python

{{cookiecutter.project_name}}/.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ repos:
3333
- flake8-pyproject
3434
- flake8-simplify
3535
- pep8-naming
36+
- repo: https://github.com/asottile/pyupgrade
37+
rev: v3.3.1
38+
hooks:
39+
- id: pyupgrade
3640
- repo: local
3741
hooks:
3842
- id: mypy

0 commit comments

Comments
 (0)