Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[MNT]: Add codespell to pre-commit hooks #22740

Closed
Milestone
@matthewfeickert

Description

@matthewfeickert

Summary

In PR#22733@QuLogic caught a spelling error of mine (which is great!) but there will inevitably be typos that slip through if only humans are checking.https://github.com/codespell-project/codespell is a really nice way to check for typos and it has a nice pre-commit hook. As Matplotlibalready uses pre-commit 🚀 (thanks to@ianhi in PR#21583) this would be an easy add. 👍

Proposed fix

Add the following hook (maybe some variations) to.pre-commit-config.yaml

  -repo:https://github.com/codespell-project/codespellrev:v2.1.0hooks:      -id:codespellfiles:^.*\.(py|c|h|md|rst|yml)$args:["--write-changes", "--ignore-words-list", "hist,nd"]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp