Skip to content

Commit be9c331

Browse files
Update pre-commit hooks
1 parent 4d77588 commit be9c331

File tree

23 files changed

+10
-27
lines changed

23 files changed

+10
-27
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
repos:
1616
# Standard hooks
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v5.0.0
18+
rev: v6.0.0
1919
hooks:
2020
- id: check-added-large-files
2121
args: ['--maxkb=1000']
2222
- id: check-ast
23-
- id: check-byte-order-marker
23+
- id: fix-byte-order-marker
2424
- id: check-builtin-literals
2525
- id: check-case-conflict
2626
- id: check-docstring-first
@@ -40,7 +40,6 @@ repos:
4040
- id: end-of-file-fixer
4141
- id: mixed-line-ending
4242
- id: fix-byte-order-marker
43-
- id: fix-encoding-pragma
4443
- id: forbid-new-submodules
4544
- id: mixed-line-ending
4645
- id: name-tests-test
@@ -50,7 +49,7 @@ repos:
5049
- id: double-quote-string-fixer
5150

5251
- repo: https://github.com/psf/black
53-
rev: 25.1.0
52+
rev: 25.11.0
5453
hooks:
5554
- id: black
5655
args: ["--skip-string-normalization"]
@@ -71,3 +70,8 @@ repos:
7170
- id: codespell
7271
args: ['--write-changes']
7372
exclude: CHANGELOG.rst
73+
74+
- repo: https://github.com/asottile/pyupgrade
75+
rev: v3.21.2
76+
hooks:
77+
- id: pyupgrade

example_cmake_python/cmake_generate_parameter_module_example/custom_validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2023 PickNik Inc.
32
#
43
# Redistribution and use in source and binary forms, with or without

example_cmake_python/cmake_generate_parameter_module_example/minimal_publisher.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2023 PickNik Inc.
32
#
43
# Redistribution and use in source and binary forms, with or without

example_python/generate_parameter_module_example/custom_validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2023 PickNik Inc.
32
#
43
# Redistribution and use in source and binary forms, with or without

example_python/generate_parameter_module_example/minimal_publisher.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2023 PickNik Inc.
32
#
43
# Redistribution and use in source and binary forms, with or without

example_python/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import sys
32

43
from setuptools import setup

example_python/test/test_copyright.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015 Open Source Robotics Foundation, Inc.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

example_python/test/test_flake8.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2017 Open Source Robotics Foundation, Inc.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

example_python/test/test_load_modules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import generate_parameter_module_example
32

43
print(f'Imported module from: {generate_parameter_module_example.__file__}')

example_python/test/test_pep257.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015 Open Source Robotics Foundation, Inc.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)