Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VSCode Config
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Binet Réseau
VSCode Config
Commits
afdc10e3
Commit
afdc10e3
authored
1 year ago
by
Thibaut DE SAIVRE
Browse files
Options
Downloads
Patches
Plain Diff
add more settings for python pylance
parent
8b6e3e3e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/.vscode/settings.json
+16
-2
16 additions, 2 deletions
python/.vscode/settings.json
with
16 additions
and
2 deletions
python/.vscode/settings.json
+
16
−
2
View file @
afdc10e3
...
...
@@ -14,9 +14,23 @@
},
"python.analysis.typeCheckingMode"
:
"strict"
,
//
or
"strict"
:
use
stricter
python
type
checking
//
Deactivate
some
warnings
because
there
are
many
python
libs
that
do
not
respect
strict
typing
"python.analysis.diagnosticSeverityOverrides"
:
{
"reportMissingTypeStubs"
:
"none"
,
//
Scipy
does
not
have
type
stubs
"reportUnknownMemberType"
:
"none"
,
//
Member
types
are
not
complete
for
numpy
"reportUnknownVariableType"
:
"none"
,
//
Skimage.io
has
unknown
variable
types
"reportUnknownArgumentType"
:
"none"
,
"reportUnknownParameterType"
:
"none"
,
//
Disable
warnings
when
a
type
is
partially
unknown
"reportUnknownLambdaType"
:
"none"
,
//
Set
severity
to
Warning
"reportUnusedVariable"
:
"warning"
,
"reportMissingParameterType"
:
"warning"
,
"reportGeneralTypeIssues"
:
"none"
},
//
Add
explicit
hints
overlays
for
arguments
,
return
types
,
variable
types...
"python.analysis.inlayHints.functionReturnTypes"
:
true
,
"python.analysis.inlayHints.variableTypes"
:
true
,
"python.analysis.inlayHints.variableTypes"
:
false
,
//
Deactivate
variable
type
inlays
(they
clutter
the
view)
"python.analysis.inlayHints.pytestParameters"
:
true
,
"python.analysis.inlayHints.callArgumentNames"
:
"
all"
"python.analysis.inlayHints.callArgumentNames"
:
"
partial"
//
Do
not
show
argument
names
when
the
variable
has
the
same
name
}
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