Skip to content

Commit

Permalink
fix(check): don't raise error on pypi reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus committed Oct 27, 2024
1 parent aeac549 commit e0a4ce0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ extend-exclude = [
"tests/masonry/builders/fixtures/pep_561_stub_only*/*",
"tests/utils/fixtures/setups/*",
]
fix = false
fix = true
line-length = 88
target-version = "py39"

Expand All @@ -121,7 +121,6 @@ extend-select = [
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"PTH"
]
ignore = [
"B904", # use 'raise ... from err'
Expand Down
3 changes: 0 additions & 3 deletions src/poetry/console/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def _validate_readme(self, readme: str | list[str], poetry_file: Path) -> list[s
def _validate_dependencies_source(self, config: dict[str, Any]) -> list[str]:
"""Check dependencies's source are valid"""
sources = {repository.name for repository in self.poetry.pool.all_repositories}
print(sources)

dependency_declarations: list[
dict[str, str | dict[str, str] | list[dict[str, str]]]
Expand All @@ -119,8 +118,6 @@ def _validate_dependencies_source(self, config: dict[str, Any]) -> list[str]:
elif isinstance(declaration, dict) and "source" in declaration:
all_referenced_sources.add(declaration["source"])

print(all_referenced_sources)

return [
f'Invalid source "{source}" referenced in dependencies.'
for source in sorted(all_referenced_sources - sources)
Expand Down

0 comments on commit e0a4ce0

Please sign in to comment.