Skip to content

Commit

Permalink
Fix new flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leodube-aot committed Jan 31, 2024
1 parent 8a0f7aa commit 394ff05
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion queue_services/entity-auth/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exclude_dirs = [".venv","tests"]
skips = ["B104"]

[tool.flake8]
ignore = ["F401","E402", "Q000", "E203"]
ignore = ["F401","E402", "Q000", "E203", "W503"]
exclude = [
".venv",
".git",
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-bn/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exclude_dirs = [".venv","tests"]
skips = ["B104"]

[tool.flake8]
ignore = ["F401","E402", "Q000", "E203"]
ignore = ["F401","E402", "Q000", "E203", "W503"]
exclude = [
".venv",
".git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from entity_bn.bn_processors import bn_note
from tests.unit import create_filing, create_registration_data, get_json_message

message_type = f"bc.registry.business."
message_type = "bc.registry.business."


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-emailer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exclude_dirs = [".venv","tests"]
skips = ["B104"]

[tool.flake8]
ignore = ["F401","E402", "Q000", "E203"]
ignore = ["F401","E402", "Q000", "E203", "W503"]
exclude = [
".venv",
".git",
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-emailer/tests/unit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def nested_session(session):
sess = session.begin_nested()
yield sess
sess.rollback()
except:
except: # noqa: E722
pass
finally:
pass
2 changes: 1 addition & 1 deletion queue_services/entity-filer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exclude_dirs = [".venv","tests"]
skips = ["B104"]

[tool.flake8]
ignore = ["F401","E402", "Q000", "E203"]
ignore = ["F401","E402", "Q000", "E203", "W503"]
exclude = [
".venv",
".git",
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-pay/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exclude_dirs = [".venv","tests"]
skips = ["B104"]

[tool.flake8]
ignore = ["F401","E402", "Q000", "E203"]
ignore = ["F401","E402", "Q000", "E203", "W503"]
exclude = [
".venv",
".git",
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-pay/tests/unit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def nested_session(session):
sess = session.begin_nested()
yield sess
sess.rollback()
except:
except: # noqa: E722
pass
finally:
pass
2 changes: 1 addition & 1 deletion queue_services/entity-pay/tests/unit/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from legal_api.models import Filing
from simple_cloudevent import SimpleCloudEvent, to_queue_message

from entity_pay.resources.worker import get_filing_by_payment_id, get_payment_token
from entity_pay.resources.worker import get_payment_token
from tests.unit import create_filing, create_legal_entity, nested_session


Expand Down

0 comments on commit 394ff05

Please sign in to comment.