Skip to content

Commit e04ba90

Browse files
authored
Merge pull request #131 from PythonPredictions/feat/pep8
feat: added files to encourage PEP8
2 parents 1be8840 + 455046a commit e04ba90

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

Makefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Makefile with some simple commands to make developer's life easier
2+
3+
4+
install-requirements: install-build-essential
5+
pip install -r requirements.txt
6+
7+
dev/install-requirements: install-requirements
8+
pip install -r requirements.dev.txt
9+
10+
install-build-essential:
11+
sudo apt-get update
12+
sudo apt-get install build-essential
13+
14+
update-setuptools:
15+
pip install --upgrade setuptools wheel
16+
17+
test-unit:
18+
pytest tests
19+
@echo 'unit tests OK'
20+
21+
lint:
22+
pylint cobra
23+
@echo 'lint OK'
24+
25+
lint-minimal:
26+
pylint E cobra
27+
@echo 'lint minimal OK'
28+
29+
typecheck:
30+
mypy cobra
31+
@echo 'typecheck OK'
32+
33+
codestyle:
34+
pycodestyle cobra
35+
@echo 'codestyle OK'
36+
37+
docstyle:
38+
pydocstyle cobra
39+
@echo 'docstyle OK'
40+
41+
code-qa: typecheck codestyle docstyle lint-minimal

requirements.dev.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mypy>=0.942
2+
pycodestyle>=2.8.0
3+
pydocstyle>=6.1.1
4+
pylint>=2.13.7
5+
pytest>=7.1.1
6+
pytest-mock>=3.7.0

0 commit comments

Comments
 (0)