From d9b00ac4dc8e5fdffda1d3317969f0d9ca36903c Mon Sep 17 00:00:00 2001 From: Noam Nol Date: Tue, 21 Jun 2022 13:49:00 +0300 Subject: [PATCH] chore: improve vscode and lint settings --- .gitignore | 1 + .prospector.yaml | 2 ++ .vscode/extensions.json | 2 +- .vscode/settings.json | 5 ++++- mypy.ini | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 873ac81..d294ebb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ __pycache__ .idea dist .env +.ignoreme diff --git a/.prospector.yaml b/.prospector.yaml index 666740d..8483f98 100644 --- a/.prospector.yaml +++ b/.prospector.yaml @@ -25,6 +25,7 @@ pylint: - too-many-locals - no-else-return - no-else-raise + - broad-except mypy: run: true # config with mypy.ini @@ -34,6 +35,7 @@ pycodestyle: disable: - N801 - E305 + - N815 dodgy: run: true diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 38a30da..cd7f105 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,7 +4,7 @@ "recommendations": [ // Required: "ms-python.python", - "editorconfig.editorconfig", + "editorconfig.editorconfig", // Recommended: "eamodio.gitlens", "streetsidesoftware.code-spell-checker", diff --git a/.vscode/settings.json b/.vscode/settings.json index b9d1bd9..08c9539 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,7 @@ ".prospector.yaml" ], // Python formatter - "python.formatting.autopep8Args": ["--max-line-length", "200"], + "python.formatting.autopep8Args": ["--max-line-length", "120"], "[python]": { "editor.formatOnSave": true, }, @@ -20,7 +20,10 @@ "python.testing.pytestEnabled": true, // cSpell custom dictionary "cSpell.words": [ + "aiohttp", "mccabe", "mypy", + "pystrapi", + "strapi", ], } diff --git a/mypy.ini b/mypy.ini index 4510ee6..7bc6813 100644 --- a/mypy.ini +++ b/mypy.ini @@ -11,7 +11,7 @@ disallow_untyped_defs = True ignore_errors = False ignore_missing_imports = False implicit_reexport = False -no_implicit_optional = True +no_implicit_optional = False strict_optional = True warn_return_any = True warn_unreachable = True