From a9c39daa9086293fc3b3cf9e589856de0f541987 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 7 Feb 2022 23:38:15 -0500 Subject: [PATCH] Format code with black and isort (#30) * Format code with black and isort This commit fixes the style issues introduced in 2c9b750 according to the output from black and isort. Details: https://deepsource.io/gh/digimach/cookiecutter-python-package/transform/785feaf3-ba29-430c-a5dd-a32a25b5f8c4/ * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: Komail Kanjee Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- {{cookiecutter.project_slug}}/docs/conf.py | 3 ++- .../src/{{cookiecutter.project_slug}}/cli/__init__.py | 2 +- .../src/{{cookiecutter.project_slug}}/cli/main.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/docs/conf.py b/{{cookiecutter.project_slug}}/docs/conf.py index 715482f..9966a52 100644 --- a/{{cookiecutter.project_slug}}/docs/conf.py +++ b/{{cookiecutter.project_slug}}/docs/conf.py @@ -6,13 +6,14 @@ # -- Path setup -------------------------------------------------------------- +import datetime + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # import os import sys -import datetime from importlib import import_module sys.path.insert(0, os.path.abspath("../src")) diff --git a/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/__init__.py b/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/__init__.py index dce5821..4a8479d 100644 --- a/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/__init__.py +++ b/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/__init__.py @@ -33,9 +33,9 @@ my_script = {{ cookiecutter.project_slug }}.cli:main """ -import pkgutil import importlib import pathlib +import pkgutil import sys for module in pkgutil.iter_modules(path=[pathlib.Path(__file__).parent.absolute()]): diff --git a/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/main.py b/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/main.py index f32569c..ce7ca19 100644 --- a/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/main.py +++ b/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cli/main.py @@ -4,6 +4,7 @@ """ import platform import sys + import click from .. import __version__