diff --git a/{{cookiecutter.github_project_name}}/.github/workflows/lint.yml b/{{cookiecutter.github_project_name}}/.github/workflows/lint.yml index ef4e4ca..0e61f94 100644 --- a/{{cookiecutter.github_project_name}}/.github/workflows/lint.yml +++ b/{{cookiecutter.github_project_name}}/.github/workflows/lint.yml @@ -14,7 +14,8 @@ jobs: - uses: actions/setup-python@v2 - uses: psf/black@stable with: - args: ". --check" + options: "--check" + src: "." - name: docstrings run: | pip install flit diff --git a/{{cookiecutter.github_project_name}}/docs/conf.py b/{{cookiecutter.github_project_name}}/docs/conf.py index 318604f..62fdb6e 100644 --- a/{{cookiecutter.github_project_name}}/docs/conf.py +++ b/{{cookiecutter.github_project_name}}/docs/conf.py @@ -12,6 +12,7 @@ # import os import sys + sys.path.insert(0, os.path.abspath('../{{ cookiecutter.python_package_name }}')) @@ -37,7 +38,7 @@ "numpydoc", 'sphinx.ext.autodoc', 'sphinx.ext.inheritance_diagram', - 'autoapi.sphinx' + 'autoapi.sphinx', ] sphinx_gallery_conf = { diff --git a/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/__init__.py b/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/__init__.py index 09af2ae..e0554ae 100644 --- a/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/__init__.py +++ b/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/__init__.py @@ -4,9 +4,8 @@ # Copyright (c) {{ cookiecutter.author_name }}. # Distributed under the terms of the Modified BSD License. -# Must import __version__ first to avoid errors importing this file during the build process. +# Must import __version__ first to avoid errors importing this file during the build process. # See https://github.com/pypa/setuptools/issues/1724#issuecomment-627241822 from ._version import __version__ from .example import example_function - diff --git a/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/example.py b/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/example.py index 8e5ca93..8bc14a2 100644 --- a/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/example.py +++ b/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/example.py @@ -25,7 +25,7 @@ def example_function(ax, data, above_color="r", below_color="k", **kwargs): The color of points with `y>0` below_color : color-like, default: 'k' The color of points with `y<0` - kwargs : + **kwargs Passed through to `ax.scatter` Returns