Skip to content

Commit b598654

Browse files
committed
Remove pre-commit from nox dev session
The `.pre-commit-config.yaml` will continue to hold helpful, self-correcting checks for use in pre-commit.ci. The expectation of running pre-commit locally is being removed.
1 parent 58366b9 commit b598654

File tree

3 files changed

+2
-34
lines changed

3 files changed

+2
-34
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# For use with pre-commit.ci - No expectation of use locally
12
ci:
23
autoupdate_schedule: monthly
34

@@ -6,27 +7,6 @@ repos:
67
- repo: https://github.com/pre-commit/pre-commit-hooks
78
rev: "v5.0.0"
89
hooks:
9-
- id: check-json
10-
- id: check-toml
11-
- id: check-yaml
1210
- id: trailing-whitespace
1311
- id: end-of-file-fixer
14-
- id: check-docstring-first
15-
16-
# Adds a standard feel to import segments
17-
- repo: https://github.com/pycqa/isort
18-
rev: 6.0.1
19-
hooks:
20-
- id: isort
21-
args:
22-
- "--force-single-line-imports"
23-
- "--add-import"
24-
- "from __future__ import annotations"
25-
- "--profile"
26-
- "black"
27-
28-
# Format code. No, I don't like everything black does either.
29-
- repo: https://github.com/psf/black-pre-commit-mirror
30-
rev: 25.1.0
31-
hooks:
32-
- id: black
12+
- id: mixed-line-ending

CONTRIBUTING.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,3 @@ nox -s update-deps
109109
```bash
110110
nox -s upgrade-deps
111111
```
112-
113-
---
114-
115-
## [pre-commit](https://pre-commit.com)
116-
117-
> A framework for managing and maintaining multi-language pre-commit hooks.
118-
119-
This repo is setup with a `.pre-commit-config.yaml` with the expectation that
120-
any code submitted for review already passes all selected pre-commit checks.

noxfile.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ def dev(session: nox.Session) -> None:
7676

7777
python("pip", "install", "--editable", ".[dev,test]", *contraint, external=True)
7878

79-
python("pip", "install", "pre-commit", external=True)
80-
session.run(f"{venv_path}/pre-commit", "install", external=True)
81-
8279
if not os.environ.get("VIRTUAL_ENV"):
8380
session.log(f"\n\nRun '{activate_command}' to enter the virtual environment.\n")
8481

0 commit comments

Comments
 (0)