Skip to content

Changing basic things like auth for api and laying out basic structure.

Codeac.io / Codeac Code Quality succeeded Oct 4, 2024 in 29s

Codeac Code Quality

This PR contains 2 errors and 30 warnings.

Annotations

Check warning on line 52 in Dockerfile

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

DL3008

Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`

Check warning on line 59 in Dockerfile

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

DL3013

Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`

Check warning on line 59 in Dockerfile

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

DL3042

Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`

Check warning on line 11 in tread/__init__.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

too-complex

'create_app' is too complex. The McCabe rating is 14

Check warning on line 13 in tread/__init__.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

redefined-outer-name

Redefining name 'app' from outer scope (line 66)

Check warning on line 49 in tread/config.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

singleton-comparison

Comparison 'self.SECRET_KEY == None' should be 'self.SECRET_KEY is None'

Check failure on line 57 in tread/config.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

no-member

Instance of 'str' has no 'exists' member

Check warning on line 63 in tread/config.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unspecified-encoding

Using open without explicitly specifying an encoding

Check warning on line 4 in tread/config.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused import random

Check warning on line 6 in tread/config.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused DEFAULT imported from unittest.mock

Check warning on line 37 in tread/database/user.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

bare-except

No exception type(s) specified

Check warning on line 4 in tread/database/user.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

wrong-import-order

standard import "import logging" should be placed before "from . import db"

Check failure on line 8 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

relative-beyond-top-level

Attempted relative import beyond top-level package

Check warning on line 58 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unreachable

Unreachable code

Check warning on line 75 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-argument

Unused argument 'user_id'

Check warning on line 81 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-argument

Unused argument 'user_id'

Check warning on line 87 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-argument

Unused argument 'user_id'

Check warning on line 4 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

wrong-import-order

standard import "import datetime" should be placed before "from flask import Blueprint, current_app, jsonify, request, make_response"

Check warning on line 5 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

wrong-import-order

standard import "import logging" should be placed before "from flask import Blueprint, current_app, jsonify, request, make_response"

Check warning on line 1 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused import email

Check warning on line 2 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused current_app imported from flask

Check warning on line 2 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused make_response imported from flask

Check warning on line 3 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused create_refresh_token imported from flask_jwt_extended

Check warning on line 3 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused current_user imported from flask_jwt_extended

Check warning on line 4 in tread/routes/api.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

unused-import

Unused import datetime