Skip to content

Commit 785a545

Browse files
committed
ISSUE-4: Boyscouting
1 parent e2c1b0b commit 785a545

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_install_hook_types: [ commit-msg, pre-commit, prepare-commit-msg ]
22
default_stages: [ pre-commit ]
33
repos:
44
- repo: https://github.com/ShellMagick/shellmagick-commit-hooks
5-
rev: v24.03.1
5+
rev: v24.06
66
hooks:
77
- id: commiticketing
88
args: [ -t= ]
@@ -19,7 +19,7 @@ repos:
1919
- id: fix-ligatures
2020
- id: forbid-bidi-controls
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.5.0
22+
rev: v4.6.0
2323
hooks:
2424
- id: check-added-large-files
2525
args: [ --maxkb=16 ]
@@ -47,7 +47,7 @@ repos:
4747
hooks:
4848
- id: setup-cfg-fmt
4949
- repo: https://github.com/asottile/reorder-python-imports
50-
rev: v3.12.0
50+
rev: v3.13.0
5151
hooks:
5252
- id: reorder-python-imports
5353
args: [ --py39-plus, --add-import, 'from __future__ import annotations' ]
@@ -56,7 +56,7 @@ repos:
5656
hooks:
5757
- id: add-trailing-comma
5858
- repo: https://github.com/asottile/pyupgrade
59-
rev: v3.15.1
59+
rev: v3.16.0
6060
hooks:
6161
- id: pyupgrade
6262
args: [ --py39-plus ]
@@ -66,6 +66,6 @@ repos:
6666
# hooks:
6767
# - id: autopep8
6868
- repo: https://github.com/PyCQA/flake8
69-
rev: 7.0.0
69+
rev: 7.1.0
7070
hooks:
7171
- id: flake8

hooks/commiticketing.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,20 @@ def main(argv: Sequence[str] | None = None) -> int:
7575
parser.add_argument(
7676
'-e', '--exclude-long-prefix', action='append',
7777
help='Do not add long prefix for these branches'
78-
'(by default: feature, user, backup), '
79-
'may be specified multiple times',
78+
' (by default: feature, user, backup),'
79+
' may be specified multiple times',
8080
)
8181
parser.add_argument(
8282
'-t', '--two-level', action='append',
8383
help='Get prefix from second level,'
84-
'if branch starts with this (by default: user, backup), '
85-
'may be specified multiple times',
84+
' if branch starts with this (by default: user, backup),'
85+
' may be specified multiple times',
8686
)
8787
parser.add_argument(
8888
'-b', '--branch', action='append',
89-
help='Branch to process with this hook '
90-
'(by default: feature, bugfix, hotfix), '
91-
'may be specified multiple times',
89+
help='Branch to process with this hook'
90+
' (by default: feature, bugfix, hotfix),'
91+
' may be specified multiple times',
9292
)
9393
args = parser.parse_args(argv)
9494

hooks/no_todos.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ def main(argv: Sequence[str] | None = None) -> int:
1010
parser.add_argument('filenames', nargs='*', help='Filenames to check')
1111
parser.add_argument(
1212
'-t', '--todo-tag', action='append',
13-
help='TODO tag to disallow as file content '
14-
'(by default: TODO, FIXME, XXX), '
15-
'may be specified multiple times',
13+
help='TODO tag to disallow as file content'
14+
' (by default: TODO, FIXME, XXX),'
15+
' may be specified multiple times',
1616
)
1717
parser.add_argument(
1818
'-e', '--except-in', action='append', default=[],
1919
help='Except in these files '
20-
'(i.e., a file with this name is allowed to contain the tags), '
21-
'may be specified multiple times',
20+
'(i.e., a file with this name is allowed to contain the tags),'
21+
' may be specified multiple times',
2222
)
2323
args = parser.parse_args(argv)
2424

mutmut_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def pre_mutation(context):
55
line = context.current_source_line.strip()
66
if line.startswith('parser.'):
77
context.skip = True
8-
if line == "if __name__ == '__main__':":
8+
elif line == "if __name__ == '__main__':":
99
context.skip = True
10-
if line.strip().startswith("help='"):
10+
elif line.strip().startswith("help='"):
1111
context.skip = True

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ check_untyped_defs = true
4040
disallow_any_generics = true
4141
disallow_incomplete_defs = true
4242
disallow_untyped_defs = true
43+
show_error_codes = true
4344
warn_redundant_casts = true
4445
warn_unused_ignores = true
4546

0 commit comments

Comments
 (0)