Skip to content

Commit

Permalink
Resolved some flake8 issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbywater committed Jan 21, 2024
1 parent df1397c commit 04ea1fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
exclude = .git,__pycache__,.eggs,*.egg,.pip-cache,.poetry,.venv,dist,*_pb2.py,*_pb2_grpc.py
max-line-length = 88
select = C,E,F,W,B,B950
ignore = C101, E203, E266, E501, W503, B027, E704, E231
ignore = C101, E203, E266, E501, W503, B027, E704, E231, E702,


# ignore = E203,E266,E501,W503,B907,E231
Expand Down
2 changes: 1 addition & 1 deletion eventsourcing/cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, environment: Environment):
"""
cipher_key = environment.get(self.CIPHER_KEY)
if not cipher_key:
raise EnvironmentError(f"'{self.CIPHER_KEY}' not set in env")
raise EnvironmentError(f"'{self.CIPHER_KEY}' not in env")
key = b64decode(cipher_key.encode("utf8"))
AESCipher.check_key_size(len(key))
self.key = key
Expand Down
2 changes: 1 addition & 1 deletion eventsourcing/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def construct_create_table_statements(self) -> List[str]:
(
"CREATE UNIQUE INDEX IF NOT EXISTS "
f"{self.notification_id_index_name}"
f"ON {self.events_table_name} (notification_id ASC);"
f"ON {self.events_table_name} (notification_id ASC)"
),
]
return statements
Expand Down
2 changes: 1 addition & 1 deletion eventsourcing/tests/postgres_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def pg_close_all_connections(


def drop_postgres_table(datastore: PostgresDatastore, table_name):
statement = f"DROP TABLE {table_name};"
statement = f"DROP TABLE {table_name}"
try:
with datastore.transaction(commit=True) as curs:
curs.execute(statement)
Expand Down

0 comments on commit 04ea1fe

Please sign in to comment.