fix import and quality warnings

This commit is contained in:
2023-11-28 12:30:04 +00:00
parent d3f5587e16
commit aa22e534be
3 changed files with 11 additions and 8 deletions

View File

@@ -13,15 +13,14 @@ from pathlib import Path
b_use_tomli=False
try:
import tomllib
except ImportError:
import tomli
b_use_tomli=True
except ImportError:
import tomllib
import argparse
import os
import logging
import sys
if __package__ == "helpers":
# when calling the module from: > python -m helpers

View File

@@ -72,9 +72,13 @@ where = ["src"]
[tool.setuptools.package-data]
"chacha_cicd_helper" = ["py.typed"]
# [[tool.mypy.overrides]]
# module = ""
# ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tomli"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tomllib"
ignore_missing_imports = true
[tool.coverage.run]
cover_pylib = false

View File

@@ -25,7 +25,7 @@ class cl_install_deps(cl_helper_base):
def do_job(cls) -> None:
"""helper job method implementation"""
deps=[]
opt_deps=[]
opt_deps={}
if 'project' in cls.pyproject:
prj = cls.pyproject["project"]
if 'dependencies' in prj: