Skip to content

Commit

Permalink
move pip-compile config into .pip-tools.toml
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
  • Loading branch information
gotmax23 and webknjaz committed Aug 9, 2023
1 parent 612f048 commit aea5373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .pip-tools.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.pip-tools]
resolver = "backtracking"
allow-unsafe = true
strip-extras = true
6 changes: 2 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,13 @@ def lint(session: nox.Session):
@nox.session(name="pip-compile", python=["3.10"])
@nox.parametrize(["req"], requirements_files, requirements_files)
def pip_compile(session: nox.Session, req: str):
session.install("pip-tools")
# .pip-tools.toml was introduced in v7
session.install("pip-tools >= 7")
# fmt: off
session.run(
"pip-compile",
"--resolver", "backtracking",
"--upgrade",
"--allow-unsafe",
"--quiet",
"--strip-extras",
"--output-file", f"tests/{req}.txt",
f"tests/{req}.in",
)
Expand Down

0 comments on commit aea5373

Please sign in to comment.