-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnoxfile.py
More file actions
executable file
·33 lines (23 loc) · 693 Bytes
/
noxfile.py
File metadata and controls
executable file
·33 lines (23 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env -S uv run --script --quiet
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License
# /// script
# dependencies = ["nox"]
# ///
"""Nox sessions."""
from __future__ import annotations
import shutil
import nox
@nox.session(reuse_venv=True, default=True)
def lint(session: nox.Session) -> None:
"""Run the linter."""
if shutil.which("prek") is None:
session.install("prek")
session.run("prek", "run", "--all-files", *session.posargs, external=True)
if __name__ == "__main__":
nox.main()