Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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