Comments (4)
The --verbose gave good insights. All I had to do was adding .heroku/
to .gitignore
. Thank you so much for the help!
from black.
Note that extend-exclude is a regex. If your regex ends with /*
, it matches anything that ends with any number of / characters. You probably want /.*
at the end instead.
from black.
@JelleZijlstra well noted, thanks for that. I just tried with the /.*
in the end, but no luck either. Any insights on what I'm doing wrong here?
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
^/foo.py # exclude a file named foo.py in the root of the project
| .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
| .sql
| .html
| __init__.py
| app/.heroku/.*
)
'''
from black.
Not sure. Try passing --verbose
to get more information on exactly what Black is running.
from black.
Related Issues (20)
- Add pipx installation in documentation
- `--line-ranges` formats entire file when ranges are at EOF HOT 2
- It is my code
- The most recent example is the following table showing the number
- Imports inside functions should not have an empty line after them HOT 1
- AST safety check fails to catch incorrect f-string change HOT 6
- Failure to parse string templates with similar quotes HOT 4
- AttributeError: module 'black' has no attribute 'Mode'. Did you mean: 'mode'? HOT 1
- Unrelated testcases fail when total number of tests is increased beyond 367 HOT 3
- problematic formatting: indentation change in docstring HOT 7
- Crash on formatting `case case` syntax when line length set to be small HOT 2
- Style suggestiong: allow aligned dict values HOT 1
- Black cannot parse valid code HOT 2
- INTERNAL ERROR: Black produced invalid code: f-string: expecting '}' HOT 1
- GitHub Action: Option to parse version from pyproject.toml
- When reformatting a triple-quote string, black fails with an INTERNAL ERROR: Black produced code that is not equivalent to the source
- Empty line and `...` and "unindent does not match any outer indentation level" HOT 4
- #myomin
- Incorrectly strips tuple brackets from single entry tuple
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.