2 Star 0 Fork 0

mirrors_seperman/deepdiff

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
noxfile.py 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Enji Cooper 提交于 2个月前 . Use nox instead of tox
"""nox configuration file."""
# ruff: noqa: ANN001, D401
import nox
@nox.session
def flake8(session) -> None:
"""Run flake8."""
posargs = session.posargs if session.posargs else ["deepdiff"]
session.install(".[cli,dev,static]")
session.run(
"python",
"-m",
"flake8",
*posargs,
)
@nox.session
def mypy(session) -> None:
"""Run mypy."""
posargs = session.posargs if session.posargs else ["deepdiff"]
session.install(".[cli,dev,static]")
session.run(
"python",
"-m",
"mypy",
"--install-types",
"--non-interactive",
*posargs,
)
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
def pytest(session) -> None:
"""Test with pytest."""
posargs = session.posargs if session.posargs else ["-vv", "tests"]
session.install(".[cli,dev,static,test]")
session.run(
"python",
"-m",
"pytest",
"--cov=deepdiff",
"--cov-report",
"term-missing",
*posargs,
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_seperman/deepdiff.git
git@gitee.com:mirrors_seperman/deepdiff.git
mirrors_seperman
deepdiff
deepdiff
master

搜索帮助