Skip to content

Commit de585f7

Browse files
committed
Update for Formate 1.2
1 parent bb3d5c8 commit de585f7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ consolekit>=1.2.3
33
dom-toml>=2.0.0
44
domdf-python-tools>=3.0.0
55
entrypoints>=0.3
6-
formate>=0.4.9
6+
formate>=1.2.1
77
typing-extensions>=3.10.0.0

snippet_fmt/formatters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class StringReformatter(formate.Reformatter):
7979
def __init__(self, code: str, config: formate.FormateConfigDict):
8080
self.file_to_format = PathPlus(os.devnull) # in case someone tries to write to the file
8181
self.filename = "snippet.py"
82+
self.filetype = ".py"
8283
self.config = config
8384
self._unformatted_source = code
8485
self._reformatted_source: Optional[str] = None

0 commit comments

Comments
 (0)