Skip to content

Commit 15fdfeb

Browse files
author
Phil Varner
authored
Merge pull request #42 from stactools-packages/pv/add-ruff
add ruff as pre-commit hook
2 parents 98bee43 + 16d213b commit 15fdfeb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
66
rev: v4.4.0
77
hooks:
8-
- id: check-added-large-files
8+
- id: check-added-large-files
9+
- repo: https://github.com/charliermarsh/ruff-pre-commit
10+
rev: "v0.0.267"
11+
hooks:
12+
- id: ruff
13+
args: [--fix, --exit-non-zero-on-fix]
914
- repo: https://github.com/psf/black
1015
rev: 22.12.0
1116
hooks:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[build-system]
22
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.ruff]
6+
line-length = 100

0 commit comments

Comments
 (0)