lucyparsons / OpenOversight

Police oversight and accountability through public data 👮
https://openoversight.com
GNU General Public License v3.0
237 stars 79 forks source link

Br/lint #1075

Closed brrusselburg closed 5 months ago

brrusselburg commented 10 months ago

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


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 ':'```
michplunkett commented 5 months ago

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