[+] add linters

This commit is contained in:
Siarhei Siniak 2025-04-12 16:22:21 +03:00
parent ae4fcb16f2
commit 8d43813c37
2 changed files with 35 additions and 0 deletions

@ -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

Binary file not shown.