Skip to content

Commit

Permalink
chore(pre-commit): auto fixes from hooks 🚨
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 3, 2023
1 parent 13c8d26 commit 0fae914
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
17 changes: 8 additions & 9 deletions ansible_roles_scripts/cruft.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,16 @@ def main(push: bool, repo_name_filter: str, silent: bool, verbosity: int) -> int
"""Script to loop through all ANSIBLE repositories (`all-repos-in.json`),
execute `cruft update ...` / `pre-commit run ...` and commit the results.
This script relies on the machine executing this script
to have the appropiate command lines tools installed
and accessible from the within current PATH.
This script relies on the machine executing this script to have the
appropiate command lines tools installed and accessible from the
within current PATH.
To actually push the results you need to add the option `-P`
for safety reason.
To actually push the results you need to add the option `-P` for
safety reason.
This script recognizes cruft- and git-conflicts,
aborting the operation for a given repository
if any were found and notifies of the required
manual intervention needed.
This script recognizes cruft- and git-conflicts, aborting the
operation for a given repository if any were found and notifies of
the required manual intervention needed.
"""
utils.init(verbosity=verbosity, silent=silent)
retv = 1
Expand Down
7 changes: 4 additions & 3 deletions ansible_roles_scripts/script_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def get_all_cloned_github_repositories() -> list[Path]:
"""Recurse the 'all-repos' directory and return each directory that has
github info.
:return: A list of directories of which origin/master points to github
:return: A list of directories of which origin/master points to
github
"""

all_repos = [
Expand All @@ -233,8 +234,8 @@ def get_all_cloned_ansible_repositories() -> list[Path]:
"""Recurse the 'all-repos' directory and return each directory that has
cookiecutter info.
:return: A list of directories found to be valid ansible roles
(i.e. cruft'ed from my cookiecutter).
:return: A list of directories found to be valid ansible roles (i.e.
cruft'ed from my cookiecutter).
"""

all_repos = [
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://github.com/JonasPammer/ansible-roles
author = Jonas Pammer
author_email = opensource@jonaspammer.at
license = MIT
license_file = LICENSE
license_files = LICENSE
classifiers =
Development Status :: 1 - Planning
Environment :: Console
Expand Down Expand Up @@ -35,7 +35,7 @@ install_requires =
rich
types-PyYAML
verboselogs
python_requires = >=3.7
python_requires = >=3.8

[options.packages.find]
exclude =
Expand Down

0 comments on commit 0fae914

Please sign in to comment.