Git Product home page Git Product logo

white's Introduction

White: Black, but brighter (PEP8–inspired)

Black is an amazing tool for auto–formatting Python code in a style that I prefer. I use it in all my projects.

It has one configuration option — to change its default line–length of 88 chars to, say, 79, like PEP8 recommends.


That is exactly what white does. It invokes $ black --line-length 79 on your behalf.

Usage

$ white myapp.py
reformatted myapp.py

http://share.kennethreitz.org/2L2m1U1A3m0L/Screen%20Shot%202018-03-15%20at%206.21.04%20AM.png

Installation

$ pipenv install white
✨🍰✨

white's People

Contributors

kennethreitz avatar svisser 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  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  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  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  avatar  avatar  avatar

white's Issues

white is not installing black

Hi @kennethreitz! Thank you for creating this convenience package.

I'm having an issue installing white. It looks like the package isn't installing the black dependency.

If I pipenv (or just pip) install white, the white package installs successfully; however, the black package isn't installed.

$ pip install white
Fri Apr  6 16:25:15 2018
Collecting white
  Using cached white-0.1.2-py2.py3-none-any.whl
Installing collected packages: white
Successfully installed white-0.1.2
$ pip list
Package    Version
---------- -------
pip        9.0.3
setuptools 39.0.1
white      0.1.2
$ white --help
Traceback (most recent call last):
  File "/Users/chrlunsf/dev/tmp/white/venv/bin/white", line 7, in <module>
    from white import main
  File "/Users/chrlunsf/dev/tmp/white/venv/lib/python3.6/site-packages/white.py", line 3, in <module>
    import black
ModuleNotFoundError: No module named 'black'

pipenv-install-white.log

AttributeError: module 'delegator' has no attribute 'run'

When i tried to run
white fx_check.py
i got this error:

$ white fx_check.py Traceback (most recent call last): File "/home/sherif/miniconda3/bin/white", line 11, in <module> load_entry_point('white==0.0.1', 'console_scripts', 'white')() File "/home/sherif/miniconda3/lib/python3.6/site-packages/white-0.0.1-py3.6.egg/white.py", line 20, in main c = delegator.run( AttributeError: module 'delegator' has no attribute 'run'

but if i run black fx_check.py it worked well

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.