Skip to content

Commit

Permalink
chore: Use nox.project.load_toml to get test dependencies (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Apr 15, 2024
1 parent 58b924a commit 1d1afbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ poetry==1.8.2
poetry-plugin-export==1.7.1
poetry-dynamic-versioning==1.2.0
pre-commit==3.7.0
nox==2024.3.2
nox==2024.4.15
nox-poetry==1.0.3
20 changes: 5 additions & 15 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
{sys.executable} -m pip install nox-poetry"""
raise SystemExit(dedent(message)) from None

nox.needs_version = ">=2024.4.15"

RUFF_OVERRIDES = """\
extend = "./pyproject.toml"
extend-ignore = ["TD002", "TD003", "FIX002"]
Expand All @@ -38,21 +40,9 @@
"doctest",
"test_cookiecutter",
)
test_dependencies = [
"coverage[toml]",
"duckdb",
"duckdb-engine",
"fastjsonschema",
"pyarrow",
"pytest",
"pytest-benchmark",
"pytest-durations",
"pytest-snapshot",
"pytz",
"requests-mock",
"rfc3339-validator",
"time-machine",
]

poetry_config = nox.project.load_toml("pyproject.toml")["tool"]["poetry"]
test_dependencies = poetry_config["group"]["dev"]["dependencies"].keys()


@session(python=main_python_version)
Expand Down

0 comments on commit 1d1afbe

Please sign in to comment.