Skip to content

Commit

Permalink
ruff(pydocstyle): Run automated fixes (unsafe ones)
Browse files Browse the repository at this point in the history
`ruff --show-fixes --fix-only --unsafe-fixes .`

Fixed 8 errors:
- docs/conf.py:
    1 × D400 (ends-in-period)
- src/vcspull/_internal/config_reader.py:
    1 × D400 (ends-in-period)
- src/vcspull/config.py:
    1 × D400 (ends-in-period)
- tests/test_repo.py:
    3 × D400 (ends-in-period)
- tests/test_sync.py:
    2 × D400 (ends-in-period)

Fixed 8 errors.
  • Loading branch information
tony committed Dec 9, 2023
1 parent 9bdfe3c commit 6b0aae2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@

def linkcode_resolve(domain: str, info: dict[str, str]) -> t.Union[None, str]:
"""
Determine the URL corresponding to Python object
Determine the URL corresponding to Python object.
Notes
-----
Expand Down
2 changes: 1 addition & 1 deletion src/vcspull/_internal/config_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _from_file(cls, path: pathlib.Path) -> dict[str, t.Any]:

@classmethod
def from_file(cls, path: pathlib.Path) -> "ConfigReader":
r"""Load data from file path
r"""Load data from file path.
**YAML file**
Expand Down
2 changes: 1 addition & 1 deletion src/vcspull/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Config utility functions for vcspull.
vcspull.config
vcspull.config.
~~~~~~~~~~~~~~
A lot of these items are todo.
Expand Down
6 changes: 3 additions & 3 deletions tests/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def test_filter_dir() -> None:
"""`filter_repos` filter by dir"""
"""`filter_repos` filter by dir."""
repo_list = filter_repos(fixtures.config_dict_expanded, dir="*github_project*")

assert len(repo_list) == 1
Expand All @@ -19,7 +19,7 @@ def test_filter_dir() -> None:


def test_filter_name() -> None:
"""`filter_repos` filter by name"""
"""`filter_repos` filter by name."""
repo_list = filter_repos(fixtures.config_dict_expanded, name=".vim")

assert len(repo_list) == 1
Expand All @@ -28,7 +28,7 @@ def test_filter_name() -> None:


def test_filter_vcs() -> None:
"""`filter_repos` filter by vcs remote url"""
"""`filter_repos` filter by vcs remote url."""
repo_list = filter_repos(fixtures.config_dict_expanded, vcs_url="*kernel.org*")

assert len(repo_list) == 1
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_config_variations(
config_tpl: str,
remote_list: list[str],
) -> None:
"""Test config output with variation of config formats"""
"""Test config output with variation of config formats."""
dummy_repo_name = "dummy_repo"
dummy_repo = create_git_remote_repo(remote_repo_name=dummy_repo_name)

Expand Down Expand Up @@ -235,7 +235,7 @@ def test_updating_remote(
config_tpl: str,
has_extra_remotes: bool,
) -> None:
"""Ensure additions/changes to yaml config are reflected"""
"""Ensure additions/changes to yaml config are reflected."""
dummy_repo_name = "dummy_repo"
dummy_repo = create_git_remote_repo(remote_repo_name=dummy_repo_name)

Expand Down

0 comments on commit 6b0aae2

Please sign in to comment.