Skip to content

Commit

Permalink
Merge pull request #82 from yarikoptic/enh-codespell
Browse files Browse the repository at this point in the history
Enh codespell: workflow, config + typo fixes
  • Loading branch information
yarikoptic committed Mar 22, 2023
2 parents 400d2c4 + 00d9faa commit 3784897
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = .git,*.pdf,*.svg,venvs,versioneer.py,build,*.js,_version.py
ignore-words-list = commitish,includeds
19 changes: 19 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Codespell

on:
push:
branches: [master]
pull_request:
branches: [master]

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@v1
2 changes: 1 addition & 1 deletion _datalad_buildsupport/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _mk_title(self, prog):

def _mk_name(self, prog, desc):
"""
this method is in consitent with others ... it relies on
this method is in consistent with others ... it relies on
distribution
"""
desc = desc.splitlines()[0] if desc else 'it is in the name'
Expand Down
2 changes: 1 addition & 1 deletion datalad_deprecated/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def activate(self):
self._log_online = False
if self.active:
# this is not a warning, because there is nothing going
# wrong or being undesired. Nested invokation could happen
# wrong or being undesired. Nested invocation could happen
# caused by independent pieces of code, e.g. user code
# that invokes our own metadata handling.
lgr.debug("%s already active. No action taken", self)
Expand Down
2 changes: 1 addition & 1 deletion datalad_deprecated/ls_webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _traverse_handle_subds(
subds_rpath, rootds,
recurse_datasets, recurse_directories, json):
"""A helper to deal with the subdataset node - recurse or just pick up
may be alrady collected in it web meta
may be already collected in it web meta
"""
subds_path = opj(rootds.path, subds_rpath)
subds = Dataset(subds_path)
Expand Down
2 changes: 1 addition & 1 deletion datalad_deprecated/tests/test_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
nib = None


# somewhat superseeded by test_proxying_open_regular but still does
# somewhat superseded by test_proxying_open_regular but still does
# some additional testing, e.g. non-context manager style of invocation
# https://github.com/datalad/datalad/pull/3975/checks?check_run_id=369789030#step:8:398
@known_failure_windows
Expand Down

0 comments on commit 3784897

Please sign in to comment.