Skip to content

Commit

Permalink
#3 Fix pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Mar 21, 2024
1 parent 896bef5 commit f4e2258
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
disable=
broad-except,
consider-using-f-string,
duplicate-code,
line-too-long,
too-many-arguments,
too-many-branches,
Expand Down
6 changes: 3 additions & 3 deletions bin/generate_go.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def spaces_not_tabs():

OUTPUT_HEADER += f"// Generated date: {datetime.now(timezone.utc).isoformat()}\n"

# noqa: E101, R801
# noqa: E101
OUTPUT_HEADER += """
package g2error
Expand Down Expand Up @@ -114,7 +114,7 @@ def spaces_not_tabs():
// Note: The lists of G2ErrorTypeIds are from innermost error to outer most error.
// Example: #10 is G2RetryableError{G2RetryTimeoutExceededError{errors.New(message)}}
var G2ErrorTypes = map[int][]G2ErrorTypeIds{
""" # noqa: E101, W191, R801
""" # noqa: E101, W191

OUTPUT_FOOTER = """
}
Expand All @@ -135,7 +135,7 @@ def spaces_not_tabs():
G2UnknownDatasource,
G2Unrecoverable,
}
""" # noqa: E101,F541,W191,R801
""" # noqa: E101,F541,W191


with open(INPUT_FILE, encoding="utf-8") as input_file:
Expand Down
4 changes: 2 additions & 2 deletions bin/generate_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class G2UnhandledError(G2UnrecoverableError):
# -----------------------------------------------------------------------------
EXCEPTION_MAP = {
''' # noqa: E101, W191, R801
''' # noqa: E101, W191


OUTPUT_FOOTER = '''
Expand Down Expand Up @@ -309,7 +309,7 @@ def new_g2exception(
}
senzing_error_class = EXCEPTION_MAP.get(senzing_error_code, G2Error)
return senzing_error_class(json.dumps(message))
''' # noqa: E101,F541,W191,R801
''' # noqa: E101,F541,W191

with open(INPUT_FILE, encoding="utf-8") as input_file:
errors = json.load(input_file)
Expand Down

0 comments on commit f4e2258

Please sign in to comment.