Skip to content

Commit

Permalink
codespell: workflow, config + 1 single uno only typo fixed! (#426)
Browse files Browse the repository at this point in the history
* Add github action to codespell main on push and PRs

* Add rudimentary codespell config

* Add pre-commit definition for codespell

* Fixed a single typo codespell identifier
  • Loading branch information
yarikoptic authored Jul 2, 2023
1 parent 20ea0c1 commit 088fa3b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
additional_dependencies:
- tomli
2 changes: 1 addition & 1 deletion benchmark/RESULTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ failing tests, 'WebDriver' object has no attribute 'find_element_by_id'

pomodoro: doesn't run it only tests

currency_converter: backend doesnt return anything
currency_converter: backend doesn't return anything

weather_app only runs test, no code existed
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,8 @@ exclude = '''
)/
)
'''

[tool.codespell]
skip = '.git,*.pdf,*.svg'
#
# ignore-words-list = ''

0 comments on commit 088fa3b

Please sign in to comment.