From b9875e4c71122402f5aa5e21ce3baa69cf2dc596 Mon Sep 17 00:00:00 2001 From: rht Date: Fri, 16 Feb 2024 04:15:19 -0500 Subject: [PATCH 1/3] ci: Move codespell to pre-commit --- .github/workflows/codespell.yml | 18 ------------------ .pre-commit-config.yaml | 8 ++++++++ 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index 119fe8904e6..00000000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: build - -on: - push: - branches: - - main - - release** - pull_request: - -jobs: - codespell: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: codespell-project/actions-codespell@master - with: - ignore_words_file: .codespellignore - skip: .*bootstrap.*,*.js,.*bootstrap-theme.css.map diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2cf01563948..32f2f7d53a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,3 +24,11 @@ repos: - id: trailing-whitespace - id: check-toml - id: check-yaml +- repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + args: [ + "--ignore-words", + ".codespellignore", + ] From bc0a21985ec91a10a13ecc7364be913bd4127114 Mon Sep 17 00:00:00 2001 From: rht Date: Fri, 16 Feb 2024 04:15:46 -0500 Subject: [PATCH 2/3] Intentionally introduce typos --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 78b1c5f44f8..cb5659c6557 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ | Meta | [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) | | Chat | [![chat](https://img.shields.io/matrix/project-mesa:matrix.org?label=chat&logo=Matrix)](https://matrix.to/#/#project-mesa:matrix.org) | -Mesa allows users to quickly create agent-based models using built-in +Mesa alllows ussers to quickly create agent-based models using built-in core components (such as spatial grids and agent schedulers) or customized implementations; visualize them using a browser-based interface; and analyze their results using Python's data analysis From 97c45366df21d4ce4fde21b290ea70fc6bd54516 Mon Sep 17 00:00:00 2001 From: rht Date: Fri, 16 Feb 2024 04:17:31 -0500 Subject: [PATCH 3/3] Fix intentionally introduced typos --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb5659c6557..78b1c5f44f8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ | Meta | [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) | | Chat | [![chat](https://img.shields.io/matrix/project-mesa:matrix.org?label=chat&logo=Matrix)](https://matrix.to/#/#project-mesa:matrix.org) | -Mesa alllows ussers to quickly create agent-based models using built-in +Mesa allows users to quickly create agent-based models using built-in core components (such as spatial grids and agent schedulers) or customized implementations; visualize them using a browser-based interface; and analyze their results using Python's data analysis