Skip to content

Commit

Permalink
Merge pull request #671 from fedejaure/feature-update-deps
Browse files Browse the repository at this point in the history
Feature update deps
  • Loading branch information
fedejaure committed Apr 7, 2024
2 parents c984261 + b98b8f8 commit a32529b
Show file tree
Hide file tree
Showing 21 changed files with 93 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Create coverage report
shell: bash
run: |
nox --force-color --session=coverage -- --fmt xml
nox --force-color -s coverage-3.8 -- --fmt xml
- name: Upload coverage report
uses: codecov/codecov-action@v4.2.0
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx configuration."""

# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions."""

import platform

import nox
Expand Down Expand Up @@ -34,7 +35,7 @@ def tests(session: Session) -> None:
session.notify("coverage")


@session
@session(python=python_versions)
def coverage(session: Session) -> None:
"""Produce the coverage report."""
args = session.posargs if session.posargs and len(session._runner.manifest) == 1 else []
Expand Down
158 changes: 67 additions & 91 deletions poetry.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ mdns-beacon = 'mdns_beacon.cli.main:main'
[tool.poetry.dependencies]
python = "<3.12,>=3.8"
click = "^8.1.7"
zeroconf = "^0.128.0"
rich = "^13.7.0"
python-slugify = "^8.0.1"
zeroconf = "^0.132.0"
rich = "^13.7.1"
python-slugify = "^8.0.4"
typing-extensions = "^4.8.0"
click-option-group = "^0.5.6"

Expand All @@ -42,7 +42,7 @@ bump2version = "^1.0.1"

[tool.poetry.group.formating.dependencies]
isort = "^5.12.0"
black = "^23.11.0"
black = "^24.3.0"

[tool.poetry.group.security.dependencies]
safety = "^2.4.0b2"
Expand Down Expand Up @@ -77,7 +77,7 @@ watchdog = {version = "^3.0.0", extras = ["watchmedo"]}
[tool.poetry.group.typing.dependencies]
mypy = "^1.7.1"
types-click = "^7.1.8"
types-python-slugify = "^8.0.0.3"
types-python-slugify = "^8.0.2.20240310"

[tool.coverage.paths]
source = ["src", "*/site-packages"]
Expand Down
1 change: 1 addition & 0 deletions src/mdns_beacon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Top-level package for mdns-beacon."""

from .beacon import Beacon # noqa: F401
from .listener import BeaconListener # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions src/mdns_beacon/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base mDNS Beacon module."""

import asyncio
import logging
from abc import ABC, abstractmethod
Expand Down
1 change: 1 addition & 0 deletions src/mdns_beacon/beacon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Beacon module."""

import logging
import time
from ipaddress import IPv4Address, IPv6Address, ip_address
Expand Down
1 change: 1 addition & 0 deletions src/mdns_beacon/cli/layouts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Console layout for mdns-beacon."""

from abc import ABC, abstractmethod
from typing import Any, Dict, List, Optional, Tuple, Union

Expand Down
1 change: 1 addition & 0 deletions src/mdns_beacon/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main script for mdns-beacon."""

from ipaddress import IPv4Address, IPv6Address
from typing import Dict, Iterable, Tuple, Union

Expand Down
1 change: 1 addition & 0 deletions src/mdns_beacon/cli/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Param types for mdns-beacon."""

from ipaddress import IPv4Address, IPv6Address, ip_address
from typing import AnyStr, Optional, Union

Expand Down
1 change: 1 addition & 0 deletions src/mdns_beacon/listener.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""mDNS listener module."""

import logging
from typing import Any, Callable, List, Optional, Set, Union

Expand Down
2 changes: 2 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Execute 'invoke --list' for guidance on using Invoke
"""

import platform
import webbrowser
from pathlib import Path
Expand All @@ -24,6 +25,7 @@
PYTHON_TARGETS = [
SOURCE_DIR,
TEST_DIR,
DOCS_DIR.joinpath("conf.py"),
ROOT_DIR.joinpath("noxfile.py"),
Path(__file__),
]
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Conftest module."""

import asyncio
from asyncio import AbstractEventLoop
from typing import Generator
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/contextmanager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utils tests module."""

import contextlib
import os
import signal
Expand Down
1 change: 1 addition & 0 deletions tests/test_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `base` module."""

from asyncio import AbstractEventLoop
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions tests/test_beacon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `beacon` module."""

from asyncio import AbstractEventLoop
from typing import Any, Dict, Set
from uuid import uuid4
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli/test_layouts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `mdns_beacon.cli.layouts` module."""

from contextlib import ExitStack as does_not_raise
from io import StringIO
from typing import ContextManager, Optional, Tuple, Type
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `mdns_beacon.cli.main` module."""

from asyncio import AbstractEventLoop
from typing import List
from uuid import uuid4
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli/test_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `mdns_beacon.cli.types` module."""

from contextlib import ExitStack as does_not_raise
from ipaddress import IPv4Address, IPv6Address
from typing import ContextManager, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions tests/test_listener.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `listener` module."""

from asyncio import AbstractEventLoop
from typing import Any, Dict, Set

Expand Down

0 comments on commit a32529b

Please sign in to comment.