Commit a7d20fb5 authored by Teake Nutma's avatar Teake Nutma

Fix linter warnings

parent 1eac674e
Pipeline #1130 passed with stage
in 1 minute and 28 seconds
......@@ -13,9 +13,6 @@ from .datamodel import DataModelFile
class FileValidator(abc.ABC, IssueReportAware):
"""Interface that all datamodel file validators must implement / inherit."""
def __init__(self):
super().__init__()
@abc.abstractmethod
def validate(self, file: DataModelFile) -> bool:
"""Validate one single datamodel file."""
......@@ -69,8 +66,7 @@ class FilenameValidator(FileValidator):
if not self.valid_regex.match(filename):
self.issue_report.add_issue("Filename does not satisfy relaxed requirements.", file)
return False
else:
return True
return True
class _XmlSchemaValidator(FileValidator):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment