Added some enhancements. #978
Annotations
50 errors and 1 warning
server/cshr/celery/send_email.py#L11
'os' imported but unused (F401)
|
server/cshr/celery/send_email.py#L190
Do not use bare 'except' (E722)
|
server/cshr/models/users.py#L54
At least two spaces before inline comment (E261)
|
server/cshr/models/users.py#L72
Expected 2 blank lines, found 1 (E302)
|
server/cshr/models/vacations.py#L8
'django.core.exceptions.ValidationError' imported but unused (F401)
|
server/cshr/models/vacations.py#L63
Expected 2 blank lines, found 1 (E302)
|
server/cshr/serializers/event.py#L4
'server.cshr.serializers.users.BaseUserSerializer' imported but unused (F401)
|
server/cshr/serializers/public_holidays.py#L15
Blank line contains whitespace (W293)
|
server/cshr/serializers/public_holidays.py#L17
Indentation is not a multiple of 4 (E111)
|
server/cshr/serializers/users.py#L358
Blank line contains whitespace (W293)
|
server/cshr/serializers/vacations.py#L11
Expected 2 blank lines, found 1 (E302)
|
server/cshr/serializers/vacations.py#L122
Expected 2 blank lines, found 1 (E302)
|
server/cshr/serializers/vacations.py#L126
Expected 2 blank lines, found 1 (E302)
|
server/cshr/services/landing_page.py#L3
'json' imported but unused (F401)
|
server/cshr/services/office.py#L13
Expected 2 blank lines, found 1 (E302)
|
server/cshr/services/public_holidays.py#L9
Indentation is not a multiple of 4 (E111)
|
server/cshr/services/public_holidays.py#L12
Indentation is not a multiple of 4 (E111)
|
server/cshr/services/public_holidays.py#L13
Indentation is not a multiple of 4 (E111)
|
server/cshr/services/public_holidays.py#L15
Expected 2 blank lines, found 1 (E302)
|
server/cshr/services/public_holidays.py#L16
Indentation is not a multiple of 4 (E111)
|
server/cshr/services/public_holidays.py#L19
Indentation is not a multiple of 4 (E111)
|
server/cshr/services/public_holidays.py#L20
Indentation is not a multiple of 4 (E111)
|
server/cshr/services/public_holidays.py#L24
No newline at end of file (W292)
|
server/cshr/services/users.py#L77
Expected 2 blank lines, found 1 (E302)
|
server/cshr/services/vacations.py#L16
Unexpected spaces around keyword / parameter equals (E251)
|
server/cshr/services/vacations.py#L16
Unexpected spaces around keyword / parameter equals (E251)
|
server/cshr/services/vacations.py#L17
Unexpected spaces around keyword / parameter equals (E251)
|
server/cshr/services/vacations.py#L17
Unexpected spaces around keyword / parameter equals (E251)
|
server/cshr/utils/dummy_data.py#L37
Expected 2 blank lines, found 1 (E302)
|
server/cshr/utils/dummy_data.py#L38
Indentation is not a multiple of 4 (E111)
|
server/cshr/utils/dummy_data.py#L43
No newline at end of file (W292)
|
server/cshr/utils/parse_date.py#L7
Expected 2 blank lines, found 1 (E302)
|
server/cshr/utils/parse_date.py#L10
Blank line contains whitespace (W293)
|
server/cshr/utils/parse_date.py#L15
Blank line contains whitespace (W293)
|
server/cshr/utils/parse_date.py#L18
Expected 2 blank lines, found 1 (E302)
|
server/cshr/utils/parse_date.py#L65
Do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` (E721)
|
server/cshr/utils/redis_functions.py#L11
'os' imported but unused (F401)
|
server/cshr/utils/redis_functions.py#L25
Do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` (E721)
|
server/cshr/utils/vacation_balance_helper.py#L11
'server.cshr.utils.parse_date.get_dates_between_two_dates' imported but unused (F401)
|
server/cshr/utils/vacation_balance_helper.py#L41
Do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` (E721)
|
server/cshr/utils/vacation_balance_helper.py#L57
Do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` (E721)
|
server/cshr/utils/vacation_balance_helper.py#L151
Blank line contains whitespace (W293)
|
server/cshr/utils/vacation_balance_helper.py#L158
Blank line contains whitespace (W293)
|
server/cshr/views/event.py#L31
Do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` (E721)
|
server/cshr/views/meetings.py#L35
Do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` (E721)
|
server/cshr/views/users.py#L6
'server.cshr.api.permission.IsUser' imported but unused (F401)
|
server/cshr/views/users.py#L12
'server.cshr.services.office.get_office_by_name' imported but unused (F401)
|
server/cshr/views/users.py#L146
Expected 2 blank lines, found 1 (E302)
|
server/cshr/views/users.py#L206
Whitespace after '[' (E201)
|
server/cshr/views/users.py#L206
Whitespace before ']' (E202)
|
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|