mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
[pre-commit.ci] pre-commit autoupdate (#10811)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ repos:
|
||||
- id: sort-simple-yaml
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: 'v0.12.3'
|
||||
rev: 'v0.12.4'
|
||||
hooks:
|
||||
- id: ruff-check
|
||||
args: [--fix, --exit-non-zero-on-fix]
|
||||
|
||||
@@ -51,13 +51,13 @@ def make_request_handler():
|
||||
data = self.rfile.read(int(length)).decode("utf8")
|
||||
sys.stderr.write(f"{data}\n")
|
||||
|
||||
def do_POST(self): # noqa: N802
|
||||
def do_POST(self):
|
||||
# analytics endpoint
|
||||
self.hits["POST"] += 1
|
||||
self.send_response(200)
|
||||
super().end_headers()
|
||||
|
||||
def do_GET(self): # noqa: N802
|
||||
def do_GET(self):
|
||||
# updater endpoint
|
||||
self.hits["GET"] += 1
|
||||
self.send_response(200)
|
||||
|
||||
Reference in New Issue
Block a user