--- /dev/null
+# Copyright (c) 2020 mudpy authors. Permission to use, copy,
+# modify, and distribute this software is granted under terms
+# provided in the LICENSE file distributed with this software.
+
+[codespell]
+ignore-words-list = files',wont,teh,theyre,youre
+skip = *.pyc,.eggs,.git,.tox,build
Now you should be able to invoke any tox testenv you like. Just
running :command:`tox` without any additional options will go
-through the defalt battery of checks and is a good way to make sure
+through the default battery of checks and is a good way to make sure
everything is installed and working. Once you're ready to try out
the server interactively, launch it like this::
# don't proceed if there are no lines
if filtered_count:
- # can't start before the begining or at the end
+ # can't start before the beginning or at the end
if start > filtered_count:
start = filtered_count
if start < 1:
# characters, printable or otherwise
abs_pos = 0
- # the current text position relative to the begining of the line,
+ # the current text position relative to the beginning of the line,
# ignoring color escape sequences
rel_pos = 0
# normalize any potentially composited unicode before we count it
text = unicodedata.normalize("NFKC", text)
- # iterate over each character from the begining of the text
+ # iterate over each character from the beginning of the text
for each_character in text:
# the current character is the escape character
# characters but the space it replaced was only one
abs_pos += 1
- # now we're at the begining of a new line, plus the
+ # now we're at the beginning of a new line, plus the
# number of characters wrapped from the previous line
rel_pos -= last_rel_whitespace
last_rel_whitespace = 0
# make a local copy to play with
text = user.partial_input
- # start at the begining of the input
+ # start at the beginning of the input
position = 0
# as long as we haven't checked it all
log("Ignored unknown command %s from" % command, user)
text = text[:position] + text[position + 2:]
- # and this means we got the begining of an IAC
+ # and this means we got the beginning of an IAC
else:
position += 1
---
-_copy: Copyright (c) 2004-2019 mudpy authors. Permission to use, copy,
+_copy: Copyright (c) 2004-2020 mudpy authors. Permission to use, copy,
modify, and distribute this software is granted under terms
provided in the LICENSE file distributed with this software.
and stop the entire program.
command.help.description: List commands or get help on one.
-command.help.help: This will list all comand words available to you along with
+command.help.help: This will list all command words available to you along with
a brief description or, alternatively, give you detailed information on one
command.
[tox]
minversion = 3.1
-envlist = bandit, dist, docs, flake8, yamllint, selftest_config, py3
+envlist = bandit, codespell, dist, docs, flake8, yamllint, selftest_config, py3
skipsdist = True
ignore_basepython_conflict = True
commands = bandit -r mudpy -x mudpy/tests {posargs}
usedevelop = False
+[testenv:codespell]
+# TODO(fungi) switch to a proper PyPI dep once .codespellrc is supported in a
+# release version, and ratchet down deprecation warnings for it at that point
+#setenv =
+# PYTHONWARNINGS=error
+#deps = codespell
+deps = git+https://github.com/codespell-project/codespell
+commands = codespell {posargs}
+usedevelop = False
+
[testenv:demo]
commands = mudpy {posargs}