File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 22Changelog
33=========
44
5+ Version 0.15
6+ ============
7+
8+ * Due to the change in API for ``pyproject-fmt `` introduce a dependency cap.
9+
510Version 0.14
611============
712
Original file line number Diff line number Diff line change 7474 # atoml @ git+https://github.com/abravalheri/atoml@table-common-ancestor#egg=atoml
7575 tomli-w>=0.4.0,<2
7676experimental =
77- pyproject-fmt>=0.4.0; python_version>="3.7"
77+ pyproject-fmt>=0.4.0,<2 ; python_version>="3.7"
7878
7979# Add here test requirements (semicolon/line-separated)
8080testing =
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def critical_logging():
8484}
8585
8686try :
87- from pyproject_fmt import Config , format_pyproject
87+ import pyproject_fmt # noqa
8888
8989 META ["auto_format" ] = dict (
9090 flags = ("-F" , "--auto-format" ),
@@ -95,6 +95,8 @@ def critical_logging():
9595
9696 def apply_auto_formatting (text : str ) -> str :
9797 try :
98+ from pyproject_fmt import Config , format_pyproject
99+
98100 return format_pyproject (Config (Path ("pyproject.toml" ), text ))
99101 except Exception as ex : # pragma: no cover
100102 _logger .debug (f"pyproject-fmt failed: { ex } " , exc_info = True )
You can’t perform that action at this time.
0 commit comments