From 455046a947857e20a0937b03ee3a2ae90bc56f59 Mon Sep 17 00:00:00 2001 From: ZlaTanskY Date: Thu, 21 Apr 2022 11:35:52 +0200 Subject: [PATCH] feat: added files to encourage PEP8 --- Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ requirements.dev.txt | 6 ++++++ 2 files changed, 47 insertions(+) create mode 100644 Makefile create mode 100644 requirements.dev.txt diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b31a1db --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +# Makefile with some simple commands to make developer's life easier + + +install-requirements: install-build-essential + pip install -r requirements.txt + +dev/install-requirements: install-requirements + pip install -r requirements.dev.txt + +install-build-essential: + sudo apt-get update + sudo apt-get install build-essential + +update-setuptools: + pip install --upgrade setuptools wheel + +test-unit: + pytest tests + @echo 'unit tests OK' + +lint: + pylint cobra + @echo 'lint OK' + +lint-minimal: + pylint E cobra + @echo 'lint minimal OK' + +typecheck: + mypy cobra + @echo 'typecheck OK' + +codestyle: + pycodestyle cobra + @echo 'codestyle OK' + +docstyle: + pydocstyle cobra + @echo 'docstyle OK' + +code-qa: typecheck codestyle docstyle lint-minimal diff --git a/requirements.dev.txt b/requirements.dev.txt new file mode 100644 index 0000000..3d87710 --- /dev/null +++ b/requirements.dev.txt @@ -0,0 +1,6 @@ +mypy>=0.942 +pycodestyle>=2.8.0 +pydocstyle>=6.1.1 +pylint>=2.13.7 +pytest>=7.1.1 +pytest-mock>=3.7.0 \ No newline at end of file