question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Emojis for `black` Not Working

See original GitHub issue

search tried in the issue tracker

emoji

describe your issue

I posted Issue 3156 on black’s repo, but it appears the issue may be with pre-commit.

My terminal (PowerShell 7.2.5) support emojis, but they are not getting printed specifically for black for some reason:

image

Using black by itself on the commandline works just fine

image

I simply run pre-commit run --all. My .pre-commit-config.yaml is below and my pyproject.toml is

[tool.black]
line-length = 90
skip-string-normalization = true
target-version = ["py38"]
include = '.*\.pyi?$'
exclude = '\.eggs|\.git|\.mypy_cache|\.tox|\.venv|build|dist'

[tool.pycln]
all = true
include = '.*\.pyi?$'
extend_exclude = 'stubs/vtkmodules-stubs/all.pyi|stubs/vtkmodules-stubs/web/camera.pyi'

pre-commit --version

2.19.0

.pre-commit-config.yaml

minimum_pre_commit_version: "2.19.0"
fail_fast: true
repos:
  - repo: https://github.com/python-jsonschema/check-jsonschema
    rev: 0.16.2
    hooks:
      - id: check-gitlab-ci
        name: (check-jsonschema) Check `.gitlab-ci.yml` formatted correctly

  - repo: local
    hooks:
      - id: pyupgrade
        name: (pyupgrade) Format source to latest python syntax
        language: system
        files: .*\.pyi?$
        entry: pyupgrade
        args: [
            "--py310-plus",
        ]

  - repo: local
    hooks:
      - id: pycln
        name: (pycln) Remove unused imports
        language: system
        files: .*\.pyi?$
        entry: pycln
        args: [
          "--config=pyproject.toml"
        ]

  - repo: local
    hooks:
      - id: black
        name: (black) Format source code
        language: system
        files: .*\.pyi?$
        entry: black

~/.cache/pre-commit/pre-commit.log (if present)

N/A (log is empty)

Additional Info:

  • Black’s version: 22.6.0
  • Pre-Commit’s version: 2.19.0
  • Pycln’s version: 2.0.1
  • OS and Python version: Windows 10 x64-bit
  • PowerShell: 7.2.5
  • VSCode: 1.68.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
asottilecommented, Jul 7, 2022

I scrolled through your recent issues on github – this seems to be a common problem from your end so please take a moment to think about that

while scrolling through I also noticed that I already told you exactly what your problem was here: https://github.com/pre-commit/pre-commit/issues/2437#issuecomment-1172952612

2reactions
asottilecommented, Jul 7, 2022

you’re seriously telling me to be more patient when you can’t wait 30 minutes for a response? and you expect me to be immediately attentive to open source issues and immediately acknowledge your message? you need to take a step back and adjust your expectations of people doing stuff for free for you. there’s absolutely no SLA here and you are not sponsoring me or my projects for which you’re deriving value

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GUIDE] Fix emoji displaying black version instead of colored ...
Hello everyone! Ever noticed some of the emoji on your Android device displaying a black version of the emoji instead of the better...
Read more >
emojis are only in black and white. How do I restore color ...
emojis are only in black and white. How do I restore color emojis? ... What troubleshooting steps have you done so far?
Read more >
Allow to disable emoji in output · Issue #223 · psf/black - GitHub
Some of my co-developers raised concerns about emojis looking out of place in CI output, so I'd like to propose a BLACK_NO_FUN environment...
Read more >
How To FIX Missing Emojis On Android! (2022) - YouTube
Get The Cheapest iPhones Here: https://amzn.to/3JTnWArGet The Cheapest Androids Here: https://amzn.to/3r2k1stFollow Me On Twitter: ...
Read more >
Are You Guilty Of Emoji Blackface? - Refinery29
I'm not here to suggest that a white person using dark emoji equates to all-out racism, nor am I here to police your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found