mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
parent
0f9dd6478b
commit
3ef7c16e8d
1 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,15 @@ from colorama import Fore, Style
|
|||
|
||||
from .settings import Config
|
||||
|
||||
try:
|
||||
# this is used for windows + gitbash to set encoding correctly.
|
||||
import sys
|
||||
|
||||
sys.stdout.reconfigure(encoding="utf-8") # type: ignore[attr-defined]
|
||||
# pylint:disable=W0703
|
||||
except BaseException:
|
||||
pass
|
||||
|
||||
|
||||
def print_output(
|
||||
config: Config, file_errors: List[Dict[Any, Any]], file_count: int
|
||||
|
|
|
|||
Loading…
Reference in a new issue