@@ -37,36 +37,36 @@ def dev(session: nox.Session):
37
37
session .run ("pre-commit" , "install" )
38
38
39
39
40
- @nox .session (tags = ["style" , "fix" ], python = False )
40
+ @nox .session (tags = ["style" , "fix" , "rust" ], python = False )
41
41
def rustfmt (session : nox .Session ):
42
42
if len (session .posargs ) > 0 :
43
43
session .run ("cargo" , "+nightly" , "fmt" , * session .posargs , external = True )
44
44
else :
45
45
session .run ("cargo" , "+nightly" , "fmt" , "--all" , external = True )
46
46
47
47
48
- @nox .session (tags = ["lint" , "fix" ], python = False )
48
+ @nox .session (tags = ["lint" , "fix" , "rust" ], python = False )
49
49
def cargo_check (session : nox .Session ):
50
50
session .run ("cargo" , "check" , "--workspace" , external = True )
51
51
session .run ("cargo" , "clippy" , "--workspace" , external = True )
52
52
53
53
54
- @nox .session (tags = ["style" , "fix" ])
54
+ @nox .session (tags = ["style" , "fix" , "python" ])
55
55
def black (session : nox .Session ):
56
56
session .conda_install ("black" )
57
57
session .run ("black" , str (__file__ ))
58
58
with session .chdir (CURRENT_DIR / "pyargus" ):
59
59
session .run ("black" , "." )
60
60
61
61
62
- @nox .session (tags = ["style" , "fix" ])
62
+ @nox .session (tags = ["style" , "fix" , "python" ])
63
63
def isort (session : nox .Session ):
64
64
session .conda_install ("isort" )
65
65
with session .chdir (CURRENT_DIR / "pyargus" ):
66
66
session .run ("isort" , "." )
67
67
68
68
69
- @nox .session (tags = ["lint" ])
69
+ @nox .session (tags = ["lint" , "python" ])
70
70
def flake8 (session : nox .Session ):
71
71
session .conda_install (
72
72
"flake8" ,
@@ -78,16 +78,16 @@ def flake8(session: nox.Session):
78
78
session .run ("flake8" )
79
79
80
80
81
- @nox .session (tags = ["lint" , "fix" ])
81
+ @nox .session (tags = ["lint" , "fix" , "python" ])
82
82
def ruff (session : nox .Session ):
83
83
session .conda_install ("ruff" )
84
84
with session .chdir (CURRENT_DIR / "pyargus" ):
85
85
session .run ("ruff" , "--fix" , "--exit-non-zero-on-fix" , "." )
86
86
87
87
88
- @nox .session (tags = ["lint" ])
88
+ @nox .session (tags = ["lint" , "python" ])
89
89
def mypy (session : nox .Session ):
90
- session .conda_install ("mypy" , "typing-extensions" , "pytest" , "hypothesis" , "numpy" )
90
+ session .conda_install ("mypy" , "typing-extensions" , "pytest" , "hypothesis" )
91
91
session .env .update (ENV )
92
92
93
93
with session .chdir (CURRENT_DIR / "pyargus" ):
0 commit comments