Remove redundant NoAPIKeyError handling #89
reviewdog [flake8] report
reported by reviewdog 🐶
Findings (90)
middleware/security.py|14 col 1| Missing docstring in public class
middleware/security.py|18 col 1| Missing docstring in public class
middleware/security.py|22 col 1| Missing docstring in public class
middleware/security.py|26 col 1| Missing docstring in public class
middleware/security.py|68 col 1| Missing docstring in public function
middleware/security.py|77 col 1| Missing docstring in public function
middleware/security.py|77 col 1| too many blank lines (3)
middleware/security.py|91 col 1| Missing docstring in public function
middleware/security.py|93 col 9| f-string is missing placeholders
middleware/security.py|105 col 1| Missing docstring in public function
middleware/security.py|106 col 20| f-string is missing placeholders
middleware/security.py|113 col 1| Missing docstring in public function
middleware/security.py|114 col 20| f-string is missing placeholders
middleware/security.py|118 col 1| Missing docstring in public function
middleware/security.py|122 col 1| Missing docstring in public class
middleware/security.py|124 col 1| Missing docstring in init
middleware/security.py|129 col 1| 1 blank line required between summary line and description
middleware/security.py|129 col 1| First line should be in imperative mood
middleware/security.py|151 col 1| 1 blank line required between summary line and description
middleware/security.py|151 col 1| First line should be in imperative mood
tests/helper_functions.py|274 col 1| Missing docstring in public function
tests/helper_functions.py|274 col 1| expected 2 blank lines, found 1
tests/middleware/test_security.py|1 col 1| Missing docstring in public module
tests/middleware/test_security.py|8 col 1| 'unittest.mock.patch' imported but unused
tests/middleware/test_security.py|10 col 1| 'requests' imported but unused
tests/middleware/test_security.py|14 col 1| 'middleware.custom_exceptions.UserNotFoundError' imported but unused
tests/middleware/test_security.py|16 col 1| 'middleware.security.APIKeyStatus' imported but unused
tests/middleware/test_security.py|16 col 1| 'middleware.security.NoAPIKeyError' imported but unused
tests/middleware/test_security.py|31 col 1| 'tests.fixtures.dev_db_connection' imported but unused
tests/middleware/test_security.py|34 col 1| Missing docstring in public function
tests/middleware/test_security.py|34 col 56| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|44 col 1| Missing docstring in public function
tests/middleware/test_security.py|44 col 60| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|53 col 1| Missing docstring in public function
tests/middleware/test_security.py|53 col 65| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|62 col 1| Missing docstring in public function
tests/middleware/test_security.py|62 col 32| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|71 col 9| local variable 'result' is assigned to but never used
tests/middleware/test_security.py|74 col 1| Missing docstring in public function
tests/middleware/test_security.py|74 col 40| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|84 col 1| Missing docstring in public function
tests/middleware/test_security.py|84 col 48| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|89 col 9| f-string is missing placeholders
tests/middleware/test_security.py|97 col 1| Missing docstring in public function
tests/middleware/test_security.py|97 col 41| Unused argument 'dev_db_connection'
tests/middleware/test_security.py|97 col 41| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|100 col 9| local variable 'result' is assigned to but never used
tests/middleware/test_security.py|104 col 1| Missing docstring in public function
tests/middleware/test_security.py|104 col 54| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|109 col 9| f-string is missing placeholders
tests/middleware/test_security.py|114 col 9| local variable 'result' is assigned to but never used
tests/middleware/test_security.py|118 col 1| Missing docstring in public function
tests/middleware/test_security.py|118 col 48| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|124 col 9| local variable 'result' is assigned to but never used
tests/middleware/test_security.py|128 col 1| Missing docstring in public function
tests/middleware/test_security.py|128 col 44| redefinition of unused 'dev_db_connection' from line 31
tests/middleware/test_security.py|137 col 1| expected 2 blank lines, found 1
tests/middleware/test_security.py|138 col 1| Missing docstring in public function
tests/middleware/test_security.py|144 col 1| Missing docstring in public function
tests/middleware/test_security.py|149 col 1| Missing docstring in public function
tests/middleware/test_security.py|156 col 1| Missing docstring in public function
tests/middleware/test_security.py|163 col 1| Missing docstring in public function
tests/middleware/test_security.py|171 col 1| Missing docstring in public function
tests/middleware/test_security.py|172 col 10| Unused argument 'client'
tests/middleware/test_security.py|172 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|180 col 1| Missing docstring in public function
tests/middleware/test_security.py|181 col 10| Unused argument 'client'
tests/middleware/test_security.py|181 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|189 col 1| Missing docstring in public function
tests/middleware/test_security.py|190 col 10| Unused argument 'client'
tests/middleware/test_security.py|190 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|201 col 1| Missing docstring in public function
tests/middleware/test_security.py|202 col 10| Unused argument 'client'
tests/middleware/test_security.py|202 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|202 col 40| Unused argument 'mock_validate_api_key'
tests/middleware/test_security.py|212 col 1| Missing docstring in public function
tests/middleware/test_security.py|213 col 10| Unused argument 'client'
tests/middleware/test_security.py|213 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|226 col 1| Missing docstring in public function
tests/middleware/test_security.py|227 col 10| Unused argument 'client'
tests/middleware/test_security.py|227 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|227 col 40| Unused argument 'mock_validate_api_key'
tests/middleware/test_security.py|237 col 1| Missing docstring in public function
tests/middleware/test_security.py|238 col 10| Unused argument 'client'
tests/middleware/test_security.py|238 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|238 col 40| Unused argument 'mock_validate_api_key'
tests/middleware/test_security.py|248 col 1| Missing docstring in public function
tests/middleware/test_security.py|249 col 10| Unused argument 'client'
tests/middleware/test_security.py|249 col 18| Unused argument 'mock_request_headers'
tests/middleware/test_security.py|249 col 40| Unused argument 'mock_validate_api_key'
Filtered Findings (571)
app.py|1 col 1| Missing docstring in public module
app.py|24 col 1| Missing docstring in public function
app.py|28 col 1| Missing docstring in public function
conftest.py|1 col 1| Missing docstring in public module
conftest.py|17 col 1| Missing docstring in public function
conftest.py|32 col 1| Missing docstring in public function
gunicorn_config.py|1 col 1| Missing docstring in public module
middleware/init.py|1 col 1| Missing docstring in public package
middleware/access_token_logic.py|1 col 1| Missing docstring in public module
middleware/access_token_logic.py|5 col 1| Missing docstring in public function
middleware/access_token_logic.py|9 col 9| f-string is missing placeholders
middleware/archives_queries.py|1 col 1| Missing docstring in public module
middleware/archives_queries.py|1 col 1| 'typing.Tuple' imported but unused
middleware/archives_queries.py|15 col 1| First line should end with a period
middleware/archives_queries.py|15 col 1| First line should be in imperative mood
middleware/archives_queries.py|42 col 1| First line should be in imperative mood
middleware/archives_queries.py|62 col 1| First line should be in imperative mood
middleware/archives_queries.py|86 col 1| First line should be in imperative mood
middleware/custom_exceptions.py|1 col 1| Missing docstring in public module
middleware/custom_exceptions.py|4 col 1| Missing docstring in init
middleware/data_source_queries.py|1 col 1| Missing docstring in public module
middleware/data_source_queries.py|1 col 1| 'typing.List' imported but unused
middleware/data_source_queries.py|1 col 1| 'typing.Tuple' imported but unused
middleware/data_source_queries.py|4 col 1| 'sqlalchemy.dialects.postgresql.psycopg2' imported but unused
middleware/data_source_queries.py|95 col 1| Missing docstring in public function
middleware/data_source_queries.py|107 col 1| Missing docstring in public function
middleware/data_source_queries.py|116 col 1| Missing docstring in public function
middleware/data_source_queries.py|130 col 1| First line should be in imperative mood
middleware/data_source_queries.py|178 col 1| First line should end with a period
middleware/data_source_queries.py|178 col 1| First line should be in imperative mood
middleware/data_source_queries.py|203 col 1| First line should be in imperative mood
middleware/data_source_queries.py|240 col 1| One-line docstring should fit on one line with quotes
middleware/data_source_queries.py|240 col 1| First line should end with a period
middleware/data_source_queries.py|240 col 1| First line should be in imperative mood
middleware/data_source_queries.py|264 col 1| One-line docstring should fit on one line with quotes
middleware/data_source_queries.py|264 col 1| First line should end with a period
middleware/data_source_queries.py|264 col 1| First line should be in imperative mood
middleware/data_source_queries.py|299 col 1| 1 blank line required between summary line and description
middleware/data_source_queries.py|299 col 1| First line should end with a period
middleware/initialize_psycopg2_connection.py|1 col 1| Missing docstring in public module
middleware/initialize_psycopg2_connection.py|4 col 1| 'typing.Union' imported but unused
middleware/initialize_psycopg2_connection.py|4 col 1| 'typing.Dict' imported but unused
middleware/initialize_psycopg2_connection.py|4 col 1| 'typing.List' imported but unused
middleware/initialize_psycopg2_connection.py|8 col 1| One-line docstring should fit on one line with quotes
middleware/initialize_psycopg2_connection.py|12 col 1| Missing docstring in init
middleware/initialize_psycopg2_connection.py|18 col 1| 1 blank line required between summary line and description
middleware/initialize_psycopg2_connection.py|18 col 1| First line should end with a period
middleware/initialize_psycopg2_connection.py|18 col 1| First line should be in imperative mood
middleware/login_queries.py|1 col 1| Missing docstring in public module
middleware/login_queries.py|2 col 1| 'datetime.datetime as dt' imported but unused
middleware/login_queries.py|14 col 1| First line should be in imperative mood
middleware/login_queries.py|22 col 9| f-string is missing placeholders
middleware/login_queries.py|35 col 1| First line should be in imperative mood
middleware/login_queries.py|42 col 20| f-string is missing placeholders
middleware/login_queries.py|54 col 1| First line should be in imperative mood
middleware/login_queries.py|70 col 9| f-string is missing placeholders
middleware/login_queries.py|81 col 1| First line should be in imperative mood
middleware/login_queries.py|88 col 20| f-string is missing placeholders
middleware/login_queries.py|95 col 1| Missing docstring in public function
middleware/models.py|1 col 1| Missing docstring in public module
middleware/models.py|17 col 1| Missing docstring in public class
middleware/quick_search_query.py|1 col 1| Missing docstring in public module
middleware/quick_search_query.py|3 col 1| 'datetime' imported but unused
middleware/quick_search_query.py|6 col 1| 'sqlalchemy.dialects.postgresql.psycopg2' imported but unused
middleware/quick_search_query.py|66 col 1| First line should be in imperative mood
middleware/quick_search_query.py|84 col 1| First line should be in imperative mood
middleware/quick_search_query.py|115 col 1| First line should be in imperative mood
middleware/quick_search_query.py|124 col 8| do not compare types, for exact checks use is
/ is not
, for instance checks use isinstance()
middleware/quick_search_query.py|167 col 1| Missing docstring in public function
middleware/quick_search_query.py|178 col 13| line break before binary operator
middleware/quick_search_query.py|179 col 13| line break before binary operator
middleware/quick_search_query.py|180 col 13| line break before binary operator
middleware/quick_search_query.py|181 col 13| line break before binary operator
middleware/quick_search_query.py|182 col 13| line break before binary operator
middleware/reset_token_queries.py|1 col 1| Missing docstring in public module
middleware/reset_token_queries.py|8 col 1| First line should be in imperative mood
middleware/reset_token_queries.py|16 col 9| f-string is missing placeholders
middleware/reset_token_queries.py|29 col 1| First line should be in imperative mood
middleware/reset_token_queries.py|37 col 9| f-string is missing placeholders
middleware/reset_token_queries.py|44 col 1| First line should be in imperative mood
middleware/reset_token_queries.py|52 col 9| f-string is missing placeholders
middleware/security.py|1 col 1| Missing docstring in public module
middleware/security.py|31 col 1| No blank lines allowed after function docstring
middleware/security.py|31 col 1| First line should be in imperative mood
middleware/security.py|171 col 1| 1 blank line required between summary line and description
middleware/security.py|171 col 1| First line should end with a period
middleware/security.py|171 col 1| First line should be in imperative mood; try rephrasing
middleware/token_management.py|1 col 1| Missing docstring in public module
middleware/token_management.py|5 col 1| Missing docstring in public function
middleware/token_management.py|9 col 9| f-string is missing placeholders
middleware/user_queries.py|1 col 1| Missing docstring in public module
middleware/user_queries.py|9 col 1| First line should be in imperative mood
middleware/user_queries.py|16 col 20| f-string is missing placeholders
middleware/user_queries.py|24 col 1| First line should be in imperative mood
middleware/user_queries.py|33 col 9| f-string is missing placeholders
middleware/webhook_logic.py|1 col 1| Missing docstring in public module
middleware/webhook_logic.py|1 col 1| 'json' imported but unused
middleware/webhook_logic.py|7 col 1| Missing docstring in public function
regular_api_checks.py|1 col 1| Missing docstring in public module
regular_api_checks.py|12 col 1| Missing docstring in public function
regular_api_checks.py|22 col 1| Missing docstring in public function
regular_api_checks.py|32 col 1| Missing docstring in public function
regular_api_checks.py|42 col 1| Missing docstring in public function
regular_api_checks.py|52 col 1| Missing docstring in public function
regular_api_checks.py|62 col 1| Missing docstring in public function
regular_api_checks.py|73 col 1| Missing docstring in public function
regular_api_checks.py|82 col 1| Missing docstring in public function
regular_api_checks.py|88 col 1| Missing docstring in public function
regular_api_checks.py|95 col 28| comparison to True should be 'if cond is True:' or 'if cond:'
regular_api_checks.py|98 col 1| Missing docstring in public function
regular_api_checks.py|108 col 1| Missing docstring in public function
regular_api_checks.py|114 col 9| line break before binary operator
regular_api_checks.py|118 col 1| Missing docstring in public function
regular_api_checks.py|127 col 1| Missing docstring in public function
regular_api_checks.py|134 col 1| Missing docstring in public function
regular_api_checks.py|140 col 1| Missing docstring in public function
regular_api_checks.py|148 col 1| Missing docstring in public function
regular_api_checks.py|158 col 1| Missing docstring in public function
regular_api_checks.py|169 col 1| Missing docstring in public function
regular_api_checks.py|179 col 1| Missing docstring in public function
regular_api_checks.py|194 col 1| Missing docstring in public function
regular_api_checks.py|210 col 1| Missing docstring in public function
regular_api_checks.py|227 col 1| Missing docstring in public function
regular_api_checks.py|238 col 1| Missing docstring in public function
regular_api_checks.py|244 col 1| Missing docstring in public function
regular_api_checks.py|262 col 1| Missing docstring in public function
regular_api_checks.py|281 col 1| Missing docstring in public function
regular_api_checks.py|287 col 1| Missing docstring in public function
regular_api_checks.py|294 col 1| Missing docstring in public function
regular_api_checks.py|325 col 30| comparison to True should be 'if cond is True:' or 'if cond:'
resources/Agencies.py|1 col 1| Missing docstring in public module
resources/Agencies.py|42 col 1| First line should be in imperative mood
resources/ApiKey.py|1 col 1| Missing docstring in public module
resources/ApiKey.py|15 col 1| First line should be in imperative mood
resources/Archives.py|1 col 1| Missing docstring in public module
resources/Archives.py|16 col 1| One-line docstring should fit on one line with quotes
resources/Archives.py|23 col 1| First line should be in imperative mood
resources/Archives.py|40 col 1| First line should be in imperative mood
resources/DataSources.py|1 col 1| Missing docstring in public module
resources/DataSources.py|18 col 1| 1 blank line required between summary line and description
resources/DataSources.py|26 col 1| First line should be in imperative mood
resources/DataSources.py|40 col 1| First line should be in imperative mood
resources/DataSources.py|63 col 20| do not compare types, for exact checks use is
/ is not
, for instance checks use isinstance()
resources/DataSources.py|84 col 1| 1 blank line required between summary line and description
resources/DataSources.py|92 col 1| First line should be in imperative mood
resources/DataSources.py|103 col 1| First line should be in imperative mood
resources/DataSources.py|125 col 20| do not compare types, for exact checks use is
/ is not
, for instance checks use isinstance()
resources/DataSources.py|144 col 1| Missing docstring in public class
resources/DataSources.py|148 col 1| Missing docstring in public method
resources/DataSources.py|162 col 1| 1 blank line required between summary line and description
resources/DataSources.py|170 col 1| First line should be in imperative mood
resources/Login.py|1 col 1| Missing docstring in public module
resources/Login.py|8 col 1| One-line docstring should fit on one line with quotes
resources/Login.py|14 col 1| 1 blank line required between summary line and description
resources/Login.py|14 col 1| First line should end with a period
resources/Login.py|14 col 1| First line should be in imperative mood
resources/PsycopgResource.py|1 col 1| Missing docstring in public module
resources/PsycopgResource.py|11 col 1| First line should be in imperative mood; try rephrasing
resources/PsycopgResource.py|45 col 1| Missing docstring in public class
resources/PsycopgResource.py|47 col 1| 1 blank line required between summary line and description
resources/PsycopgResource.py|47 col 1| First line should be in imperative mood
resources/QuickSearch.py|1 col 1| Missing docstring in public module
resources/QuickSearch.py|10 col 1| 1 blank line required between summary line and description
resources/QuickSearch.py|10 col 1| First line should end with a period
resources/QuickSearch.py|19 col 1| 1 blank line required between summary line and description
resources/QuickSearch.py|19 col 1| First line should end with a period
resources/QuickSearch.py|19 col 1| First line should be in imperative mood
resources/RefreshSession.py|1 col 1| Missing docstring in public module
resources/RefreshSession.py|11 col 1| 1 blank line required between summary line and description
resources/RefreshSession.py|18 col 1| 1 blank line required between summary line and description
resources/RefreshSession.py|18 col 1| First line should end with a period
resources/RefreshSession.py|18 col 1| First line should be in imperative mood
resources/RequestResetPassword.py|1 col 1| Missing docstring in public module
resources/RequestResetPassword.py|13 col 1| 1 blank line required between summary line and description
resources/RequestResetPassword.py|13 col 1| First line should end with a period
resources/RequestResetPassword.py|20 col 1| 1 blank line required between summary line and description
resources/RequestResetPassword.py|20 col 1| First line should end with a period
resources/RequestResetPassword.py|20 col 1| First line should be in imperative mood
resources/RequestResetPassword.py|31 col 9| local variable 'id' is assigned to but never used
resources/RequestResetPassword.py|37 col 9| local variable 'r' is assigned to but never used
resources/ResetPassword.py|1 col 1| Missing docstring in public module
resources/ResetPassword.py|14 col 1| 1 blank line required between summary line and description
resources/ResetPassword.py|21 col 1| 1 blank line required between summary line and description
resources/ResetPassword.py|21 col 1| First line should end with a period
resources/ResetPassword.py|21 col 1| First line should be in imperative mood
resources/ResetTokenValidation.py|1 col 1| Missing docstring in public module
resources/ResetTokenValidation.py|10 col 1| Missing docstring in public class
... (Too many findings. Dropped some findings)
Annotations
Check warning on line 14 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L14 <101>
Missing docstring in public class
Raw output
./middleware/security.py:14:1: D101 Missing docstring in public class
Check warning on line 18 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L18 <101>
Missing docstring in public class
Raw output
./middleware/security.py:18:1: D101 Missing docstring in public class
Check warning on line 22 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L22 <101>
Missing docstring in public class
Raw output
./middleware/security.py:22:1: D101 Missing docstring in public class
Check warning on line 26 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L26 <101>
Missing docstring in public class
Raw output
./middleware/security.py:26:1: D101 Missing docstring in public class
Check warning on line 68 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L68 <103>
Missing docstring in public function
Raw output
./middleware/security.py:68:1: D103 Missing docstring in public function
Check warning on line 77 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L77 <103>
Missing docstring in public function
Raw output
./middleware/security.py:77:1: D103 Missing docstring in public function
Check failure on line 77 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L77 <303>
too many blank lines (3)
Raw output
./middleware/security.py:77:1: E303 too many blank lines (3)
Check warning on line 91 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L91 <103>
Missing docstring in public function
Raw output
./middleware/security.py:91:1: D103 Missing docstring in public function
Check warning on line 93 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L93 <541>
f-string is missing placeholders
Raw output
./middleware/security.py:93:9: F541 f-string is missing placeholders
Check warning on line 105 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L105 <103>
Missing docstring in public function
Raw output
./middleware/security.py:105:1: D103 Missing docstring in public function
Check warning on line 106 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L106 <541>
f-string is missing placeholders
Raw output
./middleware/security.py:106:20: F541 f-string is missing placeholders
Check warning on line 113 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L113 <103>
Missing docstring in public function
Raw output
./middleware/security.py:113:1: D103 Missing docstring in public function
Check warning on line 114 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L114 <541>
f-string is missing placeholders
Raw output
./middleware/security.py:114:20: F541 f-string is missing placeholders
Check warning on line 118 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L118 <103>
Missing docstring in public function
Raw output
./middleware/security.py:118:1: D103 Missing docstring in public function
Check warning on line 122 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L122 <101>
Missing docstring in public class
Raw output
./middleware/security.py:122:1: D101 Missing docstring in public class
Check warning on line 124 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L124 <107>
Missing docstring in __init__
Raw output
./middleware/security.py:124:1: D107 Missing docstring in __init__
Check warning on line 129 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L129 <205>
1 blank line required between summary line and description
Raw output
./middleware/security.py:129:1: D205 1 blank line required between summary line and description
Check warning on line 129 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L129 <401>
First line should be in imperative mood
Raw output
./middleware/security.py:129:1: D401 First line should be in imperative mood
Check warning on line 151 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L151 <205>
1 blank line required between summary line and description
Raw output
./middleware/security.py:151:1: D205 1 blank line required between summary line and description
Check warning on line 151 in middleware/security.py
github-actions / flake8
[flake8] middleware/security.py#L151 <401>
First line should be in imperative mood
Raw output
./middleware/security.py:151:1: D401 First line should be in imperative mood
Check warning on line 274 in tests/helper_functions.py
github-actions / flake8
[flake8] tests/helper_functions.py#L274 <103>
Missing docstring in public function
Raw output
./tests/helper_functions.py:274:1: D103 Missing docstring in public function
Check failure on line 274 in tests/helper_functions.py
github-actions / flake8
[flake8] tests/helper_functions.py#L274 <302>
expected 2 blank lines, found 1
Raw output
./tests/helper_functions.py:274:1: E302 expected 2 blank lines, found 1
Check warning on line 1 in tests/middleware/test_security.py
github-actions / flake8
[flake8] tests/middleware/test_security.py#L1 <100>
Missing docstring in public module
Raw output
./tests/middleware/test_security.py:1:1: D100 Missing docstring in public module
Check warning on line 8 in tests/middleware/test_security.py
github-actions / flake8
[flake8] tests/middleware/test_security.py#L8 <401>
'unittest.mock.patch' imported but unused
Raw output
./tests/middleware/test_security.py:8:1: F401 'unittest.mock.patch' imported but unused
Check warning on line 10 in tests/middleware/test_security.py
github-actions / flake8
[flake8] tests/middleware/test_security.py#L10 <401>
'requests' imported but unused
Raw output
./tests/middleware/test_security.py:10:1: F401 'requests' imported but unused