fix import and quality warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user