Skip to content

Commit 0624384

Browse files
[pre-commit.ci] pre-commit suggestions (ultralytics#10409)
* [pre-commit.ci] pre-commit suggestions updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 β†’ v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0) - [github.com/asottile/pyupgrade: v3.2.0 β†’ v3.3.0](asottile/pyupgrade@v3.2.0...v3.3.0) - [github.com/PyCQA/flake8: 5.0.4 β†’ 6.0.0](PyCQA/flake8@5.0.4...6.0.0) * Fix flake8 ignore syntax Signed-off-by: Glenn Jocher <[email protected]> * spacing Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <[email protected]>
1 parent 0a1fdcd commit 0624384

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

β€Ž.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ci:
1313

1414
repos:
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v4.3.0
16+
rev: v4.4.0
1717
hooks:
1818
# - id: end-of-file-fixer
1919
- id: trailing-whitespace
@@ -24,7 +24,7 @@ repos:
2424
- id: check-docstring-first
2525

2626
- repo: https://github.com/asottile/pyupgrade
27-
rev: v3.2.0
27+
rev: v3.3.0
2828
hooks:
2929
- id: pyupgrade
3030
name: Upgrade code
@@ -58,7 +58,7 @@ repos:
5858
- id: yesqa
5959

6060
- repo: https://github.com/PyCQA/flake8
61-
rev: 5.0.4
61+
rev: 6.0.0
6262
hooks:
6363
- id: flake8
6464
name: PEP8

β€Žsetup.cfg

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
license_file = LICENSE
77
description_file = README.md
88

9-
109
[tool:pytest]
1110
norecursedirs =
1211
.git
@@ -17,7 +16,6 @@ addopts =
1716
--durations=25
1817
--color=yes
1918

20-
2119
[flake8]
2220
max-line-length = 120
2321
exclude = .tox,*.egg,build,temp
@@ -27,25 +25,23 @@ verbose = 2
2725
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
2826
format = pylint
2927
# see: https://www.flake8rules.com/
30-
ignore =
31-
E731 # Do not assign a lambda expression, use a def
32-
F405 # name may be undefined, or defined from star imports: module
33-
E402 # module level import not at top of file
34-
F401 # module imported but unused
35-
W504 # line break after binary operator
36-
E127 # continuation line over-indented for visual indent
37-
E231 # missing whitespace after β€˜,’, β€˜;’, or β€˜:’
38-
E501 # line too long
39-
F403 # β€˜from module import *’ used; unable to detect undefined names
40-
28+
ignore = E731,F405,E402,F401,W504,E127,E231,E501,F403
29+
# E731: Do not assign a lambda expression, use a def
30+
# F405: name may be undefined, or defined from star imports: module
31+
# E402: module level import not at top of file
32+
# F401: module imported but unused
33+
# W504: line break after binary operator
34+
# E127: continuation line over-indented for visual indent
35+
# E231: missing whitespace after β€˜,’, β€˜;’, or β€˜:’
36+
# E501: line too long
37+
# F403: β€˜from module import *’ used; unable to detect undefined names
4138

4239
[isort]
4340
# https://pycqa.github.io/isort/docs/configuration/options.html
4441
line_length = 120
4542
# see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
4643
multi_line_output = 0
4744

48-
4945
[yapf]
5046
based_on_style = pep8
5147
spaces_before_comment = 2

0 commit comments

Comments
Β (0)