Skip to content

Commit

Permalink
chore: improve vscode and lint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamNol committed Jun 25, 2022
1 parent 2970d85 commit d9b00ac
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ __pycache__
.idea
dist
.env
.ignoreme
2 changes: 2 additions & 0 deletions .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pylint:
- too-many-locals
- no-else-return
- no-else-raise
- broad-except

mypy:
run: true # config with mypy.ini
Expand All @@ -34,6 +35,7 @@ pycodestyle:
disable:
- N801
- E305
- N815

dodgy:
run: true
Expand Down
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"recommendations": [
// Required:
"ms-python.python",
"editorconfig.editorconfig",
"editorconfig.editorconfig",
// Recommended:
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker",
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -20,7 +20,10 @@
"python.testing.pytestEnabled": true,
// cSpell custom dictionary
"cSpell.words": [
"aiohttp",
"mccabe",
"mypy",
"pystrapi",
"strapi",
],
}
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9b00ac

Please sign in to comment.