Commits vergleichen

..

5 Commits

Autor SHA1 Nachricht Datum
Sebastian Tobie 1a8278f763 fixed the generator expection 2023-11-26 10:29:12 +01:00
Sebastian Tobie fbe73d2d83 fixed an exception 2023-11-26 10:11:43 +01:00
Sebastian Tobie 67fcb665f3 fixed version 2023-11-25 13:35:20 +01:00
Sebastian Tobie d390eb1370 added some upload info 2023-11-25 13:34:37 +01:00
Sebastian Tobie a53a14adf6 removed the badges 2023-11-25 13:34:27 +01:00
4 geänderte Dateien mit 10 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -1,8 +1,5 @@
# Ansible module # Ansible module
[![PyPI - Version](https://img.shields.io/pypi/v/ansible-module.svg)](https://pypi.org/project/ansible-module)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ansible-module.svg)](https://pypi.org/project/ansible-module)
----- -----
**Table of Contents** **Table of Contents**

Datei anzeigen

@ -55,6 +55,9 @@ style = ["ruff {args:.}", "black --check --diff {args:.}"]
fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"]
all = ["style", "typing"] all = ["style", "typing"]
[tool.hatch.publish.index.repos.private]
url = "https://gitea.sebastian-tobie.de/api/packages/sebastian/pypi"
[tool.black] [tool.black]
target-version = ["py37"] target-version = ["py37"]
line-length = 120 line-length = 120

Datei anzeigen

@ -1 +1 @@
__version__ = "0.1.0" __version__ = "0.1.3"

Datei anzeigen

@ -11,7 +11,12 @@ regex = re.compile("DOCUMENTATION *= *r?(?P<quote>\"{3}|'{3})(---)?.*?(?P=quote)
def main(): def main():
for modfile in moduledir.iterdir(): try:
modules = list(moduledir.iterdir())
except:
print("failed to find modules")
return
for modfile in modules:
if modfile.name in ("__init__.py", "__pycache__", "unit.py.example"): if modfile.name in ("__init__.py", "__pycache__", "unit.py.example"):
continue continue
mod = importlib.import_module(".".join((modfile.parts[:-1]) + (modfile.stem,))) mod = importlib.import_module(".".join((modfile.parts[:-1]) + (modfile.stem,)))