format-source issueshttps://foss.heptapod.net/mercurial/format-source/-/issues2021-05-21T20:05:37Zhttps://foss.heptapod.net/mercurial/format-source/-/issues/12support python 32021-05-21T20:05:37ZBramsupport python 3Hello,
When trying to run formatsource in a python3 context I end up with this error message:
> *** failed to import extension formatsource: cannot use a bytes pattern on a string-like object
I guess some port to python3 or some compa...Hello,
When trying to run formatsource in a python3 context I end up with this error message:
> *** failed to import extension formatsource: cannot use a bytes pattern on a string-like object
I guess some port to python3 or some compatibility is needed.
Kind regards,https://foss.heptapod.net/mercurial/format-source/-/issues/11Tutorial in documentation2021-05-21T13:19:29ZArthur LutzTutorial in documentationAs a follow up of https://foss.heptapod.net/mercurial/format-source/-/issues/10 it would be interesting to have a small tutorial format like the evolve tutorial that has helped us onboard users on evolve.As a follow up of https://foss.heptapod.net/mercurial/format-source/-/issues/10 it would be interesting to have a small tutorial format like the evolve tutorial that has helped us onboard users on evolve.https://foss.heptapod.net/mercurial/format-source/-/issues/10Improve documentation2021-05-21T13:19:29ZArthur LutzImprove documentationAs we're about to encourage use of format-source on our python projects for use of black, it would be nice for the documentation to be improved.
We might contribute to this.As we're about to encourage use of format-source on our python projects for use of black, it would be nice for the documentation to be improved.
We might contribute to this.https://foss.heptapod.net/mercurial/format-source/-/issues/9Overriding the tools config is painful2020-02-08T11:21:36ZGeorges RacinetOverriding the tools config is painful*Created originally on Bitbucket by [lothiraldan (Boris FELD)](https://bitbucket.org/%7B9265a420-a059-4969-b511-cb4f5ecdba07%7D/)*
In format-source, we only define the per-tool configuration if the top-level `formatsource.TOOL` is not d...*Created originally on Bitbucket by [lothiraldan (Boris FELD)](https://bitbucket.org/%7B9265a420-a059-4969-b511-cb4f5ecdba07%7D/)*
In format-source, we only define the per-tool configuration if the top-level `formatsource.TOOL` is not defined by the user.
The side-effect is that it's not possible to redefine a sub-configuration value for tool (for example `formatsource.black:version_regex`) without setting also the top-level configuration (for example `formatsource.black`). And as we need to define the top-level configuration, we also need to define every other sub-configuration values (for example `formatsource.black:configpaths`, `formatsource.black:mode` and `formatsource.black:version_command`).
This makes it very difficult for users to override a sub-configuration value for the tool we support by default.https://foss.heptapod.net/mercurial/format-source/-/issues/7way to run formatters on currently tracked file, without a commit2020-02-08T11:21:36ZGeorges Racinetway to run formatters on currently tracked file, without a commit*Created originally on Bitbucket by [marmoute (Pierre-Yves David)](https://bitbucket.org/%7B44ceb89a-1cda-4c13-bf87-294dddcd719b%7D/)*
It would be nice ot have a simple way to leverage the saved tracking to run formatters on the right s...*Created originally on Bitbucket by [marmoute (Pierre-Yves David)](https://bitbucket.org/%7B44ceb89a-1cda-4c13-bf87-294dddcd719b%7D/)*
It would be nice ot have a simple way to leverage the saved tracking to run formatters on the right set of file. I'm not certain of the form we wants, but something like `hg format-source --current [FILES]` might work fine.https://foss.heptapod.net/mercurial/format-source/-/issues/5Allow to force running formatting on merged file2020-02-08T11:21:36ZGeorges RacinetAllow to force running formatting on merged file*Created originally on Bitbucket by [marmoute (Pierre-Yves David)](https://bitbucket.org/%7B44ceb89a-1cda-4c13-bf87-294dddcd719b%7D/)*
We need a config option to run the formatting tools on all formatted files regardeless of configurati...*Created originally on Bitbucket by [marmoute (Pierre-Yves David)](https://bitbucket.org/%7B44ceb89a-1cda-4c13-bf87-294dddcd719b%7D/)*
We need a config option to run the formatting tools on all formatted files regardeless of configuration changes. This will be useful for users who needs to manually handle some special cases.