Skip to content

Commit

Permalink
Remove defaulted_to_requirements_txt references which are redundant now.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jul 10, 2024
1 parent 767eb39 commit 3b028d4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hatch_requirements_txt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def update(self, metadata: dict) -> None:
# 'filename' is the old way to specify a single requirements file. 'files' is preferred.
filename: Optional[str] = self.config.get("filename", None)
files: Optional[List[str]] = self.config.get("files", None)
defaulted_to_requirements_txt: bool = False

if "dependencies" not in metadata.get("dynamic", []):
# Dependencies are not declared dynamic
Expand All @@ -150,7 +149,6 @@ def update(self, metadata: dict) -> None:
if filename is None:
if files is None:
files = ["requirements.txt"]
defaulted_to_requirements_txt = True
warnings.warn(
"Please explicitly specify 'files' in "
"[tool.hatch.metadata.hooks.requirements_txt]. Defaulting to "
Expand Down

0 comments on commit 3b028d4

Please sign in to comment.