From 5214aeefa39e02341182071fee98aab62b8ee884 Mon Sep 17 00:00:00 2001 From: isms Date: Mon, 2 Nov 2015 09:25:23 -0500 Subject: [PATCH] Add python-dotenv and default .env file --- {{ cookiecutter.repo_name }}/.env | 12 ++++++++++++ {{ cookiecutter.repo_name }}/.pylintrc | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 {{ cookiecutter.repo_name }}/.env delete mode 100644 {{ cookiecutter.repo_name }}/.pylintrc diff --git a/{{ cookiecutter.repo_name }}/.env b/{{ cookiecutter.repo_name }}/.env new file mode 100644 index 0000000..1d08ff3 --- /dev/null +++ b/{{ 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! diff --git a/{{ cookiecutter.repo_name }}/.pylintrc b/{{ cookiecutter.repo_name }}/.pylintrc deleted file mode 100644 index d41dc2d..0000000 --- a/{{ cookiecutter.repo_name }}/.pylintrc +++ /dev/null @@ -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 \ No newline at end of file