Ruff linter
This commit is contained in:
parent
4a53d0b8e2
commit
b0d6b75ac1
|
@ -1,14 +1,13 @@
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
import msgspec
|
import msgspec
|
||||||
|
from cista import auth
|
||||||
|
from cista.protocol import ErrorMsg
|
||||||
from sanic import errorpages
|
from sanic import errorpages
|
||||||
from sanic.exceptions import SanicException
|
from sanic.exceptions import SanicException
|
||||||
from sanic.log import logger
|
from sanic.log import logger
|
||||||
from sanic.response import raw, redirect
|
from sanic.response import raw, redirect
|
||||||
|
|
||||||
from cista import auth
|
|
||||||
from cista.protocol import ErrorMsg
|
|
||||||
|
|
||||||
|
|
||||||
def asend(ws, msg):
|
def asend(ws, msg):
|
||||||
"""Send JSON message or bytes to a websocket"""
|
"""Send JSON message or bytes to a websocket"""
|
||||||
|
|
|
@ -23,6 +23,7 @@ dependencies = [
|
||||||
"sanic",
|
"sanic",
|
||||||
"tomli_w",
|
"tomli_w",
|
||||||
]
|
]
|
||||||
|
requires-python = ">=3.10"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = ""
|
Homepage = ""
|
||||||
|
@ -63,7 +64,10 @@ testpaths = [
|
||||||
"tests",
|
"tests",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.isort]
|
[tool.ruff]
|
||||||
#src_paths = ["cista", "tests"]
|
extend-select = ["I", "UP"]
|
||||||
line_length = 120
|
src = ["cista", "tests"]
|
||||||
multi_line_output = 5
|
show-fixes = true
|
||||||
|
show-source = true
|
||||||
|
format.preview = true
|
||||||
|
format.line-ending = "lf"
|
||||||
|
|
|
@ -2,7 +2,6 @@ import tempfile
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from cista import config
|
from cista import config
|
||||||
from cista.protocol import Cp, MkDir, Mv, Rename, Rm
|
from cista.protocol import Cp, MkDir, Mv, Rename, Rm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user