Skip to content

Commit 056831c

Browse files
authored
Add codespell: config, workflow (to alert when new typos added) and get typos fixed (#302)
* Add github action to codespell master on push and PRs * Add rudimentary codespell config * remove spurious space added in d79fe14 * ignore logs * [DATALAD RUNCMD] run codespell throughout but ignore fail === Do not change lines below === { "chain": [], "cmd": "codespell -w || :", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ * [DATALAD RUNCMD] Do interactive fixing of some ambigous typos === Do not change lines below === { "chain": [], "cmd": "codespell -w -i 3 -C 2", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 64f3812 commit 056831c

31 files changed

Lines changed: 69 additions & 41 deletions

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ or using Python's builtin `venv` instead of `virtualenvwrapper`:
4343
```
4444
4545
The new environment exists and is activated.
46-
Now install the development dependencies into that environemt:
46+
Now install the development dependencies into that environment:
4747
```
4848
(wsgidav_py34) $ pip install -r requirements-dev.txt
4949
```

.github/workflows/codespell.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
codespell:
15+
name: Check for spelling errors
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
- name: Codespell
22+
uses: codespell-project/actions-codespell@v2

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
[symlinks may be a security risk](https://serverfault.com/questions/244592/followsymlinks-on-apache-why-is-it-a-security-risk).<br>
2525
File resources that are symlinks are still enumerated and listed by the
2626
directory browser. However trying to access content will raise '403 Forbidden'
27-
Pass _follow_symlinks=True_ to the FilesystemProvider constructor or yaml configration
27+
Pass _follow_symlinks=True_ to the FilesystemProvider constructor or yaml configuration
2828
to restore the previous behavior.
2929
- Add `fs_dav_provider.shadow_map`, which can be used to blend in a favicon
3030
when context is opened inline (#230)

docs/source/THANKS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Martin Wendt:
66

77
* St�phane Klein for many contributions and testing on Mac
88

9-
* All other contributers:
9+
* All other contributors:
1010
http://code.google.com/p/wsgidav/people/list
1111
https://github.com/mar10/wsgidav/graphs/contributors
1212

docs/source/_templates/autosummary/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
..
44
Custom formatting of module doc layout
55
https://stackoverflow.com/questions/48074094/use-sphinx-autosummary-recursively-to-generate-api-documentation
6-
TODO: how can we add the documented module attribuets (constants, ...)?
6+
TODO: how can we add the documented module attributes (constants, ...)?
77
88
.. rubric:: Description
99

docs/source/addons-mercurial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Usage
1717
-----
1818
.. note:: This is **not** production code.
1919

20-
To publish a Mercurial repository by the share name 'hg', simply add thes lines
20+
To publish a Mercurial repository by the share name 'hg', simply add these lines
2121
to the configuration file::
2222

2323
# Publish a Mercurial repository

docs/source/addons-mysql.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The table's columns are mad accessible as live properties:
2020

2121
Usage
2222
-----
23-
To publish an MySQL database, simply add thes lines to the configuration file::
23+
To publish an MySQL database, simply add these lines to the configuration file::
2424

2525
### Publish an MySQL 'world' database as share '/world-db'
2626
from wsgidav.samples.mysql_dav_provider import MySQLBrowserProvider

docs/source/addons-virtual.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ contains some virtual files with additional information:
2828

2929
Usage
3030
-----
31-
To publish the sample virtual resources, simply add thes lines to the
31+
To publish the sample virtual resources, simply add these lines to the
3232
configuration file::
3333

3434
# Publish a virtual structure

docs/source/changelog04.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Also, the config file is optional, i.e. the server runs also with command line o
8383

8484
<li>
8585
Property manager<br>
86-
Removed propertylibrary helper fuctions (only !PropManager class left).<br>
86+
Removed propertylibrary helper functions (only !PropManager class left).<br>
8787
Add property functions to davProvider
8888
getProperties() returns (name, value) tuples, where value is etree.Element
8989
or HTTPRequestException().<br>

docs/source/development.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ committing the changes. The pull request will then need to be approved before i
9393
.. note::
9494

9595
Don't mix different topics in a single commit or issue. Instead submit a new pull request (and
96-
even create separate branches as apropriate).
96+
even create separate branches as appropriate).
9797

9898

9999
Setup for Development
@@ -120,7 +120,7 @@ Create and Activate a Virtual Environment
120120
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121121

122122
Virtual environments allow us to develop and test in a sandbox, without affecting our
123-
system othwerwise. |br|
123+
system otherwise. |br|
124124
We need `Python 2.7 <https://www.python.org/downloads/>`_,
125125
`Python 3.4+ <https://www.python.org/downloads/>`_,
126126
and `pip <https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip>`_ on our system.
@@ -183,7 +183,7 @@ Hack, Hack, Hack
183183
Since version 3.x source formatting rules are delegated to the
184184
`Black library <https://black.readthedocs.io/en/stable/>`_.
185185

186-
Failing tests or not follwing PEP 8 will break builds on
186+
Failing tests or not following PEP 8 will break builds on
187187
`travis <https://app.travis-ci.com/github/mar10/wsgidav>`_ and therefore be
188188
automatically rejected:
189189

0 commit comments

Comments
 (0)