Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit suggestions (ultralytics#10409)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and glenn-jocher authored Dec 6, 2022
1 parent 0a1fdcd commit 0624384
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
# - id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -24,7 +24,7 @@ repos:
- id: check-docstring-first

- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
rev: v3.3.0
hooks:
- id: pyupgrade
name: Upgrade code
Expand Down Expand Up @@ -58,7 +58,7 @@ repos:
- id: yesqa

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
name: PEP8
24 changes: 10 additions & 14 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
license_file = LICENSE
description_file = README.md


[tool:pytest]
norecursedirs =
.git
Expand All @@ -17,7 +16,6 @@ addopts =
--durations=25
--color=yes


[flake8]
max-line-length = 120
exclude = .tox,*.egg,build,temp
Expand All @@ -27,25 +25,23 @@ verbose = 2
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
format = pylint
# see: https://www.flake8rules.com/
ignore =
E731 # Do not assign a lambda expression, use a def
F405 # name may be undefined, or defined from star imports: module
E402 # module level import not at top of file
F401 # module imported but unused
W504 # line break after binary operator
E127 # continuation line over-indented for visual indent
E231 # missing whitespace after ‘,’, ‘;’, or ‘:’
E501 # line too long
F403 # ‘from module import *’ used; unable to detect undefined names

ignore = E731,F405,E402,F401,W504,E127,E231,E501,F403
# E731: Do not assign a lambda expression, use a def
# F405: name may be undefined, or defined from star imports: module
# E402: module level import not at top of file
# F401: module imported but unused
# W504: line break after binary operator
# E127: continuation line over-indented for visual indent
# E231: missing whitespace after ‘,’, ‘;’, or ‘:’
# E501: line too long
# F403: ‘from module import *’ used; unable to detect undefined names

[isort]
# https://pycqa.github.io/isort/docs/configuration/options.html
line_length = 120
# see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
multi_line_output = 0


[yapf]
based_on_style = pep8
spaces_before_comment = 2
Expand Down

0 comments on commit 0624384

Please sign in to comment.