Skip to content

Commit 1e7cc0d

Browse files
committed
install and configure pre-commit
1 parent da3e009 commit 1e7cc0d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.5.5
12+
hooks:
13+
- id: ruff
14+
args: [--fix]
15+
- id: ruff-format
16+
17+
- repo: https://github.com/psf/black-pre-commit-mirror
18+
rev: 24.8.0
19+
hooks:
20+
- id: black

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
requires-python = ">=3.9"
2626
license = {file = "LICENSE"}
2727
classifiers=[
28-
"Development Status :: 5 - Production/Stable",
28+
"Development Status :: 5 - Production/Stable",
2929
"Intended Audience :: Science/Research",
3030
"Intended Audience :: Developers",
3131
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
@@ -57,6 +57,7 @@ documentation = "https://contrib.scikit-learn.org/radius_clustering/"
5757

5858
[project.optional-dependencies]
5959
dev = [
60+
"pre-commit>=3.8.0",
6061
"pytest>=8.3.3",
6162
"pytest-cov>=5.0.0",
6263
"pandas",

0 commit comments

Comments
 (0)