fix: fix 'invalid-name' for pylint
This commit is contained in:
parent
a79f80b808
commit
3137f0a3da
3 changed files with 5 additions and 4 deletions
|
@ -5,6 +5,7 @@ disable=all
|
|||
enable=anomalous-backslash-in-string,
|
||||
dangerous-default-value,
|
||||
inconsistent-return-statements,
|
||||
invalid-name,
|
||||
redefined-argument-from-local,
|
||||
unspecified-encoding,
|
||||
unused-argument,
|
||||
|
|
|
@ -929,8 +929,8 @@ class AppHandler:
|
|||
|
||||
# registered via entry points
|
||||
registered = []
|
||||
for Handler in load_entry_points(f'{self.appname}.batch.{key}').values():
|
||||
spec = Handler.get_spec()
|
||||
for handler in load_entry_points(f'{self.appname}.batch.{key}').values():
|
||||
spec = handler.get_spec()
|
||||
if spec not in handlers:
|
||||
registered.append(spec)
|
||||
if registered:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# WuttJamaican -- Base package for Wutta Framework
|
||||
# Copyright © 2023 Lance Edgar
|
||||
# Copyright © 2023-2025 Lance Edgar
|
||||
#
|
||||
# This file is part of Wutta Framework.
|
||||
#
|
||||
|
@ -38,7 +38,7 @@ from sqlalchemy import orm
|
|||
Session = orm.sessionmaker()
|
||||
|
||||
|
||||
class short_session:
|
||||
class short_session: # pylint: disable=invalid-name
|
||||
"""
|
||||
Context manager for a short-lived database session.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue