Skip to content

Conversation

@lsorber
Copy link
Member

@lsorber lsorber commented Dec 24, 2025

Closes #14.

Changes:

  • Add codespell linter.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the codespell linter to the Substrate Python project template to help catch spelling mistakes in code, comments, and documentation.

  • Adds codespell as a development dependency with version constraint >=2.4.1
  • Configures codespell with appropriate built-in dictionaries and file/directory exclusions
  • Integrates codespell into the pre-commit workflow to check markdown, Python, TOML, and YAML files

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
template/pyproject.toml.jinja Adds codespell dev dependency and configuration section with built-in dictionaries, filename checking, and skip patterns
template/.pre-commit-config.yaml.jinja Adds codespell hook to pre-commit configuration with appropriate file type filters

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lsorber lsorber merged commit 9b586ff into main Dec 24, 2025
23 checks passed
@lsorber lsorber deleted the ls-codespell branch December 24, 2025 11:03
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.

Evaluate adding codespell as a pre-commit linter

2 participants