mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 22:31:21 -07:00
Move linters into seperate module.
Give linters an abstract type to inherit, since they share an interface. Add empty README
This commit is contained in:
parent
91daf89c2d
commit
a470f02373
9 changed files with 49 additions and 25 deletions
|
|
@ -0,0 +1,14 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import Iterator
|
||||
|
||||
from ..diagnostic import Diagnostic
|
||||
|
||||
|
||||
class DiagnosticGenerator(ABC):
|
||||
def __init__(self, file, settings) -> None:
|
||||
self._settings = settings
|
||||
self._file = file
|
||||
|
||||
@abstractmethod
|
||||
def check(self) -> Iterator[Diagnostic]:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue