Add codespell support (CI to check, not to fix) and make it fix a few typos (#10297)

Another token of gratitude for a super useful tool and service.

More about codespell: https://github.com/codespell-project/codespell .

I personally introduced it to dozens if not hundreds of projects already
and so far only positive feedback.

CI workflow has 'permissions' set only to 'read' so also should be safe.

---------

Signed-off-by: Yaroslav O. Halchenko <debian@onerussian.com>
This commit is contained in:
Yaroslav Halchenko
2025-06-24 13:14:31 +09:00
committed by GitHub
parent 6ee19bac55
commit 86f76cd3df
28 changed files with 33 additions and 33 deletions
@@ -157,7 +157,7 @@ let argv (l:lens) = l . (sep_spc . l)*
* not need to have space between them, but bare arguments do.
*
* Apache apparently is also happy if the last argument starts with a double
* quote, but has no corresponding closing duoble quote, which is what
* quote, but has no corresponding closing double quote, which is what
* arg_dir_msg handles
*)
let dir_args =
@@ -418,7 +418,7 @@ class ApacheParser:
def add_dir(
self, aug_conf_path: Optional[str], directive: Optional[str], args: Union[List[str], str]
) -> None:
"""Appends directive to the end fo the file given by aug_conf_path.
"""Appends directive to the end of the file given by aug_conf_path.
.. note:: Not added to AugeasConfigurator because it may depend
on the lens
@@ -1091,7 +1091,7 @@ class MultipleVhostsTest(util.ApacheTest):
# pylint: disable=protected-access
http_vhost = self.config._get_http_vhost(ssl_vhost)
# Create an old (previously suppoorted) https redirectoin rewrite rule
# Create an old (previously supported) https redirectoin rewrite rule
self.config.parser.add_dir(
http_vhost.path, "RewriteRule",
["^",
@@ -110,7 +110,7 @@ SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA
# certificate chain for the server certificate. Alternatively
# the referenced file can be the same as SSLCertificateFile
# when the CA certificates are directly appended to the server
# certificate for convinience.
# certificate for convenience.
#SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt
# Certificate Authority (CA):
@@ -58,7 +58,7 @@ Listen 443
# PEM encoded CA certificates which form the certificate chain for the
# server certificate. Alternatively the referenced file can be the same as
# SSLCertificateFile when the CA certificates are directly appended to the
# server certificate for convinience.
# server certificate for convenience.
#SSLCertificateChainFile /etc/ssl/apache2/ca.crt
## Certificate Authority (CA):
@@ -26,7 +26,7 @@
#
# The following two options provide the default virtual host for the HTTP and
# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache
# will not listen for incomming connections on the approriate port.
# will not listen for incoming connections on the appropriate port.
#
# DEFAULT_VHOST Enables name-based virtual hosts, with the default
# virtual host being in /var/www/localhost/htdocs