Skip to content

Commit

Permalink
[WIP] version
Browse files Browse the repository at this point in the history
  • Loading branch information
jobiols committed Jul 24, 2024
1 parent ce32f29 commit 0e18c74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
10 changes: 0 additions & 10 deletions .pre-commit-hooks.yaml

This file was deleted.

23 changes: 3 additions & 20 deletions tools/gen_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,37 +328,20 @@ def gen_readme():
"""main function esta es la entrada"""

import sys

args = sys.argv[1:]
print(args)
print("-------------------------")

sys.exit(1)

if version:
print(f"Gen readme version {__version__}")
exit(0)

# ##################################################
# files = []
# if not files:
# with open("doc/files.txt", "r") as fi:
# for file in fi:
# files.append(file)
# ##################################################
print(files)
# pre-commit le pasa todos los files que hay en el repositorio como parametros
files = sys.argv[1:]
if files:
# Si hay files es porque se llamo desde pre-commit

modules = []
# Armar lista con los modulos
for file in files:
print("--------->", file)
# Quitar los archivos que no son directorios
if file.startswith(".") or len(file.split("/")) == 1:
continue
module = file.split("/")[0]
if not module in modules:
print("module--------->", module)
modules.append(module)

# obtiene lista de diccionarios con los datos relevantes de cada modulo.
Expand Down

0 comments on commit 0e18c74

Please sign in to comment.