Ruff C9
We currently are unable to add "C9" as a lint option because we have a few functions that are too complex.
My goal will be to simplify and refactor those functions so we can add "C9" long term, and also because it will hopefully help me familiarise myself with these functions and improve the code quality.
I'm creating this issue to track progress on this.
Problem functions:
- devices\forms.py:285:9:
__init__
- Merged✅ - devices\management\commands\ldapimport.py:65:9:
handle
- MR Pending🕒 - devices\views.py:79:5:
get_devices
- Merged✅ - devices\views.py:581:9:
form_valid
- Merged✅ - devices\views.py:698:9:
form_valid
- Merged✅ - devices\views.py:1412:9:
get_q
- MR Pending🕒 - devices\views.py:1604:5:
generate_device_protocol
- MR Pending🕒 - main\backends.py:18:9:
has_perm
- Merged✅ - main\views.py:21:5:
get_widget_data
- Merged✅ - users\views.py:224:9:
post
- MR Pending🕒