Skip to content

Commit

Permalink
Merge branch 'master' into repo-helper-update
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Oct 5, 2021
2 parents 3915e43 + e86d849 commit 0d0b975
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configconfig/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class NotStrTest(ConfigVarTest):
that can't be strings.
""" # noqa: D400

def test_error_str(self): # noqa: D102
def test_error_str(self):
"""
Checks that the :class:`~configconfig.configvar.ConfigVar`
raises a :class:`ValueError` when passed a :class:`str`.
Expand All @@ -136,7 +136,7 @@ class ListTest(NotStrTest, NotBoolTest, NotIntTest, ConfigVarTest):
used by the :class:`~configconfig.configvar.ConfigVar`
"""

def test_success(self): # noqa: D102
def test_success(self):
"""
Checks that the :class:`~configconfig.configvar.ConfigVar` can correctly parse various :class:`list` values.
"""
Expand Down Expand Up @@ -165,7 +165,7 @@ class DirectoryTest(NotBoolTest, NotIntTest, ConfigVarTest):
used by the :class:`~configconfig.configvar.ConfigVar`
"""

def test_success(self): # noqa: D102
def test_success(self):
"""
Checks that the :class:`~configconfig.configvar.ConfigVar` can correctly parse various directory values.
"""
Expand All @@ -181,7 +181,7 @@ def test_error_list_int(self):
raises a :class:`ValueError` when passed a :class:`str`.
""" # noqa: D400

with pytest.raises(ValueError, match="'.*' must be a <class 'str'>"): # noqa: PT011
with pytest.raises(ValueError, match="'.*' must be a <class 'str'>"):
self.config_var.get({self.config_var.__name__: test_list_int})

def test_error_list_str(self):
Expand Down
1 change: 1 addition & 0 deletions doc-source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Contents

Contributing Guide <https://contributing.repo-helper.uk>
Source
license

.. start links
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ check_untyped_defs = true
warn_unused_ignores = true
no_implicit_optional = true
show_error_codes = true
incremental = false

[tool.snippet-fmt]
directives = [ "code-block",]
Expand Down

0 comments on commit 0d0b975

Please sign in to comment.