From a07349c0892001e3de33c2e4c28f928583e0e1bb Mon Sep 17 00:00:00 2001 From: Arya Massarat <23412689+aryarm@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:34:45 -0700 Subject: [PATCH] ci: ensure black is working (#7) * ensure black works in ci * refmt noxfile with black --- .github/workflows/tests.yml | 2 +- noxfile.py | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1b72568..b14a946 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,7 +89,7 @@ jobs: nox --verbose --python=${{ matrix.python }} -- --cov=. --cov-report=term-missing --cov-fail-under=93 - name: Run tests with nox - if: matrix.session == 'tests' + if: matrix.session == 'tests' || matrix.session == 'lint' shell: bash -el {0} run: | nox --verbose --python=${{ matrix.python }} diff --git a/noxfile.py b/noxfile.py index 3c6b6ac..1cce100 100644 --- a/noxfile.py +++ b/noxfile.py @@ -25,7 +25,6 @@ ] - @session(python=locked_python_version) def docs(session: Session) -> None: """Build the documentation.""" @@ -78,9 +77,7 @@ def tests(session: Session) -> None: channel="conda-forge", ) install_handle_python(session) - session.run( - "python", "-m", "pytest", *cov_cli_args, *session.posargs - ) + session.run("python", "-m", "pytest", *cov_cli_args, *session.posargs) else: @@ -89,6 +86,4 @@ def tests(session: Session) -> None: """Run the test suite.""" session.install("pytest", "pytest-cov") install_handle_python_numpy(session) - session.run( - "python", "-m", "pytest", *cov_cli_args, *session.posargs - ) + session.run("python", "-m", "pytest", *cov_cli_args, *session.posargs)