Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

### Changed

* Recommend `ruff format` instead of `yapf` for fixing code style readability [#695](https://github.com/NLeSC/python-template/pull/695)

### Removed

## 0.6.1
Expand Down
8 changes: 6 additions & 2 deletions template/{% if AddDevDoc %}README.dev.md{% endif %}.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ coverage report
{%- if AddLinting -%}
## Running linters locally

For linting and sorting imports we will use [ruff](https://beta.ruff.rs/docs/). Running the linters requires an
For linting and sorting imports we will use [ruff](https://docs.astral.sh/ruff/). Running the linters requires an
activated virtual environment with the development tools installed.

```shell
Expand All @@ -76,7 +76,11 @@ ruff check .
ruff check . --fix
```

To fix readability of your code style you can use [yapf](https://github.com/google/yapf).
It also provides a command to fix readability of your code style:

```shell
ruff format .
```
{%- endif -%}

{%- if AddPreCommit -%}
Expand Down