Skip to content

Commit f785701

Browse files
committed
Switched to using pipenv for virtualenv management
1 parent e71aabf commit f785701

5 files changed

Lines changed: 281 additions & 53 deletions

File tree

File renamed without changes.

Pipfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
tox = "*"
8+
flake8 = "*"
9+
pytest = "*"
10+
pytest-cov = "*"
11+
pytest-sugar = "*"
12+
pydocstyle = "*"
13+
14+
[packages]
15+
16+
[requires]
17+
python_version = "3.4.3"

Pipfile.lock

Lines changed: 243 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

tox.ini

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
[tox]
2-
envlist = style
3-
usedevelop = true
2+
skipsdist = True
43

5-
[testenv:style]
6-
deps =
7-
-r{toxinidir}/requirements.txt
8-
flake8==2.4.0
9-
pep257==0.7.0
10-
commands =
11-
flake8 --statistics --count
12-
pep257
4+
[testenv]
5+
install_command =
6+
pipenv install --ignore-pipfile && \
7+
pipenv install --dev --ignore-pipfile && \
8+
pipenv --dev -r {packages}
9+
list_dependencies_command = pipenv lock -r
10+
whitelist_externals =
11+
pipenv
12+
setenv =
13+
PYTHONPATH = {toxinidir}
14+
PIPENV_DOTENV_LOCATION = {toxinidir}/tests/.env
1315

14-
[testenv:style-ci]
15-
deps =
16-
-r{toxinidir}/requirements.txt
17-
flake8==2.4.0
18-
pep257==0.7.0
16+
[testenv:style]
1917
commands =
20-
flake8 --statistics --count --output-file={envdir}/flake8.txt
21-
pep257
18+
pipenv run flake8
19+
pipenv run pydocstyle
2220

2321
[flake8]
2422
max-line-length = 120
2523
max-complexity = 10
24+
tee = true
25+
count = true
26+
show-statistics = true
27+
28+
[pydocstyle]
29+
match = '(?!test_).*\.py|(?!conftest\.py)'

0 commit comments

Comments
 (0)