-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c993200
commit 23aa66b
Showing
12 changed files
with
155 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
venv/bin/activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[run] | ||
branch = True | ||
source = | ||
. | ||
omit = | ||
.tox/* | ||
/usr/* | ||
setup.py | ||
|
||
[report] | ||
show_missing = True | ||
skip_covered = True | ||
|
||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
\#\s*pragma: no cover | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
^\s*raise AssertionError\b | ||
^\s*raise NotImplementedError\b | ||
^\s*return NotImplemented\b | ||
^\s*raise$ | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
^if __name__ == ['"]__main__['"]:$ | ||
[html] | ||
directory = coverage-html | ||
# vim:ft=dosini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*.egg-info | ||
*.py[co] | ||
/.cache | ||
/.coverage | ||
/.tox | ||
/.venv.touch | ||
/.venv.tox.touch | ||
/coverage-html | ||
/dist | ||
/venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
sha: v0.7.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
language_version: python3.5 | ||
- id: end-of-file-fixer | ||
language_version: python3.5 | ||
exclude: ^\.activate\.sh$ | ||
- id: autopep8-wrapper | ||
language_version: python3.5 | ||
- id: check-docstring-first | ||
language_version: python3.5 | ||
- id: check-merge-conflict | ||
language_version: python3.5 | ||
- id: check-yaml | ||
language_version: python3.5 | ||
- id: debug-statements | ||
language_version: python3.5 | ||
- id: double-quote-string-fixer | ||
language_version: python3.5 | ||
- id: name-tests-test | ||
language_version: python3.5 | ||
- id: flake8 | ||
language_version: python3.5 | ||
- id: check-added-large-files | ||
language_version: python3.5 | ||
exclude: ^\.activate\.sh$ | ||
- id: check-byte-order-marker | ||
language_version: python3.5 | ||
- id: fix-encoding-pragma | ||
language_version: python3.5 | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
sha: v0.3.1 | ||
hooks: | ||
- id: reorder-python-imports | ||
language_version: python3.5 | ||
args: [ | ||
'--add-import', 'from __future__ import absolute_import', | ||
'--add-import', 'from __future__ import unicode_literals', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
REBUILD_FLAG = | ||
|
||
.PHONY: minimal | ||
minimal: venv | ||
|
||
.PHONY: venv | ||
venv: .venv.touch | ||
tox -e venv $(REBUILD_FLAG) | ||
|
||
.PHONY: test | ||
test: .venv.tox.touch | ||
tox $(REBUILD_FLAG) | ||
|
||
.venv.touch .venv.tox.touch: setup.py requirements-dev.txt | ||
$(eval REBUILD_FLAG := --recreate) | ||
touch "$@" | ||
|
||
.PHONY: clean | ||
clean: | ||
find -name '*.pyc' -delete | ||
find -name '__pycache__' -delete | ||
rm -rf .tox | ||
rm -rf venv | ||
rm -rf .venv.touch | ||
rm -rf .venv.tox.touch |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage | ||
pre-commit>=0.12.0 | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[wheel] | ||
universal = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import absolute_import | ||
from __future__ import unicode_literals | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
|
||
setup( | ||
name='identify', | ||
version='0.0.0.dev1', | ||
classifiers=[ | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
], | ||
install_requires=[], | ||
packages=find_packages(exclude=('tests*', 'testing*')), | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[tox] | ||
envlist = py27,py35 | ||
|
||
[testenv] | ||
deps = -rrequirements-dev.txt | ||
passenv = HOME SSH_AUTH_SOCK USER | ||
commands = | ||
coverage erase | ||
coverage run -m pytest {posargs:tests} | ||
coverage report --fail-under 100 | ||
pre-commit install -f --install-hooks | ||
pre-commit run --all-files | ||
|
||
[testenv:venv] | ||
basepython = /usr/bin/python3.5 | ||
envdir = venv | ||
commands = | ||
|
||
[flake8] | ||
max-line-length = 119 | ||
|
||
[pep8] | ||
ignore = E265,E309,E501 |