Clean up artifact output and update black
Committed 4d0cc9
--- a/gmpg/analysis.py
+++ b/gmpg/analysis.py
def generate_dependency_graph(project_name, project_dir="."):
subprocess.run(
[
- # XXX "/srv/poetry/bin/poetry",
- # XXX "run",
"pydeps",
project_name,
"--show-deps",
"--noshow",
"--max-bacon",
"2",
+ "-o",
+ "deps.svg",
"--pylib",
"-x",
"os",
"--cov",
".", # TODO ",".join(packages),
"--cov-report",
- "xml:.test_coverage.xml",
+ "xml:test_coverage.xml",
"--junit-xml",
- ".test_results.xml",
+ "test_results.xml",
"--doctest-glob",
"README*",
],
return _parse_junit(), _parse_coverage(), err
-def _parse_junit(path=".test_results.xml"):
+def _parse_junit(path="test_results.xml"):
suite_tag = xml.etree.ElementTree.parse(str(path)).find("testsuite")
_suite = dict(suite_tag.attrib)
suite = {
return suite
-def _parse_coverage(path=".test_coverage.xml"):
+def _parse_coverage(path="test_coverage.xml"):
coverages = {}
for package in list(list(xml.etree.ElementTree.parse(str(path)).getroot())[1]):
for case in list(list(package)[0]):
--- a/pyproject.toml
+++ b/pyproject.toml
[tool.poetry]
name = "gmpg"
-version = "0.1.10"
+version = "0.1.17"
description = "tools for metamodern software development"
keywords = ["Git", "Poetry"]
homepage = "https://ragt.ag/code/projects/gmpg"
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
-black = "^22.12.0"
+black = "^23.7.0"
isort = "^5.11.4"
pendulum = "^2.1.2"
pydeps = "^1.11.0"
radon = "^5.1.0"
responses = "^0.22.0"
toml = "^0.10.2"
-txtint = ">=0.0.0"
+txtint = ">=0.1"
ipython = "^8.8.0"
[tool.poetry.group.dev.dependencies]