Skip to content

Commit 9876bdb

Browse files
destoglAndyZe
authored andcommitted
Added new hook to use modern python
1 parent 6313aff commit 9876bdb

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ repos:
3131
- id: trailing-whitespace
3232

3333
# Python hooks
34+
- repo: https://github.com/asottile/pyupgrade
35+
rev: v2.7.2
36+
hooks:
37+
- id: pyupgrade
38+
args: [--py36-plus]
39+
40+
- repo: https://github.com/psf/black
41+
rev: 20.8b1
42+
hooks:
43+
- id: black
44+
args: ["--line-length=100"]
45+
3446
# PEP 257
3547
- repo: https://github.com/FalconSocial/pre-commit-mirrors-pep257
3648
rev: v0.3.3
@@ -44,12 +56,6 @@ repos:
4456
- id: flake8
4557
args: ["--ignore=E501"]
4658

47-
- repo: https://github.com/psf/black
48-
rev: 20.8b1
49-
hooks:
50-
- id: black
51-
args: ["--line-length=100"]
52-
5359
# CPP hooks
5460
# The same options as in ament_cppcheck are used, but its not working...
5561
#- repo: https://github.com/pocc/pre-commit-hooks

0 commit comments

Comments
 (0)