Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git error: bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) #1027

Open
dave42w opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dave42w
Copy link
Contributor

dave42w commented Nov 11, 2024

Bug Description

For some files (mostly when trying to commit multiple files) I'm getting this message (from with VSCODE and from the command line)

> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/dave/.cache/pre-commit/patch1731348310-81464.
ruff.....................................................................Passed
ruff-format..............................................................Failed
- hook id: ruff-format
- files were modified by this hook

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'mccabe' -> 'lint.mccabe'
1 file reformatted

[WARNING] Stashed changes conflicted with hook auto-fixes... Rolling back fixes...
[INFO] Restored changes from /home/dave/.cache/pre-commit/patch1731348310-81464.

I've tried changing pyproject.toml from [tool.ruff.mccabe] to [tool.ruff.lint.mccabe] but it doesn't help.

Steps to Reproduce

It's not entirely consistent. I can't work out why it happens for some groups of files (but not if committed singly). Latest example is after a 1 line change in authentication.py
from

        if "authorization" in request.headers:

to

        if request.headers.contains("authorization"):

Your operating system

Linux

Your Python version (python --version)

3.12

Your Robyn version

main branch

Additional Info

No response

@dave42w dave42w added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant