Skip to content

add black formatter to pre-commit #4163

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

Merged
merged 2 commits into from
Oct 8, 2020

Conversation

MarcoGorelli
Copy link
Contributor

closes #4109 (!)

@codecov
Copy link

codecov bot commented Oct 8, 2020

Codecov Report

Merging #4163 into master will not change coverage.
The diff coverage is 62.50%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4163   +/-   ##
=======================================
  Coverage   88.75%   88.75%           
=======================================
  Files          89       89           
  Lines       14038    14038           
=======================================
  Hits        12460    12460           
  Misses       1578     1578           
Impacted Files Coverage Δ
pymc3/step_methods/hmc/quadpotential.py 79.56% <0.00%> (ø)
pymc3/model_graph.py 88.40% <71.42%> (ø)

Copy link
Contributor

@AlexAndorra AlexAndorra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks @MarcoGorelli !

@AlexAndorra AlexAndorra merged commit 2482a35 into pymc-devs:master Oct 8, 2020
@MarcoGorelli MarcoGorelli deleted the pre-commit-black branch October 8, 2020 18:43
@MarcoGorelli
Copy link
Contributor Author

No worries! At this point the wiki should probably also have a "Python code style" section, seeing as this and pyupgrade are checked during CI...I'll put something together later

@AlexAndorra
Copy link
Contributor

Ah right, good point 👌 Tell me when you've added the new section / updated the existing ones and I'll read it 😉

@MarcoGorelli
Copy link
Contributor Author

Ah right, good point ok_hand Tell me when you've added the new section / updated the existing ones and I'll read it wink

Sure, here's a first draft https://github.com/pymc-devs/pymc3/wiki/PyMC3-Python-Code-Style

@AlexAndorra
Copy link
Contributor

That's perfect, thanks @MarcoGorelli 👌
Also, I think this means step 3 of the NB style guide can be merged with step 2 now, can't it?

@MarcoGorelli
Copy link
Contributor Author

That's perfect, thanks @MarcoGorelli ok_hand

Thanks!

Also, I think this means step 3 of the NB style guide can be merged with step 2 now, can't it?

Not yet, no - currently .pre-commit-config.yaml has black, but not yet nbqa-black, there's still some notebooks left to clean up (else CI will always fail 😄 )

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.

Apply black formatter
2 participants