Skip to content

Commit

Permalink
Add more checks (#25)
Browse files Browse the repository at this point in the history
* syntax

* training works

* Does not train. Unclear

* Fix in line linegth in pylintrc

* Fix. image size for train and val should be the same

* Fix. image size for train and val should be the same

* fix

* Removed check if input is image
  • Loading branch information
ternaus authored Nov 16, 2020
2 parents d749e4a + c416771 commit 29611c7
Show file tree
Hide file tree
Showing 15 changed files with 924 additions and 173 deletions.
8 changes: 8 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 119
19 changes: 16 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
exclude: _pb2\.py$
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: f0001b2 # Use the revision sha / tag you want to point at
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/asottile/yesqa
Expand All @@ -26,11 +31,19 @@ repos:
- id: trailing-whitespace
- id: flake8
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-pylint
rev: d230ffd
hooks:
- id: pylint
args:
- --max-line-length=119
- --ignore-imports=yes
- -d duplicate-code
- repo: https://github.com/asottile/pyupgrade
rev: v1.13.0
rev: v2.7.3
hooks:
- id: pyupgrade
args: ['--py36-plus']
args: ['--py37-plus']
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.5.1
hooks:
Expand Down
Loading

0 comments on commit 29611c7

Please sign in to comment.