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

(🎁) Ability to specify default files in the config #3646

Closed
KotlinIsland opened this issue Apr 14, 2023 · 2 comments
Closed

(🎁) Ability to specify default files in the config #3646

KotlinIsland opened this issue Apr 14, 2023 · 2 comments
Labels
C: configuration CLI and configuration C: file collection Related to file collection (e.g. gitignore & cache) or file discovery and all of its configuration. R: duplicate This issue or pull request already exists T: enhancement New feature or request

Comments

@KotlinIsland
Copy link
Contributor

I want to be able to specify the default files within the configuration file so that I don't need to duplicate this config in different places.

[tool.black]
files = ["src", "scripts"]

Then it is possible to invoke black without passing any paths:

👉 black
yada yada yada ✨

Related: astral-sh/ruff#3970

@KotlinIsland KotlinIsland added the T: enhancement New feature or request label Apr 14, 2023
@ichard26 ichard26 added R: duplicate This issue or pull request already exists C: configuration CLI and configuration C: file collection Related to file collection (e.g. gitignore & cache) or file discovery and all of its configuration. labels Apr 16, 2023
@ichard26
Copy link
Collaborator

This is a duplicate of #861. While I have little authority now being inactive, I'm still not convinced this is a good idea.

@JelleZijlstra
Copy link
Collaborator

Closing as a duplicate (I knew it was one but couldn't find the old one).

@JelleZijlstra JelleZijlstra closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: configuration CLI and configuration C: file collection Related to file collection (e.g. gitignore & cache) or file discovery and all of its configuration. R: duplicate This issue or pull request already exists T: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants