[+] add linters
This commit is contained in:
parent
ae4fcb16f2
commit
8d43813c37
@ -65,6 +65,38 @@ class CLI(abc.ABC):
|
|||||||
argv,
|
argv,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def ruff(
|
||||||
|
self,
|
||||||
|
project_name: str,
|
||||||
|
argv: list[str],
|
||||||
|
) -> None:
|
||||||
|
project = self.projects[project_name]
|
||||||
|
|
||||||
|
if len(argv) == 0:
|
||||||
|
argv = ['check', '.',]
|
||||||
|
|
||||||
|
subprocess.check_call([
|
||||||
|
'ruff',
|
||||||
|
'--config', str(project.source_dir / 'pyproject.toml'),
|
||||||
|
*argv,
|
||||||
|
])
|
||||||
|
|
||||||
|
def pyright(
|
||||||
|
self,
|
||||||
|
project_name: str,
|
||||||
|
argv: list[str],
|
||||||
|
) -> None:
|
||||||
|
project = self.projects[project_name]
|
||||||
|
|
||||||
|
if len(argv) == 0:
|
||||||
|
argv = ['--threads', '3', '.']
|
||||||
|
|
||||||
|
subprocess.check_call([
|
||||||
|
'pyright',
|
||||||
|
'-p', str(project.source_dir / 'pyproject.toml'),
|
||||||
|
*argv,
|
||||||
|
])
|
||||||
|
|
||||||
def pip_sync(
|
def pip_sync(
|
||||||
self,
|
self,
|
||||||
project: str,
|
project: str,
|
||||||
|
BIN
releases/whl/online_fxreader_pr34-0.1.5.10-py3-none-any.whl
(Stored with Git LFS)
Normal file
BIN
releases/whl/online_fxreader_pr34-0.1.5.10-py3-none-any.whl
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user