Giter VIP home page Giter VIP logo

black's Introduction

What is this repository?

This repository is a fork of Python Software Foundation's Black repository, created so that Bloomberg's engineering team can collaborate with each other (and the rest of the Black community) on enhancements to Black. Branches in this repository represent 'work in progress' that will be contributed to the Python Software Foundation Black repository when the work is ready for review.

If you have any questions about the branches in this repository, feel free to open an issue so our team can discuss them with you.

black's People

Contributors

kpfleming avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

grigoriosgiann

black's Issues

Black fails when using `sizeof`

Describe the bug

Black fails on a simple cython file which uses sizeof.

To Reproduce

  1. Create the file
# file.pyx
cdef INT32_SIZE = sizeof(int)
  1. Apply black on it:
$ black -t cython file.pyx
error: cannot format file.pyx: Cannot parse: 12:5: cdef INT32_SIZE = sizeof(np.int32_t)
Oh no! ๐Ÿ’ฅ ๐Ÿ’” ๐Ÿ’ฅ
1 file failed to reformat.

Expected behavior
This should not fail as this is a valid cython file.

Environment (please complete the following information):

  • Operating System and Version: ArchLinux, Python 3.9.2, black 19.3b0 (downloaded from the cython_support branch).

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.