Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 08bd028

Browse files
authored
Bump the ruff pre-commit version and use newer format (#21)
* Bump the ruff pre-commit version * Use correct ruff format
1 parent 789d770 commit 08bd028

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

{{cookiecutter.project_slug}}/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
- id: trailing-whitespace
88
{%- if cookiecutter.code_qa == 'ruff' %}
99
- repo: https://github.com/charliermarsh/ruff-pre-commit
10-
rev: v0.0.278
10+
rev: v0.6.4
1111
hooks:
1212
- id: ruff
1313
args: [ --fix, --exit-non-zero-on-fix ]

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ include = '\.pyi?$'
1111

1212
{% if cookiecutter.code_qa == 'ruff' -%}
1313
[tool.ruff]
14-
select = ["E", "F", "I"]
1514
line-length = 100
1615
target-version = "py311"
16+
17+
[tool.ruff.lint]
18+
select = ["E", "F", "I"]
1719
{% endif %}
1820

1921
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)