Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-web
Commits
c3139a51
Commit
c3139a51
authored
5 years ago
by
Stefano Zacchiroli
Browse files
Options
Downloads
Patches
Plain Diff
mypy: add django support
(still not working)
parent
6d3cee72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.local
+8
-0
8 additions, 0 deletions
Makefile.local
mypy.ini
+4
-4
4 additions, 4 deletions
mypy.ini
with
12 additions
and
4 deletions
Makefile.local
+
8
−
0
View file @
c3139a51
...
...
@@ -87,3 +87,11 @@ test-frontend-ui: test-frontend-ui-cmd
test-frontend-full-ui
:
export CYPRESS_SKIP_SLOW_TESTS=0
test-frontend-full-ui
:
test-frontend-ui-cmd
# Override default rule to make sure DJANGO env var is properly set. It
# *should* work without any override thanks to the mypy django-stubs plugin,
# but it currently doesn't; see
# https://github.com/typeddjango/django-stubs/issues/166
typecheck
:
DJANGO_SETTINGS_MODULE
=
swh.web.settings.tests
$(
MYPY
)
$(
MYPYFLAGS
)
swh
This diff is collapsed.
Click to expand it.
mypy.ini
+
4
−
4
View file @
c3139a51
...
...
@@ -3,11 +3,11 @@ namespace_packages = True
warn_unused_ignores
=
True
#
# support for django magic: https://github.com/typeddjango/django-stubs
#
plugins = mypy_django_plugin.main
# support for django magic: https://github.com/typeddjango/django-stubs
plugins
=
mypy_django_plugin.main
#
[mypy.plugins.django-stubs]
#
django_settings_module = swh.web.settings.tests
[mypy.plugins.django-stubs]
django_settings_module
=
swh.web.settings.tests
# 3rd party libraries without stubs (yet)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment