-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update dev-deps, add devcontainer, add mypy
- Loading branch information
1 parent
7c60f88
commit f81e27d
Showing
5 changed files
with
864 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/python | ||
{ | ||
"name": "Python 3", | ||
"image": "mcr.microsoft.com/devcontainers/python:1-3.9-bullseye", | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/poetry:2": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/dhoeric/features/google-cloud-cli:1": {} | ||
}, | ||
"postCreateCommand": "poetry install", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
// Python | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-python.black-formatter", | ||
"ms-python.flake8", | ||
"matangover.mypy", | ||
"nwgh.bandit", | ||
"KevinRose.vsc-python-indent", | ||
// RestructuredText | ||
"lextudio.restructuredtext", | ||
"trond-snekvik.simple-rst", | ||
// Helpers | ||
"tamasfe.even-better-toml", | ||
"njpwerner.autodocstring", | ||
"aaron-bond.better-comments", | ||
// Tools | ||
"github.vscode-github-actions", | ||
"GitHub.copilot", | ||
"ms-toolsai.jupyter", | ||
// VIM | ||
"vscodevim.vim" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Global options: | ||
|
||
[mypy] | ||
ignore_missing_imports = True | ||
; follow_imports = silent | ||
show_column_numbers = True | ||
warn_unused_configs = False | ||
disallow_subclassing_any = False | ||
disallow_any_generics = False | ||
disallow_untyped_calls = False | ||
disallow_untyped_defs = False | ||
disallow_incomplete_defs = False | ||
check_untyped_defs = True | ||
disallow_untyped_decorators = False | ||
no_implicit_optional = False | ||
warn_redundant_casts = False | ||
warn_unused_ignores = False | ||
warn_return_any = False | ||
|
||
# Per-module options: | ||
|
||
## In this section, add overrides for specific files, modules, or functions | ||
## that don't yet have type annotations. For example: | ||
## [mypy-older_module.older_file] | ||
## disallow_untyped_defs = False | ||
|
||
[mypy-panos.updater] | ||
disallow_subclassing_any = True | ||
disallow_any_generics = True | ||
disallow_untyped_defs = False | ||
disallow_incomplete_defs = True | ||
check_untyped_defs = True | ||
disallow_untyped_decorators = True | ||
no_implicit_optional = True | ||
warn_unused_ignores = True | ||
warn_return_any = True |
Oops, something went wrong.