Skip to content

Commit 7381f79

Browse files
authored
Merge pull request #257 from NLeSC/238-linting-template
Linting issues template
2 parents c8e1e52 + 8b37c9c commit 7381f79

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

{{cookiecutter.project_name}}/.github/next_steps/05_linting.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@
22
title: 'Next step: Linting'
33
---
44

5-
Linting instructions
5+
Your repository has a [workflow]({{ cookiecutter.repository }}/blob/main/.github/workflows/lint.yml) which [lints](https://en.wikipedia.org/wiki/Lint_(software)) your code after every push and when creating a pull request.
6+
7+
Linter workflow may fail if `description` or `keywords` field in [setup.cfg]({{ cookiecutter.repository }}/blob/main/setup.cfg) is empty. Please update these fields. To validate your changes run:
8+
9+
```shell
10+
prospector
11+
```
12+
13+
Enabling [githook](https://git-scm.com/docs/githooks) will automatically lint your code in every commit. You can enable it by running the command below.
14+
15+
```shell
16+
git config --local core.hooksPath .githooks
17+
```
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Documentation about the {{ cookiecutter.package_name }} module."""
22

33
# FIXME: put actual code here
4+
45
def hello(name):
5-
return f'Hello {name}!'
6+
return f'Hello {name}!'

0 commit comments

Comments
 (0)