Skip to content

Commit f534857

Browse files
committed
add condition for linting mentions in README.dev.md
1 parent d842352 commit f534857

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

template/{% if AddDevDoc %}README.dev.md{% endif %}.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ coverage report
6262

6363
`coverage` can also generate output in HTML and other formats; see `coverage help` for more information.
6464

65+
{%- if AddLinting -%}
6566
## Running linters locally
6667

6768
For linting and sorting imports we will use [ruff](https://beta.ruff.rs/docs/). Running the linters requires an
@@ -76,6 +77,7 @@ ruff . --fix
7677
```
7778

7879
To fix readability of your code style you can use [yapf](https://github.com/google/yapf).
80+
{%- endif -%}
7981

8082
{%- if AddPreCommit -%}
8183
You can enable automatic linting with `ruff` on commit by enabling the git hook from `.githooks/pre-commit`, like so:

0 commit comments

Comments
 (0)