Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix_nox #68

Merged
merged 4 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ If you want to clear outputs, add `--clear_outputs` at command line or `[ --clea
```yaml
repos:
- repo: https://github.com/ayasyrev/nbmetaclean
rev: 0.0.10
rev: 0.1
hooks:
- id: nbclean
args: [ --clean_outputs ]
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ If you want to clear outputs, add `--clear_outputs` at command line or `[ --clea
```yaml
repos:
- repo: https://github.com/ayasyrev/nbmetaclean
rev: 0.0.10
rev: 0.1
hooks:
- id: nbclean
args: [ --clean_outputs ]
Expand Down
8 changes: 6 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import nox


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="uv")
nox.options.default_venv_backend = "uv|virtualenv"
nox.options.reuse_existing_virtualenvs = True


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def tests(session: nox.Session) -> None:
args = session.posargs or ["--cov"]
session.install("-e .[test]")
session.install("-e", ".[test]")
session.run("pytest", *args)
7 changes: 5 additions & 2 deletions noxfile_conda.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import nox

nox.options.default_venv_backend = "mamba|conda"
nox.options.reuse_existing_virtualenvs = True

@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="mamba")

@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def conda_tests(session: nox.Session) -> None:
args = session.posargs or ["--cov"]
session.conda_install("uv")
session.install("uv", "pip", "install", "-e", ".[test]")
session.run("uv", "pip", "install", "-e", ".[test]")
session.run("pytest", *args)
4 changes: 3 additions & 1 deletion noxfile_conda_lint.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import nox

locations = "."
nox.options.default_venv_backend = "mamba|conda"
nox.options.reuse_existing_virtualenvs = True


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="mamba")
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def conda_lint(session: nox.Session) -> None:
args = session.posargs or locations
session.conda_install("ruff")
Expand Down
4 changes: 3 additions & 1 deletion noxfile_lint.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import nox

locations = "."
nox.options.default_venv_backend = "uv|virtualenv"
nox.options.reuse_existing_virtualenvs = True


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="uv")
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def lint(session: nox.Session) -> None:
args = session.posargs or locations
session.install("ruff")
Expand Down
2 changes: 1 addition & 1 deletion src/nbmetaclean/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.1"
__version__ = "0.1.1_dev"

__all__ = ["__version__"]