Skip to content

Commit

Permalink
Apply nbqa only to the docs/ folder and exclude the (old) jupyter_exe…
Browse files Browse the repository at this point in the history
…cute folder
  • Loading branch information
opcode81 committed Feb 15, 2024
1 parent 08728ad commit 26e210a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ line-length = 100
target-version = ["py311"]

[tool.nbqa.exclude]
ruff = ".jupyter_cache"
mypy = ".jupyter_cache"
ruff = "\\.jupyter_cache|jupyter_execute"
mypy = "\\.jupyter_cache|jupyter_execute"

[tool.ruff]
select = [
Expand Down Expand Up @@ -203,10 +203,10 @@ test = "pytest test --cov=tianshou --cov-report=xml --cov-report=term-missing --
test-reduced = "pytest test/base test/continuous --cov=tianshou --durations=0 -v --color=yes"
_black_check = "black --check ."
_ruff_check = "ruff check ."
_ruff_check_nb = "nbqa ruff ."
_ruff_check_nb = "nbqa ruff docs"
_black_format = "black ."
_ruff_format = "ruff --fix ."
_ruff_format_nb = "nbqa ruff --fix ."
_ruff_format_nb = "nbqa ruff --fix docs"
lint = ["_black_check", "_ruff_check", "_ruff_check_nb"]
_poetry_install_sort_plugin = "poetry self add poetry-plugin-sort"
_poetry_sort = "poetry sort"
Expand All @@ -221,5 +221,5 @@ doc-generate-files = ["_autogen_rst", "_jb_generate_toc", "_jb_generate_config"]
doc-spellcheck = "sphinx-build -W -b spelling docs docs/_build"
doc-build = ["doc-generate-files", "doc-spellcheck", "_sphinx_build"]
_mypy = "mypy tianshou"
_mypy_nb = "nbqa mypy ."
_mypy_nb = "nbqa mypy docs"
type-check = ["_mypy", "_mypy_nb"]

0 comments on commit 26e210a

Please sign in to comment.