-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ya style - Переписал процесс сбора целей для линтинга на использование `pathlib` - Переписал исполнение на `ThreadPoolExecutor` вместо создания тредов и очереди - Создал иерархию `Styler` классов. Поиск нужного стайлера переписал на hashmap lookup вместо перебора суффиксов через `endswith` - Переписал поиск конфигов для ruff на trie - Убрал `--fast` проверку для black, её добавили из-за <HIDDEN_URL>, соответствующий issue fixed <psf/black#1629> - Убрал конструкции `if six.PY3` - Добавил type annotations commit_hash:84c5a78d9fb32fe3b1350d3a0743bee2a3ec5974
- Loading branch information
1 parent
763d219
commit 5986d81
Showing
10 changed files
with
483 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from enum import StrEnum, auto | ||
|
||
|
||
STDIN_FILENAME_STAMP = 'STDIN_FILENAME_STAMP' | ||
|
||
|
||
class StylerKind(StrEnum): | ||
PY = auto() | ||
CPP = auto() | ||
CUDA = auto() | ||
YAMAKE = auto() | ||
GO = auto() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.