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
1585d066
Commit
1585d066
authored
7 months ago
by
Renaud Boyer
Browse files
Options
Downloads
Patches
Plain Diff
packaging: move mypy config to pyproject.toml
parent
7a2569bf
No related branches found
No related tags found
1 merge request
!1320
packaging: Centralize python related settings in pyproject.toml
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mypy.ini
+0
-67
0 additions, 67 deletions
mypy.ini
pyproject.toml
+26
-1
26 additions, 1 deletion
pyproject.toml
requirements-test.txt
+3
-1
3 additions, 1 deletion
requirements-test.txt
with
29 additions
and
69 deletions
mypy.ini
deleted
100644 → 0
+
0
−
67
View file @
7a2569bf
[mypy]
namespace_packages
=
True
warn_unused_ignores
=
True
explicit_package_bases
=
True
# ^ Needed for mypy to detect py.typed from swh packages installed
# in editable mode
# support for django magic: https://github.com/typeddjango/django-stubs
plugins
=
mypy_django_plugin.main, mypy_drf_plugin.main
[mypy.plugins.django-stubs]
django_settings_module
=
swh.web.settings.development
# 3rd party libraries without stubs (yet)
[mypy-bs4.*]
ignore_missing_imports
=
True
[mypy-corsheaders.*]
ignore_missing_imports
=
True
[mypy-django_js_reverse.*]
ignore_missing_imports
=
True
[mypy-django_ratelimit.*]
ignore_missing_imports
=
True
[mypy-htmlmin.*]
ignore_missing_imports
=
True
[mypy-iso8601.*]
ignore_missing_imports
=
True
[mypy-keycloak.*]
ignore_missing_imports
=
True
[mypy-magic.*]
ignore_missing_imports
=
True
[mypy-msgpack.*]
ignore_missing_imports
=
True
[mypy-prometheus_client.*]
ignore_missing_imports
=
True
[mypy-psycopg2.*]
ignore_missing_imports
=
True
[mypy-pygments.*]
ignore_missing_imports
=
True
[mypy-pymemcache.*]
ignore_missing_imports
=
True
[mypy-requests_mock.*]
ignore_missing_imports
=
True
[mypy-sphinx.*]
ignore_missing_imports
=
True
[mypy-sphinxcontrib.*]
ignore_missing_imports
=
True
[mypy-swh.docs.*]
ignore_missing_imports
=
True
# [mypy-add_your_lib_here.*]
# ignore_missing_imports = True
This diff is collapsed.
Click to expand it.
pyproject.toml
+
26
−
1
View file @
1585d066
...
...
@@ -84,4 +84,29 @@ filterwarnings = """
consider_namespace_packages
=
true
markers
=
"""
inbound_message: used to pass a message parameter to the inbound_message fixture
"""
\ No newline at end of file
"""
[tool.django-stubs]
django_settings_module
=
"swh.web.settings.development"
[tool.mypy]
namespace_packages
=
true
warn_unused_ignores
=
true
explicit_package_bases
=
true
# ^ Needed for mypy to detect py.typed from swh packages installed
# in editable mode
plugins
=
[
"mypy_django_plugin.main"
,
"mypy_drf_plugin.main"
]
[[tool.mypy.overrides]]
module
=
[
"django_js_reverse.*"
,
"django_ratelimit.*"
,
"msgpack"
,
"pymemcache.*"
,
"htmlmin"
,
]
ignore_missing_imports
=
true
This diff is collapsed.
Click to expand it.
requirements-test.txt
+
3
−
1
View file @
1585d066
...
...
@@ -14,8 +14,10 @@ swh.graph >= 5.1.1
swh.loader.git >= 0.8.0
swh-scheduler[testing] >= 2.3.0
swh.storage >= 0.1.1
types-beautifulsoup4
types-cryptography
types-docutils
types-psycopg2
types-Pygments
types-pyyaml
types-requests
types-requests
\ No newline at end of file
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