Comments (2)
Looks to be a duplicate of #3608, just using a dict instead of parentheses to make the expression.
Minimum reproduction: playground link
from black.
I fixed it manually :(
SSO_STG_AUTH_URL = "XXX" # fmt: skip
data = {
"username": get_from_vault_with_fallback("Hello", ENV_VARS.SCYLLA_TEST_USERNAME), # fmt: skip
"password": get_from_vault_with_fallback("Hello", ENV_VARS.SCYLLA_TEST_PASSWORD), # fmt: skip
"client_secret": get_from_vault_with_fallback("Hello", ENV_VARS.SCYLLA_TEST_CLIENT_SECRET), # fmt: skip
"client_id": "XXX",
"grant_type": "password",
}
to
# fmt: off
SSO_STG_AUTH_URL = "XXX"
data = {
"username": get_from_vault_with_fallback("Hello", ENV_VARS.SCYLLA_TEST_USERNAME),
"password": get_from_vault_with_fallback("Hello", ENV_VARS.SCYLLA_TEST_PASSWORD),
"client_secret": get_from_vault_with_fallback("Hello", ENV_VARS.SCYLLA_TEST_CLIENT_SECRET),
"client_id": "XXX",
"grant_type": "password",
}
# fmt: on
It's not much, but it's honest work :)
I think the problem was that I used too many # fmt: skip
from black.
Related Issues (20)
- Black produced different code on the second pass of the formatter. HOT 2
- Make `black` work like `black $(pwd)` HOT 3
- Black breaks variable assignments with comments inconsistently HOT 2
- Combine f-strings which would be placed on the same line
- Black produces different results in different environments for code containing curly braces when used with the same version and options HOT 2
- Psfback
- Output of func collected in tuple with long names skips indentation HOT 3
- Black fails with `ASTSafetyError` on comment line in return type annotation
- `MemoryError` when formatting Jupyter notebook HOT 5
- Black's treatment of trailing commas depends on previous statements. HOT 2
- black could more efficiently skip directories listed in .gitignore HOT 2
- Allow valid version specifier when specifying Black version in `pyproject.toml` HOT 2
- Black failed to reformat HOT 1
- Cannot parse nested f-strings if the same quote char is used inside and outside. HOT 2
- global config not possible if project contains a `pyproject.toml`
- Error in the setup docs for black. HOT 4
- INTERNAL ERROR: Black produced code that is not equivalent to the source HOT 5
- Make Readability your main focus. HOT 2
- Cannot parse multiline f-string starting with backslash `\` 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.