From bb5ca11c85d05bae6be778ccb70e829fc38d819e Mon Sep 17 00:00:00 2001 From: sashacmc Date: Mon, 15 Jun 2026 00:14:59 +0200 Subject: [PATCH] Add codespell CI, fix typos --- .github/workflows/codespell.yml | 13 +++++++++++++ README.md | 1 + photo-importer-win.cfg | 2 +- photo-importer.cfg | 2 +- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..c7fdcac --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,13 @@ +name: Codespell + +on: [push, pull_request] + +jobs: + codespell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: codespell-project/actions-codespell@v2 + with: + skip: "*.log,*.lock,node_modules,build,dist,debian,test_data,test_data_bak,*.egg-info,.git" + ignore_words_list: "foto" diff --git a/README.md b/README.md index fdcde5b..a9ee66f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Photo Importer ![CodeQL](https://github.com/sashacmc/photo-importer/workflows/CodeQL/badge.svg) +![Codespell](https://github.com/sashacmc/photo-importer/actions/workflows/codespell.yml/badge.svg) [![PyPI - Version](https://img.shields.io/pypi/v/photo-importer.svg)](https://pypi.org/project/photo-importer) [![PyPI - Downloads](https://pepy.tech/badge/photo-importer)](https://pepy.tech/project/photo-importer) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) diff --git a/photo-importer-win.cfg b/photo-importer-win.cfg index 43450b2..0ec7269 100644 --- a/photo-importer-win.cfg +++ b/photo-importer-win.cfg @@ -38,7 +38,7 @@ umask = 0o000 # Use jpegtran in place of exiftran (bool, 0/1) use_jpegtran = 1 -# Use shutil libarary in place of system calls (bool, 0/1) +# Use shutil library in place of system calls (bool, 0/1) # slower but provide more cross platform compatibility use_shutil = 1 diff --git a/photo-importer.cfg b/photo-importer.cfg index 48b7428..9d5cc38 100644 --- a/photo-importer.cfg +++ b/photo-importer.cfg @@ -38,7 +38,7 @@ umask = 0o000 # Use jpegtran in place of exiftran (bool, 0/1) use_jpegtran = 0 -# Use shutil libarary in place of system calls (bool, 0/1) +# Use shutil library in place of system calls (bool, 0/1) # slower but provide more cross platform compatibility use_shutil = 0