Skip to content

Commit

Permalink
ruff changes compatible with black
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Apr 24, 2024
1 parent 599d7ab commit 40328ae
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
1 change: 0 additions & 1 deletion plugins/module_utils/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


class AWSErrorHandler:

"""_CUSTOM_EXCEPTION can be overridden by subclasses to customize the exception raised"""

_CUSTOM_EXCEPTION = AnsibleAWSError
Expand Down
16 changes: 12 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
[tool.black]
skip-string-normalization = false
line-length = 120
target-version = [ "py37", "py38",]
extend-exclude = "/(\n | plugins/module_utils/_version.py\n)/\n"
target-version = ['py37', 'py38']
extend-exclude = '''
/(
| plugins/module_utils/_version.py
)/
'''

[tool.darker]
revision = "origin/main.."
src = [ "plugins", "tests/unit", "tests/integration",]
src = [
"plugins",
"tests/unit",
"tests/integration",
]

[tool.isort]
profile = "black"
Expand Down Expand Up @@ -76,7 +84,7 @@ ignore = [
"N802", # Function name should be lowercase
"N818", # Exception name should be named with an Error suffix
"N803", # Argument name `keyId` should be lowercase
"N801", # Class name should use CapWords convention
"N801", # Class name should use CapWords convention
]

# Disable fix for unused imports (`F401`).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
(but without needing the OpenSSL CLI)
"""


import hashlib
import sys

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/amazon_placebo_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def placeboify(request, monkeypatch):
request.fspath.dirname,
"placebo_recordings",
request.fspath.basename.replace(".py", ""),
request.function.__name__
request.function.__name__,
# remove the test_ prefix from the function & file name
).replace("test_", "")

Expand Down

0 comments on commit 40328ae

Please sign in to comment.