-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mypy issues #83
Comments
Related to #83, it ensures that "Run typing tests" step does not raises and continues without breaking the validation. This will simplify the validation of our PRs (at least for code formatting), but the analysis will be performed to be able to solve it in parallel. Once #83 will be solved we should reactivate the step (erasing the `continue-on-error` directive)
@XaviTorello @francescarpi What do you think about splitting this issue, so more people can grab a part of it? Maybe one per file? |
Perfect @ytturi :) |
I've updated the Issue description with an updated mypy run on origin/master. |
Perfect for me, as well. |
I've fixed: PR: #96 |
Example how to run
|
Documentation: |
(#83) [Fixed]: Mypy fixes in admin, models and manager accounts files.
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.
The text was updated successfully, but these errors were encountered: