Closed stewartHutchins closed 1 year ago
@stewartHutchins thanks for your contributions. I've leveraged your changes to:
Merging #137 (f8ca75c) into master (69e3714) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #137 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 10 +1
Lines 304 309 +5
=========================================
+ Hits 304 309 +5
Impacted Files | Coverage Δ | |
---|---|---|
..._formatters_pre_commit_hooks/pretty_format_toml.py | 100.00% <100.00%> (ø) |
|
language_formatters_pre_commit_hooks/__init__.py | 100.00% <0.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Super, glad I could help. :smile:
Unless the work is already underway, might I suggest more restrictive versioning for all dependencies in setup.cfg
? This may prevent a similar breaks in the future (where a 3rd party library's API changes).
For example, I'd like to emphasise that this project now has the dependency toml-sort>=0.22.0
and also relies on the imports:
toml_sort.tomlsort.CommentConfiguration
,toml_sort.tomlsort.FormattingConfiguration,
toml_sort.tomlsort.SortConfiguration
These 3rd party classes are not (currently) declared in __all__
(see: toml-sort==v0.22.2, tomlsort.py#L28). This may imply that the API is still undergoing changes; as a result, it may be desirable to be more restrictive than the current toml-sort>=0.22.0
.
See, PR #136 for context first.
This PR builds on the PR #136, by updating to the latest toml-sort version (0.22.1), however the previous PR should be sufficient to prevent get the pre-commit hook working.