Skip to content

Fix conflict error. #983

Fix conflict error.

Fix conflict error. #983

Triggered via push November 5, 2023 12:46
Status Success
Total duration 21s
Artifacts

lint.yml

on: push
Run linters
11s
Run linters
Fit to window
Zoom out
Zoom in

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#L13
Expected 2 blank lines, found 1 (E302)
server/cshr/models/users.py#L56
At least two spaces before inline comment (E261)
server/cshr/models/users.py#L74
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#L14
Expected 2 blank lines, found 1 (E302)
server/cshr/services/public_holidays.py#L15
Indentation is not a multiple of 4 (E111)
server/cshr/services/public_holidays.py#L18
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#L23
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#L45
Expected 2 blank lines, found 1 (E302)
server/cshr/utils/dummy_data.py#L46
Indentation is not a multiple of 4 (E111)
server/cshr/utils/dummy_data.py#L48
Indentation is not a multiple of 4 (E111)
server/cshr/utils/dummy_data.py#L60
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L73
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L86
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L99
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L112
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L125
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L138
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L151
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L164
Whitespace before ':' (E203)
server/cshr/utils/dummy_data.py#L168
Indentation is not a multiple of 4 (E111)
server/cshr/utils/dummy_data.py#L182
Blank line contains whitespace (W293)
server/cshr/utils/dummy_data.py#L182
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)
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/