From 4dfe24497177ef0269e93613500f3ea7c88ea97a Mon Sep 17 00:00:00 2001 From: mcflugen Date: Thu, 14 Mar 2024 11:51:56 -0600 Subject: [PATCH] run linters on the generated project --- noxfile.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/noxfile.py b/noxfile.py index 8c0d596..7b14ed2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -120,7 +120,7 @@ def build_examples(session: nox.Session, lang): @nox.session(python=PYTHON_VERSIONS) def test_cli(session: nox.Session) -> None: """Test the command line interface.""" - session.install("black", "isort") + session.install("pre-commit") session.install(".") session.run("babelize", "--version") session.run("babelize", "--help") @@ -137,17 +137,7 @@ def test_cli(session: nox.Session) -> None: with session.chdir(new_folder): session.run("babelize", "update", "--set-version=0.1.1") with session.chdir(new_folder): - session.run( - "black", - "--check", - "--diff", - r"--extend-exclude=setup_utils\.py", - "--verbose", - ".", - ) - session.run( - "isort", "--force-single-line-imports", "--check", "--diff", "." - ) + session.run("pre-commit", "run", "--all-files") @nox.session