codespell: workflow, config + 1 single uno only typo fixed! (#426)

* 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
This commit is contained in:
Yaroslav Halchenko
2023-07-02 16:47:31 +02:00
committed by GitHub
parent 20ea0c126a
commit 088fa3b44c
4 changed files with 35 additions and 1 deletions

22
.github/workflows/codespell.yml vendored Normal file
View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -99,3 +99,8 @@ exclude = '''
)/
)
'''
[tool.codespell]
skip = '.git,*.pdf,*.svg'
#
# ignore-words-list = ''