Comments (3)
Hi Xiaoming! Black requires Python 3.6+. Looks like the uploaded package for some reason doesn't state this clearly and installs on any Python 3 version. I will have to look into that.
from black.
I don't quite know what information in setup.py suggests to setup.py bdist_wheel
that this is a package that will run on any Python 3. I am specifying python_requires=
after all.
from black.
I was having a similar issue when I mistakenly installed the Ubuntu pre-commit snap package. It was for some reason always then trying to run in a Python 3.5 environment. Apparently you don't need this. Uninstall it and just install the Python package. Make sure to open a new terminal first for the changes to take effect.
from black.
Related Issues (20)
- Line too long: string literal doesn't get split HOT 1
- Black fails with match-case statement with multiple branches HOT 2
- PEP 701 support breaks stability policy HOT 10
- Black cannot parse previously parseable file in 24.4.1 HOT 14
- black 24.4.1 hangs with python 3.10.12 HOT 6
- Black not deleting unnecessary brackets HOT 3
- Cannot format f-strings where the contents re-use the same quotes as the enclosing f-string HOT 1
- 24.4.2: pytest fails in tests/test_format.py with `AssertionError` HOT 3
- Cannot parse multiline f-string containing multiline string HOT 1
- Is there any way to have a permalink for a specific version in the changelog doc? HOT 5
- Unnecessary parentheses added to expression in indexed assignment
- "EOF in multi-line string" on string containing same quote nested in f-string HOT 2
- Failure to format when double-quotes are in an f-string's code block HOT 6
- Long lines that concatenate list comprehensions HOT 3
- Black Formatter not working for this code. HOT 2
- Python 3.12 `def f[T: Generics](...)` HOT 2
- Strings not being formatted by Black HOT 3
- Black fails to format string which has '='s etc HOT 2
- Black v24.4.1 & v24.4.2 fails to format f-strings containing multi-line strings HOT 1
- Advice (UFMT) command-failed Failed due to ASTSafetyError HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from black.