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

Run Black #9512

Closed
twisted-trac opened this issue Aug 25, 2018 · 8 comments
Closed

Run Black #9512

twisted-trac opened this issue Aug 25, 2018 · 8 comments

Comments

@twisted-trac
Copy link

hawkowl's avatar @hawkowl reported
Trac ID trac#9512
Type task
Created 2018-08-25 03:00:53Z

See: #9498

Searchable metadata
trac-id__9512 9512
type__task task
reporter__hawkowl hawkowl
priority__normal normal
milestone__None None
branch__ 
branch_author__ 
status__closed closed
resolution__fixed fixed
component__core core
keywords__review review
time__1535166053398426 1535166053398426
changetime__1599973580164755 1599973580164755
version__None None
owner__Tom_Most__twm_____ Tom Most <twm@...>

@twisted-trac
Copy link
Author

glyph's avatar @glyph set owner to @hawkowl

The thing that's in review is probably this: #1049

But right now that's nothing but a mess of conflicts and can't be merged, more or less as one would expect.

We really need a tool that we can run against arbitrary other branches so that this won't be so disruptive to everyone working on changes in progress.

Once we have that with some good documentation (does Black already have such a thing?) we should probably have the actual run-Black-on-everything PR skip the normal process.

@twisted-trac
Copy link
Author

hawkowl's avatar @hawkowl set owner to @glyph

@twisted-trac
Copy link
Author

hawkowl's avatar @hawkowl commented

Put the PR back up for review.

Since we dropped 2.7 compat and we're starting to sprinkle in type annotations, I think that black would be extra useful to help reduce the formatting legwork.

I also believe that if you merge in this merge commit, blackify your PR, then merge trunk, git should know what to do. If we squash merge PRs, then we'll also get a nice history for those PRs.

@twisted-trac
Copy link
Author

glyph's avatar @glyph removed owner

@twisted-trac
Copy link
Author

twm's avatar @twm commented

The current PR for this appears to be #1134

@twisted-trac
Copy link
Author

twm's avatar @twm commented

Approved here: #1134 (review)

Thanks so much for this! It will make Twisted development much more pleasant.

@twisted-trac
Copy link
Author

twm's avatar @twm commented

New PR, since GitHub seemed a bit confused about the diff of the old one: #1380

@twisted-trac
Copy link
Author

twm's avatar @twm set owner to @twm
@twm set status to closed

In changeset c5fbd88

#!CommitTicketReference repository="" revision="c5fbd88704d048f858a7b0e452992848af7a3825"
Merge pull request #1380 from twisted/9512-black-v2

Author: twm
Reviewer: rodrigc
Fixes: ticket:9512

Initial configuration for black

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants