diff --git a/printer-linter/src/printerlinter/formatters/def_json_formatter.py b/printer-linter/src/printerlinter/formatters/def_json_formatter.py index c74f077249..0421b8547d 100644 --- a/printer-linter/src/printerlinter/formatters/def_json_formatter.py +++ b/printer-linter/src/printerlinter/formatters/def_json_formatter.py @@ -25,7 +25,7 @@ METADATA_SORT_PRIORITY = { class DefJsonFormatter(FileFormatter): - def format(self, file: Path): + def formatFile(self, file: Path): """ Format .def.json files according to the rules in settings. You can assume that you will be running regex on standard formatted json files, because we load the json first and then diff --git a/printer-linter/src/printerlinter/formatters/formatter.py b/printer-linter/src/printerlinter/formatters/formatter.py index 1425825a82..c668744f42 100644 --- a/printer-linter/src/printerlinter/formatters/formatter.py +++ b/printer-linter/src/printerlinter/formatters/formatter.py @@ -12,5 +12,5 @@ class FileFormatter(ABC): self._settings = settings @abstractmethod - def format(self, file: Path) -> None: + def formatFile(self, file: Path) -> None: pass \ No newline at end of file diff --git a/printer-linter/src/printerlinter/formatters/inst_cfg_formatter.py b/printer-linter/src/printerlinter/formatters/inst_cfg_formatter.py index fc6ccf3c81..c4113bcb48 100644 --- a/printer-linter/src/printerlinter/formatters/inst_cfg_formatter.py +++ b/printer-linter/src/printerlinter/formatters/inst_cfg_formatter.py @@ -7,7 +7,7 @@ from pathlib import Path from .formatter import FileFormatter class InstCfgFormatter(FileFormatter): - def format(self, file: Path): + def formatFile(self, file: Path): """ Format .inst.cfg files according to the rules in settings """ config = configparser.ConfigParser() config.read(file) diff --git a/printer-linter/src/terminal.py b/printer-linter/src/terminal.py index 3591d841a4..6e6d1af4e5 100644 --- a/printer-linter/src/terminal.py +++ b/printer-linter/src/terminal.py @@ -94,11 +94,11 @@ def applyFormattingToFile(file: Path, settings) -> None: if ext == "def.json": formatter = DefJsonFormatter(settings) - formatter.format(file) + formatter.formatFile(file) if ext == "inst.cfg": formatter = InstCfgFormatter(settings) - formatter.format(file) + formatter.formatFile(file) def extractFilePaths(paths: List[Path]) -> List[Path]: