Skip to content

Commit

Permalink
Add .vscode settings (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavsingh authored Nov 19, 2021
1 parent 3cfce52 commit 5eb4fa4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.coverage
.coverage.*
.idea
.vscode
.project
.pydevproject
.settings
Expand All @@ -14,6 +13,9 @@
coverage.xml
proxy.py.iml

.vscode/*
!.vscode/settings.json

*.pyc
*.egg-info
*.csr
Expand Down
31 changes: 31 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.rulers": [100],
"python.testing.unittestEnabled": false,
"python.testing.autoTestDiscoverOnSaveEnabled": true,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["tests"],
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.ignorePatterns": [
".tox/**/*.py",
".vscode/*.py",
".venv*/**/*.py",
"venv*/**/*.py",
"docs/**/*.py",
"helper/**/*.py",
"menubar/**/*.py"
],
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": ["--generate-members"],
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "autopep8",
"typescript.format.semicolons": "remove",
"typescript.preferences.quoteStyle": "single",
"autoDocstring.docstringFormat": "sphinx"
}
2 changes: 1 addition & 1 deletion proxy/core/base/tcp_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:

@abstractmethod
def handle_upstream_data(self, raw: memoryview) -> None:
pass
raise NotImplementedError() # pragma: no cover

def initialize_upstream(self, addr: str, port: int) -> None:
self.upstream = TcpServerConnection(addr, port)
Expand Down

0 comments on commit 5eb4fa4

Please sign in to comment.