Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a hook to autoupdate black in user configuration #124

Merged
merged 11 commits into from
Sep 13, 2022
Merged

Conversation

keewis
Copy link
Owner

@keewis keewis commented Feb 27, 2022

As an alternative to #123, here's a hook to automate synchronizing
the black hook and the additional_dependencies entry of blackdoc.

I'm not sure if the way I implemented that hook (a regex) is
particularly reliable (besides the fact that multi-line regexes are
clearly not something I'm comfortable with), but using pyyaml for
this would strip any comments / reformat some entries, and
ruamel.yaml / ruyaml seem to struggle with maintenance (at least,
that's the impression I get).

@keewis keewis mentioned this pull request Sep 13, 2022
3 tasks
@keewis keewis merged commit 2910411 into main Sep 13, 2022
@keewis keewis deleted the autoupdate-black branch September 13, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to explicitly set black version in pre-commit?
1 participant