forked from Pack3tL0ss/central-api-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
16 lines (14 loc) · 696 Bytes
/
noxfile.py
File metadata and controls
16 lines (14 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import nox
from pathlib import Path
@nox.session(python=['venv3.9/bin/python3', 'venv3.10/bin/python3', 'venv3.11/bin/python3', 'venv3.12/bin/python3', 'venv3.13/bin/python3'])
def tests(session):
deps = nox.project.load_toml("pyproject.toml")["project"]["dependencies"]
speedups = nox.project.load_toml("pyproject.toml")["project"]["optional-dependencies"]["speedups"]
requirements = [*deps, *speedups]
session.install(*requirements)
session.install('pytest')
session.run('pytest')
@nox.session()
def lint(session):
session.install('ruff')
session.run('ruff', 'check', Path(__file__).parent / 'centralcli', '--config', Path(__file__).parent / 'pyproject.toml')