Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*cache*
.coverage
.idea

.env
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ dev:
pip install -U -r requirements.txt

test:
flake8 .
flake8 . --exclude .env
py.test --cov=. .
4 changes: 4 additions & 0 deletions calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ def add(self, x: float, y: float) -> float:
float : The sum of two given numbers.
"""
return x + y

def minus(self, x: float, y: float) -> float:
"""Return the minus of two inputs."
pass
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flake8
flake8-bugbear
flake8-docstrings
pytest
pytest-cov
flake8 == 3.7.7
flake8-bugbear == 18.8.0
flake8-docstrings == 1.3.0
pytest == 4.2.0
pytest-cov == 2.6.1