-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libs: Add
envoy.code.check[spelling]
Signed-off-by: Ryan Northey <[email protected]>
- Loading branch information
Showing
6 changed files
with
66 additions
and
1 deletion.
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 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 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 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 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,29 @@ | ||
import pathlib | ||
import re | ||
import sys | ||
from functools import cached_property | ||
from typing import Dict, Iterator, List, Pattern, Set, Tuple | ||
|
||
import abstracts | ||
|
||
from envoy.code.check import abstract | ||
|
||
from aio.core.functional import async_property | ||
|
||
|
||
class ASpellingCheck(abstract.ACodeCheck, metaclass=abstracts.Abstraction): | ||
|
||
@async_property | ||
async def checker_files(self) -> Set[str]: | ||
return set() | ||
|
||
@async_property(cache=True) | ||
async def problem_files(self) -> Dict[str, List[str]]: | ||
return ( | ||
dict(await self.errors) | ||
if await self.files | ||
else {}) | ||
|
||
@async_property | ||
async def errors(self): | ||
return {} |
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