readme: Also showing the total number of extensions.
This commit is contained in:
parent
a1c8dba991
commit
f2f922e97f
2 changed files with 8 additions and 6 deletions
|
|
@ -21,9 +21,9 @@ then to run:
|
|||
|
||||
# vigil <directory_path>
|
||||
|
||||
### Tools (48 in total)
|
||||
### Tools
|
||||
|
||||
Extensions | Tools
|
||||
Extensions (42) | Tools (48)
|
||||
---------- | -----
|
||||
.* | [contents](http://pygments.org/) • metadata • [git_blame](https://git-scm.com/docs/git-blame) • [git_log](https://git-scm.com/docs/git-log)
|
||||
.py | [python_syntax](https://en.wikipedia.org/wiki/Python_syntax_and_semantics) • [python_unittests](https://docs.python.org/3/library/unittest.html) • [pydoc](https://docs.python.org/3/library/pydoc.html) • [mypy](http://www.mypy-lang.org/) • [python_coverage](http://nedbatchelder.com/code/coverage/) • [pycodestyle](https://pypi.python.org/pypi/pycodestyle) • [pydocstyle](http://pydocstyle.readthedocs.org/) • [pyflakes](https://launchpad.net/pyflakes) • [pylint](http://www.pylint.org/) • [python_gut](https://github.com/ahamilton/vigil/blob/master/gut.py) • [python_modulefinder](https://docs.python.org/3/library/modulefinder.html) • [dis](https://docs.python.org/3/library/dis.html) • [python_mccabe](https://github.com/flintwork/mccabe) • [bandit](https://wiki.openstack.org/wiki/Security/Projects/Bandit)
|
||||
|
|
|
|||
|
|
@ -16,9 +16,11 @@ def tool_markup(tool):
|
|||
all_tools = ([(["*"], tools.generic_tools() +
|
||||
[tools.git_blame, tools.git_log])] +
|
||||
tools.TOOLS_FOR_EXTENSIONS)
|
||||
unique_tools = set()
|
||||
tool_set = set()
|
||||
extension_set = set()
|
||||
for extensions, tools_ in all_tools:
|
||||
unique_tools.update(tools_)
|
||||
tool_set.update(tools_)
|
||||
extension_set.update(extensions)
|
||||
print(f"""\
|
||||
# Vigil Code Monitor
|
||||
|
||||
|
|
@ -43,9 +45,9 @@ then to run:
|
|||
|
||||
# vigil <directory_path>
|
||||
|
||||
### Tools ({len(unique_tools)} in total)
|
||||
### Tools
|
||||
|
||||
Extensions | Tools
|
||||
Extensions ({len(extension_set)}) | Tools ({len(tool_set)})
|
||||
---------- | -----""")
|
||||
for extensions, tools_ in all_tools:
|
||||
print("%s | %s" % (" ".join("." + extension for extension in extensions),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue