-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
chore: apply codespell pre-commit hook #460
Conversation
69e673b
to
c969b26
Compare
why don't enable autofix on codespell.🤔 but it's all ok. |
What do you mean by enabling autofix? I did not find any reference for that. |
codespell can autofix some common typo by using flags
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args:
- --check-filenames
- --write-changes But it seems you adopt toml as additional dependencies, the flags may be placed in pyproject.toml. |
Plus, codespell is a python cli, and it can be used as dev or lint dependencies for convenient local use.🤔 |
Hi @msclock, I started a discussion [1] on pdm project here about managing dev dependencies. I would like to known your preference especially for those standalone development tools, such as
Any comments? BTW, why I have concern on this is trying to avoid explosion of lockfile, considering that we will have many other tools like |
@huxuan the thought of deps categories seems quite good. Different tools adopt different ways. my initial ideas:
I consider we are just separating installation dependent of those independent tools. And its runnings can be designed to resolve other issues by nox/tox/pipe. |
Hi @msclock Just for double confirm, I summarized a list according to our project. Please take a look and double check we are on the same page.
Actually, the only thing I am not sure is whether we should treat For the tox/nox, I still have a little concern to involve more tools since it bring more complexity for template users, but since we will use pipx anyway, we can first keep using it. Moreover, as I have implemented the [1] pypa/pipx#1301 |
And I think there could be a rule for our pre-commit config, we should try to use the |
great job👍 keep the use of pipx is good choice. thus those things will not conflict again. for nox/tox it is working as the same as the project makefile. I consider we could keep it for now. mypy needs to inspect the project and its deps, so I consider it should be kept with devs-dependencies. |
it is true practical for python projects, especially accounting for network issues. non-python projects need to verify. because it requires a deps registry well managed to install them by pip or pipx. |
Ok then I will close this pull request and create an issue to manage these dependencies well.
Yep, I personally prefer
Absolutely, I just assume we are talking about |
No description provided.