Skip to content

Commit

Permalink
fix: flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan committed Feb 17, 2023
1 parent 16b8e63 commit 99eb533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DECIMER/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def resize_byratio(image):
___
output: PIL.Image
"""
maxwidth = maxheight = 512
maxwidth = 512
ratio = maxwidth / max(image.width, image.height)
new_size = int((float(image.width) * ratio)), int((float(image.height) * ratio))
resized_image = image.resize(new_size, resample=Image.LANCZOS)
Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ conda_deps = flake8
commands = flake8 .

[flake8]
ignore = E226, E302, E41, E501, W504, F821, E203, W605
ignore = E226, E302, E41, E501, W504, F821, E203, W605, W503, F401
exclude =
__pycache__,
.git,
Expand All @@ -41,6 +41,3 @@ exclude =
DECIMER/efficientnetv2/effnetv2_model.py,
DECIMER/efficientnetv2/hparams.py,
DECIMER/efficientnetv2/utils.py,



0 comments on commit 99eb533

Please sign in to comment.