Last active
August 11, 2020 14:02
-
-
Save olivx/c5ff27cb186e8bb786497acf4e3645b9 to your computer and use it in GitHub Desktop.
setup.cfg exemplo flask8 coverage isort pytest make file
This file contains hidden or 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
SHELL := /bin/sh | |
clean: | |
@rm -f .coverage 2> /dev/null | |
@rm -rf .cache 2> /dev/null | |
@find . -name "*.pyc" -delete | |
@find . -name "*.swp" -delete | |
@find . -name "__pycache__" -delete | |
sort: | |
@isort | |
format: | |
@black users | |
@black core | |
@black shop |
This file contains hidden or 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
[dev-packages] | |
black = "==18.9b0" | |
ipdb = "==0.11" | |
isort = "==4.3.4" | |
flake8 = "==3.6.0" | |
inotify = "==0.2.10" | |
pytest = "==4.0.1" | |
pytest-cov = "==2.6.1" | |
pytest-django = "==3.4.5" | |
django-debug-toolbar = "*" | |
django-extensions = "* |
This file contains hidden or 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
[flake8] | |
exclude = docs/* | |
max-line-length = 88 | |
per-file-ignores = | |
[coverage:run] | |
source = kafka_producer_nimsoft | |
omit = .venv/* | |
*/tests/* | |
[isort] | |
known_first_party=kafka_producer_nimsoft | |
multi_line_output=3 | |
include_trailing_comma=True | |
force_grid_wrap=0 | |
use_parentheses=True | |
line_length=88 | |
skip=.venv/ | |
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | |
[aliases] | |
test=pytest | |
[tool:pytest] | |
addopts=-vv --cov-report xml:coverage.xml --cov-report term-missing --junit-xml=junit.xml | |
python_files = test_*.py *_test.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment