Skip to content

Commit

Permalink
Add lint testenv
Browse files Browse the repository at this point in the history
  • Loading branch information
laike9m committed Mar 9, 2017
1 parent 5df3f50 commit 0c5fb34
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Makefile
@@ -1,4 +1,9 @@
.PHONY: debug
.PHONY: publist debug

publish:
rm -rf dist/
python setup.py sdist bdist_wheel
twine upload -s dist/*

debug:
pytest --pdb -s tests
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -29,7 +29,6 @@ name on pypi. Mine is better, of course.
Simply run `pytest`, or use `tox` if you like.

## Roadmap
- [ ] lint
- [ ] config color
- [ ] colorful docstring

Expand Down
8 changes: 7 additions & 1 deletion tox.ini
@@ -1,5 +1,11 @@
[tox]
envlist = py27,py36
envlist = py27,py36,lint

[testenv:lint]
basepython=python3.6
deps = flake8==3.3.0
commands = flake8 --ignore=F841,F405,F403 --max-complexity 10 pdir tests

[testenv]
deps=
setuptools==34.3.1
Expand Down

0 comments on commit 0c5fb34

Please sign in to comment.