forked from meteoblue/python-dataset-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
26 lines (19 loc) · 629 Bytes
/
Copy pathnoxfile.py
File metadata and controls
26 lines (19 loc) · 629 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
import nox
TARGETS = ["meteoblue_dataset_sdk", "tests", "noxfile.py"]
@nox.session(reuse_venv=True)
def lint(session):
lint_tools = ["flake8", "isort"]
session.install(*lint_tools)
session.run("isort", *TARGETS)
session.run("flake8", *TARGETS)
@nox.session(reuse_venv=True)
def lint_dev(session):
lint_tools = ["flake8", "black", "isort"]
session.install(*lint_tools)
session.run("isort", "-f", *TARGETS)
session.run("black", *TARGETS)
session.run("flake8", *TARGETS)
@nox.session(reuse_venv=True)
def tests(session):
session.install("-e", ".[dev]")
session.run("pytest", "-v")