Browse Source

Add python-dotenv and default .env file

main
isms 9 years ago
parent
commit
5214aeefa3
  1. 12
      {{ cookiecutter.repo_name }}/.env
  2. 11
      {{ cookiecutter.repo_name }}/.pylintrc

12
{{ cookiecutter.repo_name }}/.env

@ -0,0 +1,12 @@
# Environment variables go here, can be read by `python-dotenv` package:
#
# `src/script.py`
# ----------------------------------------------------------------
# import dotenv
#
# project_dir = os.path.join(os.path.dirname(__file__), os.pardir)
# dotenv_path = os.path.join(project_dir, '.env')
# dotenv.load_dotenv(dotenv_path)
# ----------------------------------------------------------------
#
# DO NOT ADD THIS FILE TO VERSION CONTROL!

11
{{ cookiecutter.repo_name }}/.pylintrc

@ -1,11 +0,0 @@
[MASTER]
load-plugins=pylint_common
[FORMAT]
max-line-length=120
[MESSAGES CONTROL]
disable=missing-docstring,invalid-name
[DESIGN]
max-parents=13
Loading…
Cancel
Save