Skip to content

Commit 6164d5b

Browse files
chore: add ruff
1 parent 170d288 commit 6164d5b

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ jobs:
2323
- name: Run Black
2424
run: black --check .
2525

26+
- name: Run Ruff
27+
run: ruff check
28+
2629
- name: Run pre-commit
2730
run: pre-commit run --all-files

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ repos:
2424
rev: 6.0.1
2525
hooks:
2626
- id: isort
27+
28+
- repo: https://github.com/astral-sh/ruff-pre-commit
29+
rev: v0.11.2
30+
hooks:
31+
- id: ruff
32+
args: [ --fix ]
33+
- id: ruff-format

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "python_package_template"
33
authors = [
4-
{ name="Mark", email="mark@remarkablemark.org" },
4+
{ name="Mark", email="mark@remarkablemark.org" },
55
]
66
description = "Python Package Template"
77
readme = "README.md"
@@ -22,6 +22,7 @@ test = [
2222
"isort==6.0.1",
2323
"pre-commit==4.2.0",
2424
"pytest==8.3.5",
25+
"ruff==0.11.2",
2526
"twine==6.1.0",
2627
]
2728

0 commit comments

Comments
 (0)