Unverified Commit 4004a3d7 authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

update pre-commit hook config (#384)

parent 63b7aa31
exclude: ^tests/data/ exclude: ^tests/data/
repos: repos:
- repo: https://gitlab.com/pycqa/flake8.git - repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.0 rev: 3.8.3
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/asottile/seed-isort-config - repo: https://github.com/asottile/seed-isort-config
rev: v2.1.0 rev: v2.2.0
hooks: hooks:
- id: seed-isort-config - id: seed-isort-config
- repo: https://github.com/timothycrosley/isort - repo: https://github.com/timothycrosley/isort
...@@ -17,13 +17,14 @@ repos: ...@@ -17,13 +17,14 @@ repos:
hooks: hooks:
- id: yapf - id: yapf
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0 rev: v3.1.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: check-yaml - id: check-yaml
- id: end-of-file-fixer - id: end-of-file-fixer
- id: requirements-txt-fixer - id: requirements-txt-fixer
- id: double-quote-string-fixer - id: double-quote-string-fixer
- id: check-merge-conflict
- id: fix-encoding-pragma - id: fix-encoding-pragma
args: ["--remove"] args: ["--remove"]
- id: mixed-line-ending - id: mixed-line-ending
......
"""Modified from https://github.com/facebookresearch/detectron2/blob/master. r"""Modified from https://github.com/facebookresearch/detectron2/blob/master/detectron2/layers/wrappers.py # noqa: E501
/detectron2/layers/wrappers.py Wrap some nn modules to support empty Wrap some nn modules to support empty tensor input. Currently, these wrappers
tensor input. Currently, these wrappers are mainly used in mask heads are mainly used in mask heads like fcn_mask_head and maskiou_heads since mask
like fcn_mask_head and maskiou_heads since mask heads are trained on heads are trained on only positive RoIs.
only positive RoIs.
""" """
import math import math
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment