Giter Site home page Giter Site logo

cclauss / autoblack Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 11.0 147 KB

GitHub Action that autoformats pull requests with psf/black

Home Page: https://github.com/cclauss/autoblack/actions

License: Apache License 2.0

Python 97.82% JavaScript 2.18%

autoblack's People

Contributors

ccc-ibm avatar cclauss avatar luckierdodge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autoblack's Issues

GitHub Action to automate `standard --fix` on pull requests

Could we make a similar GitHub Action and instead of running black . on Python code, we run standard --fix . on JavaScript code?

Use case: User submits a pull request containing JavaScript that is not up to standard. This Action runs and adds a fixup commit to that pull request with all JavaScript code in standard format. Of course, if all the JavaScript code is already standard compliant then this Action gives the PR a โœ….

@angsherpa232 @JasonEtco @Trott Your thoughts?

Auto reformating fails on repos that I do not own :-(

@vinayak @peter-evans Can you please open PRs that change the Python file in this repo so that its code is no longer Blackened? A bit of whitespace at the end of a line is all it takes.

The Actions in this repo work great for me on a repo that I own (like this one). They put a second commit on the pull requests that I make. That second commit contain the same code as the PRโ€™s first commit but reformatted with Black. This doe not seem to work on repos that I do not own.

Your PRs should help me understand the contents of printenv.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.