Skip to content

Commit

Permalink
ci: ensure black is working (#7)
Browse files Browse the repository at this point in the history
* ensure black works in ci

* refmt noxfile with black
  • Loading branch information
aryarm authored Apr 11, 2024
1 parent 163211a commit a07349c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
9 changes: 2 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
]



@session(python=locked_python_version)
def docs(session: Session) -> None:
"""Build the documentation."""
Expand Down Expand Up @@ -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:

Expand All @@ -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)

0 comments on commit a07349c

Please sign in to comment.