forked from drivendataorg/cookiecutter-data-science
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from Vastra-Gotalandsregionen/AI-1154
AI-1154: Fixing Pylint
- Loading branch information
Showing
5 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"""Setup""" | ||
from setuptools import find_packages, setup | ||
|
||
setup( | ||
|
18 changes: 10 additions & 8 deletions
18
{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}/__init__.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
"""init-py""" | ||
import sys | ||
from pathlib import Path | ||
|
||
from dotenv import find_dotenv, load_dotenv | ||
from loguru import logger | ||
|
||
dotenv_path = find_dotenv() | ||
load_dotenv(dotenv_path) | ||
DOTENV_PATH = find_dotenv() | ||
load_dotenv(DOTENV_PATH) | ||
|
||
FMT = "{time:YYYY-MM-DD HH:mm:ss} "\ | ||
"| {level} | {name} :: {module} :: {function} :: {line} - {message}" | ||
|
||
fmt = "{time:YYYY-MM-DD HH:mm:ss} | {level} | {name} :: {module} :: {function} :: {line} - {message}" | ||
|
||
config = { | ||
CONFIG = { | ||
"handlers": [ | ||
{"sink": sys.stdout, "level": "DEBUG"}, | ||
{"sink": "log.log", "format": fmt, "level": "DEBUG"}, | ||
{"sink": "log.log", "format": FMT, "level": "DEBUG"}, | ||
] | ||
} | ||
|
||
logger.configure(**config) | ||
logger.configure(**CONFIG) | ||
|
||
source_path = Path(__file__).resolve().parents[1] | ||
SOURCE_PATH = Path(__file__).resolve().parents[1] |
2 changes: 2 additions & 0 deletions
2
{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}/data/make_dataset.py
This file contains 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