diff --git a/Makefile b/Makefile index ce731e79..465f3283 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ build-client-python: make build-client sdk_language=python tmpdir=${TMP_DIR} library="asyncio" make run-in-docker sdk_language=python image=busybox:${BUSYBOX_DOCKER_TAG} command="/bin/sh -c 'patch -p1 /module/openfga_sdk/api/open_fga_api.py /config/clients/python/patches/open_fga_api.py.patch'" make run-in-docker sdk_language=python image=busybox:${BUSYBOX_DOCKER_TAG} command="/bin/sh -c 'patch -p1 /module/docs/OpenFgaApi.md /config/clients/python/patches/OpenFgaApi.md.patch'" - make run-in-docker sdk_language=python image=python:${PYTHON_DOCKER_TAG} command="/bin/sh -c 'python -m pip install autopep8; autopep8 --in-place --ignore E402 --recursive openfga_sdk; autopep8 --in-place --recursive test'" + make run-in-docker sdk_language=python image=python:${PYTHON_DOCKER_TAG} command="/bin/sh -c 'python -m pip install pycodestyle==2.10.0 autopep8; autopep8 --in-place --ignore E402 --recursive openfga_sdk; autopep8 --in-place --recursive test'" make run-in-docker sdk_language=python image=python:${PYTHON_DOCKER_TAG} command="/bin/sh -c 'pip install setuptools wheel && python setup.py sdist bdist_wheel'" .PHONY: test-client-python diff --git a/config/clients/python/template/test-requirements.mustache b/config/clients/python/template/test-requirements.mustache index 2ca6d2d4..55a75102 100644 --- a/config/clients/python/template/test-requirements.mustache +++ b/config/clients/python/template/test-requirements.mustache @@ -2,6 +2,7 @@ pytest-cov>=2.8.1 mock>=4.0.3 aiohttp>=3.8.1 +pycodestyle==2.10.0 flake8>=5.0.4 python-dateutil>=2.8.2 -urllib3>=1.26.11 \ No newline at end of file +urllib3>=1.26.11