Comments (10)
Yup, so what we can do is, in the commanding issuee, provide a list of files/paths to be blackened.
Then tell black to format those files only.
from black_out.
Hm I'm not a fan of yet another configuration file.
from black_out.
Yeah, I is similar to what I do with pre-commit tool: I exclude lots of files in config and then include them.
I would probably like to see this as a config in repo.
from black_out.
Well, it's the easiest way of keeping configs of all repos, where GitHub App is installed. Otherwise, you'd have to implement some per repo state management on the server side or some UI.
As a user I'd like to be able to explore what the current config is easily, seeking for the answer for: "Which files are currently blacken or of certain shade of black?"
from black_out.
So I'm thinking of providing a config file where we can specify which paths are to be blacked out.
My use case now is core-workflow repo, where I'd like cherry-picker to be blacked out, but not blurb.
So maybe a .black_out
file at the root of the repo.
from black_out.
I'd say .black_out.yaml
(toml?) in root or under some subfolder like .github/
(with some precedence).
But it also could be pyproject.toml
section (which feels more relevant to Python projects).
from black_out.
Remark: blackening files wholesale creates unwanted side effects. I saw ppl resisting to it because it messes up authorship in git blame
, for example.
So I'd also suggest that this tool might try to preserve this by splitting commits and setting correct authors.
It also could try adding new commit on top of PRs only changing the diff part.
from black_out.
Further ideas: use a brand-new change suggestions feature to send chunk changes on top of PRs. https://blog.github.com/2018-10-16-future-of-software/#suggested-changes-public-beta
from black_out.
I think "suggesting change" is available through GitHub web UI, not through APIs.
from black_out.
@Mariatta so this feature is nothing more than "```suggestion" type of the markdown code block. I bet it should work for the bot posting a comment to the position in diff.
from black_out.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from black_out.