Skip to content

Commit

Permalink
Fix breaking unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Mar 4, 2024
1 parent a05630b commit f6e7cc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "readmeai"
version = "0.5.076"
version = "0.5.077"
description = "👾 Automated README file generator, powered by large language model APIs."
authors = ["Eli <egsalamie@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -77,12 +77,12 @@ exclude = [
]
line-length = 79

[ruff.format]
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
docstring-code-line-length = 20

[ruff.lint]
[tool.ruff.lint]
extend-select = ["E501"]
select = [
# pycodestyle
Expand Down
2 changes: 1 addition & 1 deletion readmeai/parsers/language/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def parse(self, content: str) -> List[str]:

return dependencies

except toml.TomlDecodeError as exc:
except Exception as exc:
return self.handle_parsing_error(f"pyproject.toml: {str(exc)}")

def extract_package_names(self, dependencies: List[str]) -> List[str]:
Expand Down
2 changes: 1 addition & 1 deletion readmeai/parsers/language/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ def parse(self, content: str) -> List[str]:

return dependencies

except toml.TomlDecodeError as exc:
except Exception as exc:
return self.handle_parsing_error(f"cargo.toml: {str(exc)}")

0 comments on commit f6e7cc6

Please sign in to comment.