From da6fb6d32319c86504fbfc8cb02cc82f1c5ad67d Mon Sep 17 00:00:00 2001 From: joncrall <jon.crall@kitware.com> Date: Thu, 17 Oct 2024 14:21:33 -0400 Subject: [PATCH] Add codespell config --- pyproject.toml | 6 ++++++ scriptconfig/__init__.py | 2 +- scriptconfig/config.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 10a58fc..95d15eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,3 +37,9 @@ branch = true [tool.coverage.report] exclude_lines = [ "pragma: no cover", ".* # pragma: no cover", ".* # nocover", "def __repr__", "raise AssertionError", "raise NotImplementedError", "if 0:", "if trace is not None", "verbose = .*", "^ *raise", "^ *pass *$", "if _debug:", "if __name__ == .__main__.:", ".*if six.PY2:",] omit = [ "scriptconfig/__main__.py", "*/setup.py",] + +[tool.codespell] +skip = ['./docs/build', './scriptconfig.egg-info'] +count = true +quiet-level = 3 +ignore-words-list = ["ANS", "doesnt", "cant"] diff --git a/scriptconfig/__init__.py b/scriptconfig/__init__.py index 5ace799..54d6685 100644 --- a/scriptconfig/__init__.py +++ b/scriptconfig/__init__.py @@ -13,7 +13,7 @@ ScriptConfig +------------------+--------------------------------------------------+ The goal of ``scriptconfig`` is to make it easy to be able to define a CLI by -**simply defining a dictionary**. Thie enables you to write simple configs and +**simply defining a dictionary**. This enables you to write simple configs and update from CLI, kwargs, and/or json. The pattern is simple: diff --git a/scriptconfig/config.py b/scriptconfig/config.py index ad9d378..c66a88f 100644 --- a/scriptconfig/config.py +++ b/scriptconfig/config.py @@ -1505,7 +1505,7 @@ class Config(ub.NiceRepr, DictLike, metaclass=MetaConfig): >>> parser = ns['parser'] >>> args1 = parser.parse_args(['foobar']) >>> assert args1.data == 'foobar' - >>> # Looks like we cant do positional or key/value easilly + >>> # Looks like we can't do positional or key/value easilly >>> #args1 = parser.parse_args(['--data=blag']) >>> #print('args1 = {}'.format(ub.urepr(args1, nl=1))) -- GitLab