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 <[email protected]>
  • Loading branch information
gotmax23 and webknjaz committed Aug 21, 2023
1 parent d73b01e commit ae24c09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .pip-tools.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[tool.pip-tools]
resolver = "backtracking"
allow-unsafe = true
strip-extras = true
quiet = true
7 changes: 2 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,12 @@ 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 ae24c09

Please sign in to comment.