Skip to content

Commit 9348637

Browse files
authored
Merge pull request #9 from oscargus/blackfix
Fix black action arguments + formatting
2 parents d3706c0 + 7414e52 commit 9348637

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

{{cookiecutter.github_project_name}}/.github/workflows/lint.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
- uses: actions/setup-python@v2
1515
- uses: psf/black@stable
1616
with:
17-
args: ". --check"
17+
options: "--check"
18+
src: "."
1819
- name: docstrings
1920
run: |
2021
pip install flit

{{cookiecutter.github_project_name}}/docs/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#
1313
import os
1414
import sys
15+
1516
sys.path.insert(0, os.path.abspath('../{{ cookiecutter.python_package_name }}'))
1617

1718

@@ -37,7 +38,7 @@
3738
"numpydoc",
3839
'sphinx.ext.autodoc',
3940
'sphinx.ext.inheritance_diagram',
40-
'autoapi.sphinx'
41+
'autoapi.sphinx',
4142
]
4243

4344
sphinx_gallery_conf = {

{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
# Copyright (c) {{ cookiecutter.author_name }}.
55
# Distributed under the terms of the Modified BSD License.
66

7-
# Must import __version__ first to avoid errors importing this file during the build process.
7+
# Must import __version__ first to avoid errors importing this file during the build process.
88
# See https://github.com/pypa/setuptools/issues/1724#issuecomment-627241822
99
from ._version import __version__
1010

1111
from .example import example_function
12-

{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def example_function(ax, data, above_color="r", below_color="k", **kwargs):
2525
The color of points with `y>0`
2626
below_color : color-like, default: 'k'
2727
The color of points with `y<0`
28-
kwargs :
28+
**kwargs
2929
Passed through to `ax.scatter`
3030
3131
Returns

0 commit comments

Comments
 (0)