add to catalog
This commit is contained in:
6
lint.py
6
lint.py
@@ -18,7 +18,7 @@ PKG_KEYS = {
|
||||
}
|
||||
|
||||
COMMON_KEYS = {
|
||||
"status", # tells it cliget process has been tested on this tool
|
||||
"status", # tells if cliget process has been tested on this tool
|
||||
"website",
|
||||
"tags", # may have a typo with "tag" no s
|
||||
"name", # tool name when not exe name
|
||||
@@ -69,9 +69,9 @@ RULES = [
|
||||
]
|
||||
|
||||
import sys
|
||||
from yaml import safe_load
|
||||
from yaml import safe_loadi as load
|
||||
|
||||
catalog = safe_load(open(sys.argv[1], "rt"))
|
||||
catalog = load(open(sys.argv[1], "rt"))
|
||||
|
||||
for name, rule in RULES:
|
||||
if rule(catalog):
|
||||
|
||||
Reference in New Issue
Block a user