Skip to content

Commit

Permalink
req's, pre-commit, nox files
Browse files Browse the repository at this point in the history
  • Loading branch information
ayasyrev committed Feb 10, 2024
1 parent 2d03e8c commit f5cd9ad
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/ayasyrev/nbmetaclean
rev: 0.0.7
hooks:
- id: nbclean
name: nbclean
entry: nbclean
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nox


@nox.session(python=["3.8", "3.9", "3.10", "3.11", 3.12])
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def tests(session):
args = session.posargs or ["--cov"]
session.install(".", "pytest", "pytest-cov",)
Expand Down
2 changes: 1 addition & 1 deletion noxfile_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
locations = "src/benchmark_utils", "tests", "noxfile.py"


@nox.session(python=["3.8", "3.9", "3.10", "3.11", 3.12])
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def lint(session):
args = session.posargs or locations
session.install("flake8")
Expand Down
7 changes: 7 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pre-commit
nbmetaclean
black
black[jupyter]
flake8
mypy
isort
9 changes: 2 additions & 7 deletions requirements_test_extra.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
coverage[toml]
flake8
black
black[jupyter]
isort
mypy
nox
nox
coverage[toml]

0 comments on commit f5cd9ad

Please sign in to comment.