You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I don't like polluting my duties.py with lots of boilerplate code needed to run some tools that don't expose clean entrypoints.
For example, I'm currently playing with blacken-docs, and this is the code I have to put in my duties:
Describe the solution you'd like
I wonder if duty couldn't provide an integrations subpackage that offers Python callables to run many different tools and their commands.
For example, I'd like to import a function blacken_docs from duty.integrations.blacken_docs that accepts lists of paths to check, recursively, with a list of extensions to pick up maybe, and probably other options (that just cater to my own needs first).
Describe alternatives you've considered
Copy/paste, or inclusion in my copier-pdm template (which is kinda copy/paste anyway).
Additional context
The goal is re-usability and performance. We don't want to run subprocesses, or have argparse parse arguments again and again.
Current integrations I'd like to have:
flake8 check (critical)
mkdocs build strict (critical)
mypy check (critical)
safety check
blacken-docs
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I don't like polluting my
duties.py
with lots of boilerplate code needed to run some tools that don't expose clean entrypoints.For example, I'm currently playing with blacken-docs, and this is the code I have to put in my duties:
See other examples here: pawamoy/copier-pdm#21.
Describe the solution you'd like
I wonder if duty couldn't provide an
integrations
subpackage that offers Python callables to run many different tools and their commands.For example, I'd like to import a function
blacken_docs
fromduty.integrations.blacken_docs
that accepts lists of paths to check, recursively, with a list of extensions to pick up maybe, and probably other options (that just cater to my own needs first).Describe alternatives you've considered
Copy/paste, or inclusion in my copier-pdm template (which is kinda copy/paste anyway).
Additional context
The goal is re-usability and performance. We don't want to run subprocesses, or have argparse parse arguments again and again.
Current integrations I'd like to have:
The text was updated successfully, but these errors were encountered: