66
77nox .options .reuse_existing_virtualenvs = True
88nox .options .sessions = [
9- "black " ,
10- "pylint " ,
9+ "ruff_format " ,
10+ "ruff_lint " ,
1111 "mypy" ,
1212 "check_yaml" ,
1313 "check_json" ,
2121
2222
2323@nox .session
24- def black (session : nox .Session ):
25- """Checks formatting linting and typing """
26- session .install ("-r" , "requirements/dev-black .txt" )
27- session .run ("black " , ". " )
24+ def ruff_format (session : nox .Session ):
25+ """Checks formatting with ruff """
26+ session .install ("-r" , "requirements/dev-ruff .txt" )
27+ session .run ("ruff " , "format " )
2828
2929
30- @nox .session ( python = False )
31- def pylint (session : nox .Session ):
32- """Run pylint using in default env """
33- session .run ( "pip" , "install" , " -r" , "requirements/dev-pylint .txt" )
34- session .run ("pylint " , "sphinx_immaterial " )
30+ @nox .session
31+ def ruff_lint (session : nox .Session ):
32+ """Run ruff as linter """
33+ session .install ( " -r" , "requirements/dev-ruff .txt" )
34+ session .run ("ruff " , "check " )
3535
3636
3737@nox .session (python = False )
@@ -45,7 +45,7 @@ def mypy(session: nox.Session):
4545 "|" .join (
4646 [
4747 "\\ .git/" ,
48- "^\\ .(?:mypy|pylint |pytest|eslint)_?cache" ,
48+ "^\\ .(?:mypy|ruff |pytest|eslint)_?cache" ,
4949 "^(?:\\ .nox|\\ .?env|\\ .?venv)" ,
5050 "^\\ .coverage.*" ,
5151 "^htmlcov/" ,
0 commit comments