Clean up and final fixes

This commit is contained in:
Roman Mogilatov 2016-11-02 23:55:14 +02:00
parent db3bd77b6a
commit aac72ed3a3
4 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,7 @@
[run] [run]
source = src/dependency_injector
omit = tests/unit
plugins = Cython.Coverage plugins = Cython.Coverage
include = dependency_injector/*
[html] [html]
directory=reports/unittests/ directory=reports/unittests/

View File

@ -35,13 +35,13 @@ build: clean cythonize
# Compile C extensions # Compile C extensions
python setup.py build_ext --inplace python setup.py build_ext --inplace
install: clean cythonize install: uninstall clean cythonize
python setup.py install pip install . -v
uninstall: uninstall:
- pip uninstall -y -q dependency-injector 2> /dev/null - pip uninstall -y -q dependency-injector 2> /dev/null
test: test: build
# Unit tests with coverage report # Unit tests with coverage report
coverage erase coverage erase
coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit
@ -50,10 +50,10 @@ test:
check: check:
# Static analysis # Static analysis
flake8 --max-complexity=10 dependency_injector/ flake8 --max-complexity=10 src/dependency_injector/
flake8 --max-complexity=10 examples/ flake8 --max-complexity=10 examples/
# Code style analysis # Code style analysis
pydocstyle dependency_injector/ pydocstyle src/dependency_injector/
pydocstyle examples/ pydocstyle examples/
publish: cythonize publish: cythonize

View File

@ -41,8 +41,7 @@ setup(name='dependency-injector',
'dependency_injector.providers', 'dependency_injector.providers',
], ],
package_dir={ package_dir={
'dependency_injector': 'src/dependency_injector', '': 'src',
'dependency_injector.providers': 'src/dependency_injector/providers',
}, },
ext_modules=[ ext_modules=[
Extension('dependency_injector.injections', Extension('dependency_injector.injections',

View File

@ -25,18 +25,18 @@ commands=
deps= deps=
pylint pylint
commands= commands=
- pylint -f colorized --rcfile=./.pylintrc dependency_injector - pylint -f colorized --rcfile=./.pylintrc src/dependency_injector
[testenv:flake8] [testenv:flake8]
deps= deps=
flake8 flake8
commands= commands=
flake8 --max-complexity=10 dependency_injector/ flake8 --max-complexity=10 src/dependency_injector/
flake8 --max-complexity=10 examples/ flake8 --max-complexity=10 examples/
[testenv:pydocstyle] [testenv:pydocstyle]
deps= deps=
pydocstyle pydocstyle
commands= commands=
pydocstyle dependency_injector/ pydocstyle src/dependency_injector/
pydocstyle examples/ pydocstyle examples/