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

Add codespell (config, precommit, workflow) and make it fix typos #670

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

yarikoptic
Copy link

TODO

  • remove workflow if another CI catches typo via pre-commit)

Otherwise black does not work

    ❯ black shpc/client/__init__.py
    Invalid config keys detected: 'profile' (in /home/yoh/proj/misc/singularity-hpc/pyproject.toml)
    Usage: black [OPTIONS] SRC ...
    Try 'black -h' for help.

    Error: Config key exclude must be a string

    ❯ black --version
    black, 24.2.0 (compiled: yes)
    Python (CPython) 3.11.8
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w || :",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@yarikoptic yarikoptic marked this pull request as draft February 20, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant