diff --git a/Makefile b/Makefile index a963f3b..ce84673 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ clean: autopep8: @echo 'Auto Formatting...' - @$(python_files) | xargs -0 autopep8 --jobs 0 --in-place --aggressive + @$(python_files) | xargs -0 autopep8 --jobs 0 --in-place --aggressive --global-config setup.cfg lint: @echo 'Linting...' diff --git a/setup.py b/setup.py index bf9511a..26766b7 100755 --- a/setup.py +++ b/setup.py @@ -39,19 +39,19 @@ def get_version(): ], test_suite='tests', install_requires=[ - 'GitPython==2.1.1', - 'pylint==1.6.5', - 'six>=1.10.0', - 'typing>=3.5.3.0', + 'GitPython>=2.1.1,<3', + 'pylint>=1.6.5,<2', + 'six>=1.10.0,<2', + 'typing>=3.5.3.0,<4', + 'autopep8>=1.2.2,<2', ], extras_require={ 'dev': [ - 'autopep8', - 'mock; python_version < "3.3"', - 'mypy; python_version >= "3.3"', - 'pycodestyle == 2.2.0', - 'pytest', - 'pytest-randomly', + 'mock==2.0.0; python_version < "3.3"', + 'mypy==0.501; python_version >= "3.3"', + 'pycodestyle==2.3.1', + 'pytest==3.0.6', + 'pytest-randomly==1.1.2', ] } ) diff --git a/shopify_python/git_utils.py b/shopify_python/git_utils.py index a269bda..0f8ebe0 100644 --- a/shopify_python/git_utils.py +++ b/shopify_python/git_utils.py @@ -105,6 +105,7 @@ def autopep_files(files, max_line_length): class _CustomPylintReporter(text.ColorizedTextReporter): + def __init__(self): # type: () -> None super(_CustomPylintReporter, self).__init__()