Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: wrap/split long lines #281

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ ignore =
E203,
# W503: line break before binary operator
W503
per-file-ignores =
# some lines are longer than 88
src/insights_client/__init__.py: E501
integration-tests/test_unregister.py: E501
extend-exclude =
# default build directory
build/,
10 changes: 6 additions & 4 deletions src/insights_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def update_motd_message():
logger.debug("could not remove the MOTD file '%s': %s", MOTD_FILE, exc)
else:
logger.debug(
".registered or .unregistered exist; file '%s' correctly does not exist",
".registered or .unregistered exist; file '%s' correctly does "
"not exist",
MOTD_FILE,
)

Expand Down Expand Up @@ -450,7 +451,8 @@ def _main():
try:
from insights_client.constants import InsightsConstants
except ImportError:
# The source file is build from 'constants.py.in' and is not available during development
# The source file is build from 'constants.py.in' and is not
# available during development
class InsightsConstants(object):
version = "development"

Expand All @@ -461,8 +463,8 @@ class InsightsConstants(object):
if os.getuid() != 0:
sys.exit("Insights client must be run as root.")

# handle client instantiation here so that it isn't done multiple times in __init__
# The config can be passed now by parameter
# handle client instantiation here so that it isn't done multiple times
# in __init__; the config can be passed now by parameter
client = InsightsClient(config, False) # read config, but dont setup logging
logger.debug("InsightsClient initialized. Egg version: %s", client.version())

Expand Down
Loading