Open XaviTorello opened 3 years ago
@XaviTorello @francescarpi What do you think about splitting this issue, so more people can grab a part of it? We can have one PR done as example on how to solve it for the people with less knowledge. And then they can pick up another part.
Maybe one per file?
Perfect @ytturi :)
I've updated the Issue description with an updated mypy run on origin/master. Also updated the proposal to fix it.
Perfect for me, as well. Thanks!
I've fixed: accounts/admin.py accounts/models.py accounts/managers.py
PR: #96
Example how to run mypy
inside docker:
docker-compose run --rm test bash
mypy accounts/admin.py
Documentation: https://mypy.readthedocs.io/en/stable/
Is your feature request related to a problem? Please describe.
Current
master
code does not pass mypy validationsDescribe the solution you'd like
Those issues should be amended to ensure that base code is clean and ready to be improved :)
Describe alternatives you've considered
Temporaly relax this definition turning this MUST into an OPTIONAL, and just show pending issues as a warning into ourDone in #84code-check
CI actionCurrent proposal: As the test is now Optional, we can work with small PRs. Fix some files and link your PR to this issue. Ideal would be to split it per file, but some files have more errors than others, so I'm just listing them.
In order to avoid two PRs on the same file, please comment on this issue with the files you are fixing.
Files to fix:
accounts/admin.py
accounts/api/custom_claims.py
accounts/api/serializers.py
accounts/api/urls.py
accounts/api/views.py
accounts/apps.py
accounts/forms.py
accounts/managers.py
accounts/models.py
accounts/urls.py
accounts/views.py
jobs/settings/__init__.py
jobs/urls.py
jobs/wsgi.py
jobsapp/admin.py
jobsapp/api/custom_exception.py
jobsapp/api/permissions.py
jobsapp/api/serializers.py
jobsapp/api/urls.py
jobsapp/api/views/common.py
jobsapp/api/views/employee.py
jobsapp/api/views/employer.py
jobsapp/apps.py
jobsapp/decorators.py
jobsapp/forms.py
jobsapp/models.py
jobsapp/templatetags/is_already_applied.py
jobsapp/urls.py
jobsapp/views/employee.py
jobsapp/views/employer.py
jobsapp/views/home.py
manage.py
tests/accounts/test_accounts.py
tests/factories.py
tests/jobsapp/test_jopsapp.py
Additional context Add any other context or screenshots about the feature request here.