-
Notifications
You must be signed in to change notification settings - Fork 4
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
RM-17-fix-flake-8-violations #182
Changes from all commits
274b76e
794a334
db71d18
9796bb7
4b1dc54
440d9f8
cd60d8c
e80f1ef
febc6b1
a31955b
d2a4563
4c6b0af
8233318
ccf1da0
83afbf5
8879798
de0425e
6f15701
a9543b8
8ec8e84
b98e9d2
83494b1
36db0a4
2646859
d964cbc
142366f
0eac97c
6a52ad7
5157898
ca6094b
83f9b86
d82d95b
41ceb87
585118f
d702ecd
134a09d
0c81d2c
7bf9b0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1135 | ||
1137 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
166 | ||
9 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ def set_grant_permissions_for_users(self, schema_name: str, table: str, | |
def supports_time_type(self) -> bool: | ||
return True | ||
|
||
def type_for_date_plus_time(self, has_tz: bool=False) -> sqlalchemy.sql.sqltypes.DateTime: | ||
def type_for_date_plus_time(self, has_tz: bool = False) -> sqlalchemy.sql.sqltypes.DateTime: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From what I've seen so far the original codebase more commonly uses the first option, with no extra space (my personal preference as well), but not a big deal. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed stylistically but triggering flake8 so 🤷 |
||
"""Different DB vendors have different names for a date, a time, and | ||
an optional timezone""" | ||
return sqlalchemy.sql.sqltypes.DateTime(timezone=has_tz) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't exactly understand how these are used but why is this such a large numerical change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So these "high water marks" are the number of violations there were of a particular protocol. In this case, we had 166 Flake8 violations and brought them down to 9. I mostly did this through using
autopep8
then hand correcting some of the other errors. We still have 9 flake8 errors remaining... but those are from "too high complexity" which is more than I wanted to take on in a single PR.