mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Clean up and final fixes
This commit is contained in:
parent
db3bd77b6a
commit
aac72ed3a3
|
@ -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/
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -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
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -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',
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -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/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user