fix: more cleanup for pylint
for some reason these weren't caught with local run but found some more issues running under tox
This commit is contained in:
parent
faa12005fb
commit
f34678b305
3 changed files with 5 additions and 3 deletions
|
@ -30,6 +30,7 @@ dependencies = [
|
||||||
'importlib-metadata; python_version < "3.10"',
|
'importlib-metadata; python_version < "3.10"',
|
||||||
"importlib_resources ; python_version < '3.9'",
|
"importlib_resources ; python_version < '3.9'",
|
||||||
"Mako",
|
"Mako",
|
||||||
|
"packaging",
|
||||||
"progress",
|
"progress",
|
||||||
"python-configuration",
|
"python-configuration",
|
||||||
"typer",
|
"typer",
|
||||||
|
|
|
@ -26,8 +26,8 @@ Database Utilities
|
||||||
|
|
||||||
import uuid as _uuid
|
import uuid as _uuid
|
||||||
from importlib.metadata import version
|
from importlib.metadata import version
|
||||||
from packaging.version import Version
|
|
||||||
|
|
||||||
|
from packaging.version import Version
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy import orm
|
from sqlalchemy import orm
|
||||||
from sqlalchemy.dialects.postgresql import UUID as PGUUID
|
from sqlalchemy.dialects.postgresql import UUID as PGUUID
|
||||||
|
@ -69,7 +69,7 @@ class ModelBase: # pylint: disable=empty-docstring
|
||||||
raise KeyError(f"model instance has no attr with key: {key}")
|
raise KeyError(f"model instance has no attr with key: {key}")
|
||||||
|
|
||||||
|
|
||||||
class UUID(sa.types.TypeDecorator): # pylint: disable=abstract-method
|
class UUID(sa.types.TypeDecorator): # pylint: disable=abstract-method,too-many-ancestors
|
||||||
"""
|
"""
|
||||||
Platform-independent UUID type.
|
Platform-independent UUID type.
|
||||||
|
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -12,8 +12,9 @@ extras = tests
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
basepython = python3.11
|
basepython = python3.11
|
||||||
extras =
|
extras = db
|
||||||
deps = pylint
|
deps = pylint
|
||||||
|
prompt_toolkit
|
||||||
commands = pylint wuttjamaican
|
commands = pylint wuttjamaican
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue