Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mentat-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
mentat-test
Commits
af8ad71c
Commit
af8ad71c
authored
1 month ago
by
Jakub Maloštík
Browse files
Options
Downloads
Patches
Plain Diff
Move mypy config to pyproject.toml
(Redmine issue:
#7826
)
parent
3d8ca80e
Branches
malostik-feature-#6257-timeline-stats-review
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!103
Move mypy config to pyproject.toml
Pipeline
#15512
passed
1 month ago
Stage: test
Stage: check-warnings
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mypy.ini
+0
-32
0 additions, 32 deletions
mypy.ini
pyproject.toml
+50
-0
50 additions, 0 deletions
pyproject.toml
with
50 additions
and
32 deletions
mypy.ini
deleted
100644 → 0
+
0
−
32
View file @
3d8ca80e
[mypy]
plugins
=
sqlalchemy.ext.mypy.plugin
warn_unused_configs
=
True
warn_redundant_casts
=
True
warn_unused_ignores
=
True
strict_equality
=
True
extra_checks
=
True
disallow_untyped_decorators
=
True
disallow_incomplete_defs
=
True
no_implicit_reexport
=
True
warn_return_any
=
True
# submodules with strict type checking
[mypy-hawat.charts.*]
check_untyped_defs
=
True
disallow_subclassing_any
=
True
disallow_untyped_calls
=
True
disallow_untyped_defs
=
True
# Turn off strict for tests
[mypy-*.test.*]
check_untyped_defs
=
False
disallow_subclassing_any
=
False
disallow_untyped_calls
=
False
disallow_untyped_defs
=
False
no_implicit_reexport
=
False
# Libraries without available stubs
[mypy-ipranges.*,pyzenkit.*,idea.*,typedcols.*,pydgets.*,pynspect.*,wtforms.*,flask_wtf.*,flask_babel.*,flask_sqlalchemy.*,flask_login.*,flask_principal.*,flask_debugtoolbar.*,plotly.*,rrdtool.*]
ignore_missing_imports
=
True
This diff is collapsed.
Click to expand it.
pyproject.toml
+
50
−
0
View file @
af8ad71c
[build-system]
requires
=
[
"setuptools >= 64.0"
]
build-backend
=
"setuptools.build_meta"
[tool.mypy]
plugins
=
"sqlalchemy.ext.mypy.plugin"
warn_unused_configs
=
true
warn_redundant_casts
=
true
warn_unused_ignores
=
true
strict_equality
=
true
extra_checks
=
true
disallow_untyped_decorators
=
true
disallow_incomplete_defs
=
true
no_implicit_reexport
=
true
warn_return_any
=
true
[[tool.mypy.overrides]]
# Submodules with strict type checking
module
=
[
"hawat.charts.*"
]
check_untyped_defs
=
true
disallow_subclassing_any
=
true
disallow_untyped_calls
=
true
disallow_untyped_defs
=
true
[[tool.mypy.overrides]]
# Turn off strict type checking for tests
module
=
"*.test.*"
check_untyped_defs
=
false
disallow_subclassing_any
=
false
disallow_untyped_calls
=
false
disallow_untyped_defs
=
false
no_implicit_reexport
=
false
[[tool.mypy.overrides]]
# Libraries without available stubs
module
=
[
"ipranges.*"
,
"pyzenkit.*"
,
"idea.*"
,
"typedcols.*"
,
"pydgets.*"
,
"pynspect.*"
,
"wtforms.*"
,
"flask_wtf.*"
,
"flask_babel.*"
,
"flask_sqlalchemy.*"
,
"flask_login.*"
,
"flask_principal.*"
,
"flask_debugtoolbar.*"
,
"plotly.*"
,
"rrdtool.*"
]
ignore_missing_imports
=
true
\ 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