Skip to content

Commit

Permalink
Merge pull request #28 from bbc2/update-dependencies
Browse files Browse the repository at this point in the history
Update Python dependencies
  • Loading branch information
bbc2 authored Feb 16, 2023
2 parents e078d13 + bd9e4e3 commit d2af146
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
matrix:
python-version: ['3.9', '3.11']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.11'
- run: pip install --upgrade pip poetry
- run: poetry build
- uses: ncipollo/release-action@v1
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _make_server(blueprint: Blueprint, port: int) -> Process:
yield _make_server

errors = []
for (port, process) in created_servers.items():
for port, process in created_servers.items():
if process.exitcode is not None:
errors.append(f"Server failure for port {port}")
process.terminate()
Expand Down
8 changes: 4 additions & 4 deletions integration_tests/util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import inspect
from typing import Sequence
from typing import Optional, Sequence


def output_str(s: str) -> str:
Expand All @@ -9,9 +9,9 @@ def output_str(s: str) -> str:

def command(
url: str,
verbose: bool = None,
json: bool = None,
max_parallel_requests: int = None,
verbose: Optional[bool] = None,
json: Optional[bool] = None,
max_parallel_requests: Optional[int] = None,
) -> Sequence[str]:
"""
Generate command-line strings based on function parameters.
Expand Down
188 changes: 114 additions & 74 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ beautifulsoup4 = "^4.11.1"
click = "^8.1.3"
httpx = "^0.23.0"
python = "^3.9"
rich = "^12.4.4"
rich = "^13.3.1"

[tool.poetry.dev-dependencies]
black = "^22.3.0"
flake8 = "^5.0.4"
black = "^23.1.0"
flake8 = "^6.0.0"
Flask = "^2.1.2"
isort = "^5.10.1"
mypy = "^0.971"
mypy = "^1.0.0"
pytest = "^7.1.2"
types-beautifulsoup4 = "^4.11.1"

Expand Down
2 changes: 1 addition & 1 deletion src/discolinks/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def analyze(url_infos: Mapping[Url, UrlInfo]) -> Analysis:
pages = {}
stats = Stats()

for (url, info) in url_infos.items():
for url, info in url_infos.items():
if info.links is None:
continue

Expand Down
2 changes: 1 addition & 1 deletion src/discolinks/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def print_results(analysis: analyzer.Analysis) -> None:
)
tree = Tree(root_label, guide_style="dim")

for (url, info) in analysis.pages.items():
for url, info in analysis.pages.items():
bad_links = [link for link in info.links if not link.ok()]

if not bad_links:
Expand Down

0 comments on commit d2af146

Please sign in to comment.