Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
guarin committed Jul 5, 2024
1 parent 5e54ece commit dab9ba6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@


def test_requirements_base__pyproject() -> None:
# Check that all dependencies in requirements/base.txt are also in
# pyproject.toml.
"""Check that all dependencies in requirements/base.txt are also in
pyproject.toml."""
missing_deps = _requirements("base") - _pyproject("dependencies")
assert not missing_deps


def test_requirements_base__openapi() -> None:
# Check that all dependencies in requirements/openapi.txt are also in
# requirements/base.txt.
"""Check that all dependencies in requirements/openapi.txt are also in
requirements/base.txt."""
openapi = {
dep for dep in _requirements("openapi") if not dep.startswith("setuptools")
}
Expand All @@ -33,5 +33,5 @@ def _requirements(name: str) -> Set[str]:


def _normalize_dependencies(deps: List[str]) -> Set[str]:
# Remove spaces, empty lines, and comments.
"""Remove spaces, empty lines, and comments."""
return {dep.replace(" ", "") for dep in deps if dep and not dep.startswith("#")}

0 comments on commit dab9ba6

Please sign in to comment.