Skip to content

Commit b548b45

Browse files
committed
house keeping update
1 parent 28e8b5f commit b548b45

File tree

8 files changed

+23
-15
lines changed

8 files changed

+23
-15
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ __pycache__
55
.tox/
66
venv
77
.vscode/
8-
.python-version
8+
.python-version
9+
.coverage

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ language: python
44

55
jobs:
66
include:
7-
- python: "3.7"
8-
env: TOXENV=py37
7+
- python: "3.8"
8+
env: TOXENV=py38
99
- python: "3.9"
1010
env: TOXENV=py39
1111

Makefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ ifeq ("$(wildcard venv/bin/pip-sync)","")
3939
endif
4040

4141
# pip-tools
42-
@pip-compile --upgrade requirements-dev.txt
43-
@pip-compile --upgrade requirements.txt
44-
@pip-sync requirements-dev.txt requirements.txt
42+
# @pip-compile --upgrade requirements-dev.txt
43+
@pip-sync requirements-dev.txt
4544

4645

4746
.PHONY: pylinter
@@ -85,4 +84,4 @@ endif
8584
--select "B,C,E,F,W,T4,B9" \
8685
--ignore "E203,E266,E501,W503,F403,F401,E402" \
8786
--exclude ".git,__pycache__,old, build, \
88-
dist, venv" $(path)
87+
dist, venv, .tox" $(path)

patterns/behavioral/iterator.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ def count_to(count):
1414

1515

1616
# Test the generator
17-
count_to_two = lambda: count_to(2)
18-
count_to_five = lambda: count_to(5)
17+
def count_to_two() -> None:
18+
return count_to(2)
19+
20+
21+
def count_to_five() -> None:
22+
return count_to(5)
1923

2024

2125
def main():

requirements-dev.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
-e .
22

3-
pytest~=4.3.0
4-
pytest-cov~=2.6.0
5-
flake8~=3.7.0
3+
pytest~=6.2.0
4+
pytest-cov~=2.11.0
65
pytest-randomly~=3.1.0
6+
black>=20.8b1
7+
isort~=5.7.0
8+
flake8~=3.8.0

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[flake8]
22
max-line-length = 120
33
ignore = E266 E731 W503
4-
exclude = .venv*
4+
exclude = venv*
55

66
[tool:pytest]
77
filterwarnings =

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
"Programming Language :: Python :: 3",
1111
"Programming Language :: Python :: 3.6",
1212
"Programming Language :: Python :: 3.7",
13+
"Programming Language :: Python :: 3.8",
14+
"Programming Language :: Python :: 3.9",
1315
],
1416
)

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37,py38,py39,cov-report
2+
envlist = py38,py39,cov-report
33
skip_missing_interpreters = true
44

55

@@ -9,7 +9,7 @@ setenv =
99
deps =
1010
-r requirements-dev.txt
1111
commands =
12-
flake8 . --exclude=./.*
12+
flake8 . --exclude="./.*, venv"
1313
; `randomly-seed` option from `pytest-randomly` helps with deterministic outputs for examples like `other/blackboard.py`
1414
pytest --randomly-seed=1234 --doctest-modules patterns/
1515
pytest -s -vv --cov={envsitepackagesdir}/patterns --log-level=INFO tests/

0 commit comments

Comments
 (0)