Skip to content

Commit 6e76758

Browse files
committed
Add initial nox session for running pre-commit
1 parent bb48154 commit 6e76758

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

noxfile.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# /// script
2+
# dependencies = ["nox", "uv"]
3+
# ///
4+
5+
import nox
6+
7+
nox.options.sessions = ["lint"]
8+
nox.options.default_venv_backend = "uv|virtualenv"
9+
10+
11+
@nox.session
12+
def lint(session):
13+
session.run("uvx", "pre-commit", "run","--all-files")
14+
15+
16+
if __name__ == "__main__":
17+
nox.main()

0 commit comments

Comments
 (0)