Skip to content

Commit 4ceb256

Browse files
committed
Update dependencies
1 parent 5f8459b commit 4ceb256

File tree

8 files changed

+31
-30
lines changed

8 files changed

+31
-30
lines changed

pyproject.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ home-page = "https://github.com/mongodb/snooty-parser"
1010
classifiers = ["License :: OSI Approved :: Apache Software License"]
1111
requires-python = "~= 3.7"
1212
requires = [
13-
"pymongo[srv,tls] ~= 3.7.2",
13+
"pymongo[srv,tls] ~= 3.10.1",
1414
"docutils == 0.16",
15-
"dnspython ~= 1.16.0",
16-
"watchdog ~= 0.9.0",
17-
"requests ~= 2.22.0",
18-
"toml ~= 0.10.0",
19-
"pyyaml ~= 5.1",
20-
"typing-extensions ~= 3.7.2",
21-
"python-jsonrpc-server ~= 0.1.2",
15+
"dnspython ~= 2.0.0",
16+
"watchdog ~= 0.10.3",
17+
"requests ~= 2.24.0",
18+
"toml ~= 0.10.1",
19+
"pyyaml ~= 5.3.1",
20+
"typing-extensions ~= 3.7.4.1",
21+
"python-jsonrpc-server ~= 0.3.4",
2222
"fett ~= 0.3.2",
23-
"networkx ~= 2.3",
23+
"networkx ~= 2.4",
2424
"docopt ~= 0.6.2"
2525
]
2626

2727
[tool.flit.metadata.requires-extra]
2828
dev = [
29-
"black ~= 19.3b0",
30-
"pyflakes ~= 2.1.1",
31-
"mypy ~= 0.701",
32-
"pyinstaller ~= 3.5"
29+
"black ~= 19.10b0",
30+
"pyflakes ~= 2.2.0",
31+
"mypy ~= 0.782",
32+
"pyinstaller ~= 3.6"
3333
]
3434
test = [
35-
"pytest ~= 4.4.1",
36-
"pytest-cov ~= 2.6.1"
35+
"pytest ~= 5.4.3",
36+
"pytest-cov ~= 2.10.0"
3737
]
3838

3939
[tool.flit.scripts]

snooty/diagnostics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(
217217
end: Union[None, int, Tuple[int, int]] = None,
218218
) -> None:
219219
super().__init__(
220-
f"Malformed glossary: glossary must contain only a definition list",
220+
"Malformed glossary: glossary must contain only a definition list",
221221
start,
222222
end,
223223
)

snooty/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def on_delete(self, page_id: FileId, build_identifiers: BuildIdentifierSet) -> N
128128

129129

130130
def construct_build_identifiers_filter(
131-
build_identifiers: BuildIdentifierSet
131+
build_identifiers: BuildIdentifierSet,
132132
) -> Dict[str, Union[str, Dict[str, Any]]]:
133133
"""Given a dictionary of build identifiers associated with build, construct
134134
a filter to properly query MongoDB for associated documents.

snooty/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def items(self) -> Iterable[Tuple[FileId, Page]]:
853853
return self.__postprocessed.items()
854854

855855
def flush(
856-
self
856+
self,
857857
) -> Tuple[Dict[str, SerializableType], Dict[FileId, List[Diagnostic]]]:
858858
"""Run the postprocessor if and only if any pages have changed, and return postprocessing results."""
859859
if not self.__changed_pages:
@@ -948,7 +948,7 @@ def __init__(
948948
)
949949

950950
def get_parsed_branches(
951-
self
951+
self,
952952
) -> Tuple[Optional[PublishedBranches], List[Diagnostic]]:
953953
try:
954954
path = self.config.root

snooty/rstparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def format_node(
255255

256256

257257
def layer_formatting(
258-
formatting: AbstractSet[specparser.FormattingType]
258+
formatting: AbstractSet[specparser.FormattingType],
259259
) -> Optional[docutils.nodes.Node]:
260260
"""Create a nested sequence of formatting nodes."""
261261
node = None

snooty/test_project.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ def test() -> None:
108108
assert backend.updates == [index_id, index_id]
109109

110110
# Ensure that published-branches.yaml has been parsed
111-
published_branches, published_branch_diagnostics = (
112-
project._project.get_parsed_branches()
113-
)
111+
(
112+
published_branches,
113+
published_branch_diagnostics,
114+
) = project._project.get_parsed_branches()
114115
assert len(published_branch_diagnostics) == 0
115116
assert project.config.title == "MongoDB title"
116117
assert published_branches and published_branches.serialize() == {

snooty/test_specparser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def test_load() -> None:
66
spec = specparser.Spec.loads(
7-
f"""
7+
"""
88
[meta]
99
version = 0
1010
@@ -70,7 +70,7 @@ def test_load() -> None:
7070
def test_inheritance_cycle() -> None:
7171
with pytest.raises(ValueError):
7272
specparser.Spec.loads(
73-
f"""
73+
"""
7474
[meta]
7575
version = 0
7676
@@ -86,7 +86,7 @@ def test_inheritance_cycle() -> None:
8686
def test_missing_parent() -> None:
8787
with pytest.raises(ValueError):
8888
specparser.Spec.loads(
89-
f"""
89+
"""
9090
[meta]
9191
version = 0
9292
@@ -101,7 +101,7 @@ def test_missing_parent() -> None:
101101

102102
def test_bad_type() -> None:
103103
spec = specparser.Spec.loads(
104-
f"""
104+
"""
105105
[meta]
106106
version = 0
107107
"""
@@ -114,14 +114,14 @@ def test_bad_type() -> None:
114114
def test_bad_version() -> None:
115115
with pytest.raises(ValueError):
116116
specparser.Spec.loads(
117-
f"""
117+
"""
118118
[meta]
119119
version = -1"""
120120
)
121121

122122
with pytest.raises(ValueError):
123123
specparser.Spec.loads(
124-
f"""
124+
"""
125125
[meta]
126126
version = 1"""
127127
)

tools/lint_changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def lint_changelog(data: str) -> None:
5555
if not match:
5656
fail(
5757
i,
58-
f"Bad version name: should either be '## [Unreleased]', or follow '## [MAJOR.MINOR.PATCH] - YYYY-MM-DD'",
58+
"Bad version name: should either be '## [Unreleased]', or follow '## [MAJOR.MINOR.PATCH] - YYYY-MM-DD'",
5959
)
6060
date_string = match["date"]
6161
try:

0 commit comments

Comments
 (0)