Skip to content

Commit

Permalink
Fix lint errors for python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
eterna2 committed Dec 12, 2019
1 parent c1eafc3 commit e6781dd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ joblib = "*"
"flake8" = "==3.7.*"
mypy = ">=0.720"
docformatter = "==1.1.*"
pylint = "==2.3.*"
pylint = "==2.4.*"
pydocstyle = "*"
bandit = "==1.5.*"
black = "==19.10b0"
Expand Down
4 changes: 1 addition & 3 deletions e2fyi/utils/aws/s3_resource_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

import boto3

# import pandas as pd

from pydantic import BaseModel
from pydantic import BaseModel # pylint: disable=no-name-in-module

from e2fyi.utils.aws.s3_stream import S3Stream
from e2fyi.utils.aws.s3_resource import S3Resource
Expand Down
4 changes: 2 additions & 2 deletions e2fyi/utils/aws/s3_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import joblib
import pandas as pd

from pydantic import BaseModel
from pydantic import BaseModel # pylint: disable=no-name-in-module

from e2fyi.utils.aws.compat import LIB_MAGIC_AVAILABLE

Expand All @@ -35,7 +35,7 @@ def _infer_mime(filepath: str) -> str:
"""
)
return "application/octet-stream"
import magic
import magic # pylint: disable=import-outside-toplevel

return magic.from_file(filepath, mime=True) # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion e2fyi/utils/aws/s3_stream_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import joblib
import pandas as pd

from pydantic import BaseModel
from pydantic import BaseModel # pylint: disable=no-name-in-module

from e2fyi.utils.aws.s3_stream import S3Stream

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mistune==0.8.*
mypy>=0.720
pipenv-to-requirements==0.8.*
pydocstyle
pylint==2.3.*
pylint==2.4.*
recommonmark==0.5.*
setuptools
sphinx-autoapi==1.*
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.0.post1

0 comments on commit e6781dd

Please sign in to comment.