Skip to content
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

Br/lint #1075

Closed
wants to merge 4 commits into from
Closed

Br/lint #1075

wants to merge 4 commits into from

Conversation

brrusselburg
Copy link
Contributor

@brrusselburg brrusselburg commented Nov 21, 2023

Description of Changes

This may be heavy-handed, so feel free to nix. I threw E231 into the lint ignore, because there were a ton of "Missing whitespace after :" lint errors (pasted below for context, they pass now).

Tests and linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.
OpenOversight/app/commands.py:423:45: E231 missing whitespace after ':'
OpenOversight/app/commands.py:424:55: E231 missing whitespace after ':'
OpenOversight/app/commands.py:431:63: E231 missing whitespace after ':'
OpenOversight/app/commands.py:432:69: E231 missing whitespace after ':'
OpenOversight/app/filters.py:92:20: E231 missing whitespace after ':'
OpenOversight/app/filters.py:92:21: E231 missing whitespace after ','
OpenOversight/app/filters.py:96:21: E231 missing whitespace after ':'
OpenOversight/app/filters.py:96:22: E231 missing whitespace after ','
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:31:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:31:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:38:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:38:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:48:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:48:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:55:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:55:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:64:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:64:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:71:40: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:71:41: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:82:40: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:82:41: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:88:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:88:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:97:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:97:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:104:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:104:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:113:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:113:43: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:120:42: E231 missing whitespace after ':'
OpenOversight/migrations/versions/2023-07-19-1638_1931b987ce0d_convert_timestamp_to_timestamptz.py:120:43: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:30:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:30:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:64:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:64:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:76:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:76:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:100:15: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:100:27: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:117:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:117:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:126:15: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:126:27: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:142:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:142:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:160:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:160:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:179:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:179:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:194:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:194:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:214:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:214:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:223:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:223:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:243:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:243:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:271:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:271:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:277:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:277:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:295:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:295:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:318:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:318:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:326:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:326:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:342:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:342:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:354:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:354:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:369:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:369:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:379:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:379:35: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:383:23: E231 missing whitespace after ':'
OpenOversight/tests/test_functional.py:383:35: E231 missing whitespace after ':'
tasks.py:116:48: E231 missing whitespace after ':'
tasks.py:154:148: E231 missing whitespace after ':'```

<!-- New Contributor? Welcome!

We recommend you check your privacy settings, so the name and email
associated with
the commits are what you want them to be. See the contribution guide at

https://github.com/lucyparsons/OpenOversight/blob/develop/CONTRIB.md#recommended-privacy-settings
for more infos.

Also make sure you have read and abide by the code of conduct:

https://github.com/lucyparsons/OpenOversight/blob/develop/CODE_OF_CONDUCT.md

If this pull request is not ready for review yet, please submit it as a
draft.
-->
lucyparsons#969

Removes the H021 tag and does the relevant clean-up. In this case,
inline styles are refactored into external CSS via pre-existing
stylesheets.

Unsure of the CSS class names, very open to changes. One in particular I
really disliked, but left a note-to-self. Historically more of a
back-end dev, so apologies if I missed something obvious with these
changes!

 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.

(`pre-commit` technically fails on some .py files and migrations, but
none of the new changes it seems)
@michplunkett
Copy link
Collaborator

It looks like this is no longer an issue, so we can close it. I appreciate you checking it tho!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants