From 916b7cd0a07775f25119ee69cdd2ac4be3b23d72 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Jun 2024 16:26:09 -0500 Subject: [PATCH] feat: update urls to new home (#34) --- .pre-commit-config.yaml | 45 +++++++++++++++++-------------------- README.md | 10 ++++----- pyproject.toml | 4 ++-- unifi_discovery/__init__.py | 1 - 4 files changed, 28 insertions(+), 32 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7135961..bfcea43 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks -exclude: "CHANGELOG.md" +exclude: "CHANGELOG.md|.copier-answers.yml|.all-contributorsrc" default_stages: [commit] ci: @@ -9,37 +9,34 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v2.27.0 + rev: v3.27.0 hooks: - id: commitizen stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.6.0 hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-json - id: debug-statements + - id: check-builtin-literals + - id: check-case-conflict + - id: check-docstring-first + - id: check-toml + - id: check-xml + - id: detect-private-key + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/python-poetry/poetry + rev: 1.8.3 + hooks: + - id: poetry-check - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.6.2 + rev: v3.1.0 hooks: - id: prettier args: ["--tab-width", "2"] - - repo: https://github.com/asottile/pyupgrade - rev: v2.32.1 - hooks: - - id: pyupgrade - args: [--py37-plus] - - repo: https://github.com/PyCQA/isort - rev: 5.12.0 - hooks: - - id: isort - - repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black - - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.8 hooks: - - id: flake8 + - id: ruff + args: [--fix, --exit-non-zero-on-fix] + - id: ruff-format diff --git a/README.md b/README.md index 4865797..4d50e5d 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # Unifi Discovery

- - CI Status + + CI Status Documentation Status - - Test coverage percentage + + Test coverage percentage

@@ -52,7 +52,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d - +

Floris Van der krieken

💻 💡

Floris Van der krieken

💻 💡
diff --git a/pyproject.toml b/pyproject.toml index 18fff67..1f641f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "Discover Unifi Devices" authors = ["J. Nick Koston "] license = "Apache Software License 2.0" readme = "README.md" -repository = "https://github.com/bdraco/unifi-discovery" +repository = "https://github.com/uilibs/unifi-discovery" documentation = "https://unifi-discovery.readthedocs.io" classifiers = [ "Development Status :: 2 - Pre-Alpha", @@ -19,7 +19,7 @@ packages = [ ] [tool.poetry.urls] -"Bug Tracker" = "https://github.com/bdraco/unifi-discovery/issues" +"Bug Tracker" = "https://github.com/uilibs/unifi-discovery/issues" "Changelog" = "https://unifi-discovery.readthedocs.io/changelog.html" [tool.poetry.dependencies] diff --git a/unifi_discovery/__init__.py b/unifi_discovery/__init__.py index d66e168..e9f66ae 100644 --- a/unifi_discovery/__init__.py +++ b/unifi_discovery/__init__.py @@ -203,7 +203,6 @@ def parse_ubnt_response( # (just after reply signature and payload size). # Take into account the payload length in offset 3 for field_type, field_data in iter_fields(payload[4:], payload[3]): - if field_type not in field_parsers_packet_specific: continue