Skip to content

Instantly share code, notes, and snippets.

@metalg0su
Last active September 10, 2020 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metalg0su/73a8a7cfed9554ed3f8d9d56c26290f4 to your computer and use it in GitHub Desktop.
Save metalg0su/73a8a7cfed9554ed3f8d9d56c26290f4 to your computer and use it in GitHub Desktop.
python project
# extensions: flake8-docstring
[flake8]
exclude =
./venv
max-line-length = 120
ignore =
W503
# flake8-docstrings: http://www.pydocstyle.org/en/latest/error_codes.html#error-codes
D10
D40
from setuptools import setup, find_packages
req_tests = ["pytest"]
req_lint = ["flake8", "flake8-docstrings"]
req_etc = ["black", "isort", "vulture"]
req_dev = req_tests + req_lint + req_etc
setup_options = {
"name": "",
"description": "",
"packages": find_packages(),
"install_requires": [],
"extras_require": {
"tests": req_tests,
"lint": req_lint,
"dev": req_dev
},
"package_dir": {"": "."},
"entry_points": {
"console_scripts": [
"run-proc=src.__main__:main",
],
},
}
setup(**setup_options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment