Skip to content

Commit

Permalink
Update pre-commit hooks of master branch (#258)
Browse files Browse the repository at this point in the history
* update pre-commit of master branch

* Fix the formatting bug of transforms.py

* Update transforms.py
  • Loading branch information
Zachary-66 authored Nov 14, 2022
1 parent 6b79141 commit 37be893
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
repos:
- repo: https://github.com/PyCQA/flake8
rev: 3.8.3
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.30.0
rev: v0.32.0
hooks:
- id: yapf
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-yaml
Expand All @@ -25,7 +25,7 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.1
hooks:
- id: codespell
- repo: https://github.com/executablebooks/mdformat
Expand Down
3 changes: 2 additions & 1 deletion mmflow/datasets/pipelines/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,8 @@ def __repr__(self):

@PIPELINES.register_module()
class ColorJitter:
"""Randomly change the brightness, contrast, saturation and hue of an image.
"""Randomly change the brightness, contrast, saturation and hue of
an image.
Args:
asymmetric_prob (float): the probability to do color jitter for two
images asymmetrically.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true
# than "BA"
[codespell]
quiet-level = 3
ignore-words-list = datas, claus, ba
ignore-words-list = datas, claus, ba, warmup

0 comments on commit 37be893

Please sign in to comment.