Commits vergleichen
5 Commits
62b6596098
...
1a8278f763
Autor | SHA1 | Datum |
---|---|---|
Sebastian Tobie | 1a8278f763 | |
Sebastian Tobie | fbe73d2d83 | |
Sebastian Tobie | 67fcb665f3 | |
Sebastian Tobie | d390eb1370 | |
Sebastian Tobie | a53a14adf6 |
|
@ -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**
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.0"
|
__version__ = "0.1.3"
|
||||||
|
|
|
@ -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,)))
|
||||||
|
|
Laden…
In neuem Issue referenzieren