Closed MartaSien closed 20 hours ago
I'll just run https://pypi.org/project/vulture/ and see what happens
EDIT: nah, it does not recognize variables & fields used by Django :face_with_diagonal_mouth:
But a good idea to use an automated solution. Perhaps there is one that works for our case. 🙂
According to this article, there is a way to configure Vulture better for Django projects, by excluding certain decorators and files.
❯ vulture . | grep 100\%
tests/conftest.py:6: unused variable 'django_db_setup' (100% confidence, 1 line)
users/views.py:40: unused variable 'format' (100% confidence, 1 line)
users/views.py:180: unused variable 'format' (100% confidence, 1 line)
There may be unused code within the repository - it should be verified and, if necessary, removed.