diff --git a/.copier-answers.yml b/.copier-answers.yml new file mode 100644 index 0000000..c92f643 --- /dev/null +++ b/.copier-answers.yml @@ -0,0 +1,9 @@ +# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY +_commit: v0.7.1 +_src_path: gh:ahcodedev/python-project-template +description: Various Data Structures and Algorithm Solutions in Python +github_repo: ahcodedev/python-ds-algorithms +package_name: python_ds_algorithms +project_name: python-ds-algorithms +use_docs: false +use_releases: false diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e637b83..608c1f4 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,18 +1,21 @@ -# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/python-3/.devcontainer/base.Dockerfile +# See here for image contents: https://github.com/devcontainers/images/tree/main/src -# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster -ARG VARIANT="3.14-bookworm" -FROM mcr.microsoft.com/devcontainers/python:${VARIANT} +# Image version 3.3.2, Python 3.14, Debian bookworm. Tag and digest are updated by Dependabot. +FROM mcr.microsoft.com/vscode/devcontainers/python:3.15-bookworm@sha256:25ac34e3c1a4c5b19a89ece73ed0278e92afc1cfd25ecb51714891e82bede421 + +# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 +ARG NODE_VERSION="none" +RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi # Just Installation -COPY --from=ghcr.io/casey/just:latest /just /usr/local/bin/ +COPY --from=ghcr.io/casey/just:1.59.0@sha256:014cbe6e6de678864004e2fd8b0405f77ce43b20b225e816feb330f2fb575c01 /just /usr/local/bin/ # uv Installation -COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/ +COPY --from=ghcr.io/astral-sh/uv:0.13.7@sha256:96f40d3904aad8d0bd010539001d36c8e2188b981e1334471a90c4a1d93bb490 /uv /uvx /usr/local/bin/ # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # && apt-get -y install --no-install-recommends # [Optional] Uncomment this line to install global node packages. -# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 \ No newline at end of file +# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 19fdd6c..d0c0f9e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,46 +1,28 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: -// https://github.com/devcontainers/images/tree/main/src/ +// https://github.com/devcontainers/images/tree/main/src { "name": "Python 3", "build": { "dockerfile": "Dockerfile", "context": "..", "args": { - "VARIANT": "3.14-bookworm", + // The Python version is pinned in the Dockerfile's FROM line (tag + digest). + // Options "NODE_VERSION": "none" } }, // Configure tool-specific properties. "customizations": { - // Configure properties specific to VS Code. "vscode": { // Set *default* container specific settings.json values on container create. "settings": { "python.autoComplete.extraPaths": ["/workspaces"], - "python.defaultInterpreterPath": "/usr/local/bin/python", - "editor.tabSize": 4, - "files.autoSave": "afterDelay", - "files.trimTrailingWhitespace": true, - "terminal.integrated.localEchoStyle": "dim", - "[python]": { - "editor.defaultFormatter": "charliermarsh.ruff", - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll.ruff": "explicit", - "source.organizeImports.ruff": "explicit" - } + "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python" }, // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - "Anthropic.claude-code", - "DavidAnson.vscode-markdownlint", - "ms-python.python", - "ms-python.vscode-pylance", - "ms-vscode-remote.remote-containers", - "charliermarsh.ruff" - ] + "extensions": [] } }, @@ -51,5 +33,8 @@ "postCreateCommand": "uv sync --all-groups", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "vscode" + "remoteUser": "vscode", + "features": { + "ghcr.io/devcontainers/features/github-cli:1": "latest" + } } diff --git a/.gitattributes b/.gitattributes index f6ce2d9..7e6bcb0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ .devcontainer/* -linguist-detectable -.github/** -linguist-detectable \ No newline at end of file +.github/** -linguist-detectable diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d77051b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,46 @@ +# Dependabot configuration. +# See https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference +version: 2 + +updates: + # GitHub Actions used in .github/workflows (updates SHA pins and their version comments) + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + labels: ["dependencies"] + groups: + github-actions: + update-types: ["minor", "patch"] + + # Python dependencies in pyproject.toml / uv.lock + - package-ecosystem: "uv" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + labels: ["dependencies"] + groups: + python-minor-and-patch: + update-types: ["minor", "patch"] + + # Base image in .devcontainer/Dockerfile + - package-ecosystem: "docker" + directory: "/.devcontainer" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + labels: ["dependencies"] + + # Features in .devcontainer/devcontainer.json + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + labels: ["dependencies"] diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..bb2e97b --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,14 @@ +## Summary + + + +## Related Issues + + + +## Checklist + +- [ ] `just lint` passes +- [ ] `just coverage` passes +- [ ] Tests added or updated for the change +- [ ] `README.md` updated if needed diff --git a/.github/workflows/Python.yml b/.github/workflows/Python.yml deleted file mode 100644 index 2f33569..0000000 --- a/.github/workflows/Python.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Python - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -permissions: - contents: read - -jobs: - ci: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.14 - uses: actions/setup-python@v6 - with: - python-version: "3.14" - - name: Install uv - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 - with: - enable-cache: true - - name: Install just - uses: extractions/setup-just@v3 - - name: Setup environment - run: | - just sync - - name: Lint - run: | - just lint - - name: Unit tests + Code coverage check - run: | - just test-coverage-percentage \ No newline at end of file diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 0000000..bee4322 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,35 @@ +name: Dependabot Auto-Merge + +# Enables auto-merge on Dependabot PRs for minor and patch updates. The PR merges once +# required status checks pass. Needs "Allow auto-merge" enabled in the repo settings. + +on: + pull_request: + types: [ opened, reopened, synchronize ] + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + auto-merge: + if: github.event.pull_request.user.login == 'dependabot[bot]' + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: write + pull-requests: write + steps: + - name: Fetch Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 + + - name: Enable auto-merge + if: steps.metadata.outputs.update-type != 'version-update:semver-major' + env: + GH_TOKEN: ${{ github.token }} + PR_URL: ${{ github.event.pull_request.html_url }} + run: | + gh pr merge --auto --squash "$PR_URL" diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..bc78e58 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,57 @@ +name: Python CI Checks + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + code-check-and-unit-test: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Install uv + uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + with: + enable-cache: false + version: ">=0.13,<0.14" + - name: Setup environment + run: | + uv tool install rust-just==1.59.0 + uv tool install actionlint-py==1.7.12.25 + uv tool install yamllint==1.38.0 + just sync + - name: Lint + run: | + just ci-lint + - name: Spell check + uses: crate-ci/typos@276087d9a4f06398b3e04825487805e2d7375888 # v1.52.2 + - name: Unit tests + run: | + just coverage + markdownlint: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + # Keep markdownlint-cli2 in step with the VS Code markdownlint extension + - name: Markdownlint + uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24.2.0 + with: + globs: "**/*.md" diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 0000000..1272788 --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,75 @@ +name: GitHub Actions Security Analysis + +on: + push: + branches: ["main"] + pull_request: + branches: ["**"] + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + zizmor: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read # only needed for private or internal repos + actions: read # only needed for private or internal repos + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Run zizmor + uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1 + with: + advanced-security: false + pip-audit: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Install uv + uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + with: + enable-cache: false + version: ">=0.13,<0.14" + - name: Setup environment + run: | + uv tool install rust-just==1.59.0 + just sync + - name: Audit dependencies + run: | + just audit + betterleaks: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read # needed to check out a private repo + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + fetch-depth: 0 + # betterleaks has no official action or PyPI package, so it is built from source + - name: Install Go + uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 + with: + go-version: stable + cache: false + - name: Install betterleaks + run: | + go install github.com/betterleaks/betterleaks@v1.10.1 + - name: Scan git history for secrets + run: | + "$(go env GOPATH)/bin/betterleaks" git --redact . diff --git a/.gitignore b/.gitignore index 7ba5ccf..28be591 100644 --- a/.gitignore +++ b/.gitignore @@ -1,110 +1,35 @@ -# Byte-compiled / optimized / DLL files +# Python __pycache__/ *.py[cod] -*$py.class -# C extensions -*.so - -# Distribution / packaging -.Python +# Build and packaging build/ -develop-eggs/ dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ *.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec -# Installer logs -pip-log.txt -pip-delete-this-directory.txt +# Virtual environments and environment files +.venv/ +.env* -# Unit test / coverage reports -htmlcov/ -.tox/ +# Test and tool caches .coverage .coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ .pytest_cache/ +.ruff_cache/ +htmlcov/ +coverage.xml -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site +# OS +.DS_Store -# mypy -.mypy_cache/ +# Claude (committing Claude files is opt-in) +.claude/ +.claude/settings.local.json +CLAUDE.md +CLAUDE.md.example -# Ruff -.ruff_cache/ +# Dev Container +.devcontainer/devcontainer-lock.json -# Local configuration files -*.local.* \ No newline at end of file +# Project-specific +*.local.* diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc new file mode 100644 index 0000000..7290c9b --- /dev/null +++ b/.markdownlint-cli2.jsonc @@ -0,0 +1,14 @@ +{ + // Rule configuration + "config": { + // Line length + "MD013": { + "line_length": 120 + } + }, + // Files excluded from markdown linting (glob syntax) + "ignores": [ + ".github/pull_request_template.md", + ".venv/**" + ] +} diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..93a848f --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.15 diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 271b799..ef246ac 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,10 +1,10 @@ { "recommendations": [ "Anthropic.claude-code", + "charliermarsh.ruff", "DavidAnson.vscode-markdownlint", "ms-python.python", "ms-python.vscode-pylance", - "ms-vscode-remote.remote-containers", - "charliermarsh.ruff" + "ms-vscode-remote.remote-containers" ] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 6fcd85e..a28ae9f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,14 +1,22 @@ { - "editor.tabSize": 4, - "files.autoSave": "afterDelay", - "files.trimTrailingWhitespace": true, - "terminal.integrated.localEchoStyle": "dim", - "[python]": { - "editor.defaultFormatter": "charliermarsh.ruff", - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll.ruff": "explicit", - "source.organizeImports.ruff": "explicit" + "editor.tabSize": 4, + "files.autoSave": "afterDelay", + "files.exclude": { + "**/.git": false + }, + "files.trimTrailingWhitespace": true, + "terminal.integrated.localEchoStyle": "dim", + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.ruff": "explicit", + "source.organizeImports.ruff": "explicit" } - } -} \ No newline at end of file + }, + "python.testing.pytestArgs": [ + "tests" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true +} diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..d8f3d6a --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,22 @@ +# Configuration file for yamllint. +# See https://yamllint.readthedocs.io/en/stable/configuration.html +extends: default + +ignore: | + .venv/ + site/ + +rules: + document-start: disable + # Allow both list styles under a key, as long as each file is consistent + indentation: + indent-sequences: consistent + line-length: + max: 120 + # `on:` in GitHub workflows is a key, not a boolean + truthy: + check-keys: false + brackets: + max-spaces-inside: 1 + comments: + min-spaces-from-content: 1 diff --git a/Brewfile b/Brewfile index f58ecdf..8e421f5 100644 --- a/Brewfile +++ b/Brewfile @@ -1,2 +1,10 @@ +brew "actionlint" +brew "betterleaks" +brew "copier" +brew "jq" brew "just" -brew "uv" \ No newline at end of file +brew "markdownlint-cli2" +brew "typos-cli" +brew "uv" +brew "yamllint" +brew "zizmor" diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 82a87d1..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,59 +0,0 @@ -# CLAUDE.md - -This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. - -## Commands - -This project uses `uv` for dependency management and `just` as the command runner. - -```bash -just sync # install/sync dependencies (uv sync --all-groups) -just lint # uv run ruff check . --fix && uv run ruff format . -just test # uv run pytest -just test-coverage # uv run pytest --cov=src --cov-report=term-missing -just test-coverage-percentage # uv run pytest --cov=src --cov-report=term --cov-fail-under=98 -uv run pytest tests/algorithm_theory/test_binary_search.py # run one test file -uv run pytest tests/algorithm_theory/test_binary_search.py::test_binary_search_iterative # run one test -uv add {package} # add a dependency -``` - -There is no separate build step; this is a pure Python (3.14+) library of algorithms with no runtime dependencies. - -## Architecture - -Algorithm code is stored in `/src`. `pyproject.toml` sets `pythonpath = ["."]`, so both - implementation and test code import via the top-level package name, e.g. `from src.algorithm_theory.binary_search import binary_search_iterative`. - -Three categories of top-level `/src` directories, per the root `README.md`: - -- **`algorithm_theory/`** — canonical/fundamental algorithm approaches (e.g. binary/jump/linear search, bubble - sort). -- **`data_structures/`** — custom implementations of core data structures (binary tree, linked lists, queue, - stack, trie) that other topic directories' problems build on top of. -- **Topic/problem directories** (`arrays/`, `binary_search/`, `binary_tree/`, `circularly_linked_list/`, - `doubly_linked_list/`, `integers/`, `math_problems/`, `multi_dimensional_arrays/`, `n_ary_tree/`, `queues/`, - `singly_linked_lists/`, `stacks/`, `strings/`, `trie/`) - -The problem description, constraints, and examples live as a -**doc comment directly on the function/class that solves it** (see any existing file, e.g. -`arrays/two_sum.py`, as the template when adding a new problem). Only when a file genuinely has multiple -top-level functions/classes for one problem (e.g. a brute-force and an optimized approach, like -`stacks/daily_temperatures.py`) does it use a module-level docstring for the shared problem statement plus a -short docstring per function for the approach-specific detail — a single-function file should never have both a module docstring and a redundant function docstring. - -Tests live under `tests//test_.py`, mirroring the source layout 1:1 (e.g. -`algorithm_theory/binary_search.py` → `tests/algorithm_theory/test_binary_search.py`). `test_helpers/test_helpers.py` -holds shared builders/fixtures (e.g. `get_binary_search_tree`, `get_singly_linked_list`) used across multiple test -directories for constructing trees and linked lists — check there before writing new setup code for tree/list-based -tests. - -Node/structure classes used across multiple directories (e.g. `binary_tree.tree_node.TreeNode`, -`data_structures.singly_linked_list_node.SinglyLinkedListNode`, `n_ary_tree.nary_tree_node.NaryTreeNode`) are -imported directly from their defining module rather than redefined per problem. - -## Style - -- Solutions favor explicit, readable Python over complicated one-liners -- Ruff is configured in `pyproject.toml` (line length 100, target `py314`, rule sets `E, F, W, I, N, D`). - - Rules `D100-D107` are ignored - - `tests/*` is exempt from docstring rules entirely. diff --git a/README.md b/README.md index d93df4a..017ef09 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -# Python Data Structures and Algorithms ![](https://github.com/ahcodedev/python-ds-algorithms/actions/workflows/Python.yml/badge.svg?branch=main) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +# Python Data Structures and Algorithms + +[![CI](https://github.com/ahcodedev/python-ds-algorithms/actions/workflows/python.yml/badge.svg?branch=main)](https://github.com/ahcodedev/python-ds-algorithms/actions/workflows/python.yml) +[![Security](https://github.com/ahcodedev/python-ds-algorithms/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/ahcodedev/python-ds-algorithms/actions/workflows/security.yml) +[![betterleaks](https://img.shields.io/badge/protected%20by-betterleaks-blue)](https://github.com/betterleaks/betterleaks) +[![zizmor](https://img.shields.io/badge/%F0%9F%8C%88-zizmor-white?labelColor=white)](https://zizmor.sh/) Various Data Structures and Algorithm Solutions in Python (3.x). Succinct Python one-liners are avoided in most solutions to prevent obscuring the function and logic of the algorithms / data-structures. @@ -25,24 +30,51 @@ to prevent obscuring the function and logic of the algorithms / data-structures. Each directory's problems and approaches are documented as doc comments directly in the corresponding `.py` files. -## Project Setup +## Setup + +Project supports local development and VSCode Dev container development ### Local Development Installation -Note: Project uses `uv` and `just` to manage project configuration and commands +Note: Project uses `uv` and `just` to +manage project configuration and commands -* Install dependencies via Homebrew - `brew bundle install` -* Sync project - `just sync` +* Install tools and sync the project - `just setup` (runs `brew bundle install`, then `just sync`) ### VS Code Dev Container -* Download VSCode and Docker -* Launch project inside of Docker container in VSCode -* VSCode does the rest! +* Install Docker +* Install VSCode +* Open project folder in VS Code +* Install recommended extensions +* Reopen in container using Remote Development Container menu ## Project Commands -* Lint project - `just lint` -* Sync uv environment - `just sync` -* Run Unit Tests - `just test` -* Install dependency: `uv add {package}` +* `just setup` - install Homebrew tools from the `Brewfile` and sync the project +* `just sync` - sync project dependencies (all groups) +* `just lint` - type check, lint, format, spell check (typos), and lint workflows (actionlint), YAML (yamllint), + and JSON (jq) (applies fixes) +* `just ci-lint` - run the same checks without modifying files, except spell check (used in CI) +* `just spellcheck` - check spelling with typos +* `just test` - run unit tests +* `just coverage` - run unit tests with coverage (fails under 98%) +* `just audit` - check dependencies for known vulnerabilities with pip-audit +* `just markdownlint` - lint Markdown files with markdownlint-cli2 +* `just prek` - run pre-commit hooks via prek +* `just betterleaks` - scan staged changes for secrets with betterleaks +* `just zizmor` - audit GitHub Actions workflows for security issues +* `just update-template` - pull in the latest changes from the Copier template +* `uv add {package}` - install a dependency + +## CI and Security + +| Workflow | Runs on | Purpose | +| --------------------- | ----------------------- | ------------------------------------------------------- | +| `python.yml` | push / PR to `main` | lint, spell check, unit tests, markdownlint | +| `security.yml` | push to `main`, all PRs | zizmor, betterleaks, pip-audit dependency audit | + +* GitHub Actions are pinned to full commit SHAs, with the version in a trailing comment +* Dependabot (`.github/dependabot.yml`) checks weekly for updates to GitHub Actions, Python + dependencies, the dev container image, and dev container features. New releases wait 7 days + before an update is proposed. Dependabot PRs get the `dependencies` label diff --git a/justfile b/justfile index f826c7e..0e2a256 100644 --- a/justfile +++ b/justfile @@ -1,11 +1,58 @@ +# List available recipes +[private] +default: + @just --list +# Check dependencies for known vulnerabilities (pip-audit) +audit: + uv run pip-audit --skip-editable +# Scan staged changes for secrets +betterleaks: + betterleaks git --pre-commit --staged --redact +# Type check, lint, format check, and lint workflows, YAML, and JSON without changing files +ci-lint: + uv run ty check + uv run ruff check . + uv run ruff format --check . + actionlint .github/workflows/*.yml + yamllint --strict . + just json-lint +# Run unit tests with coverage (fails under 98%) +coverage: + uv run pytest --cov +# Validate JSON files (devcontainer.json is skipped because it allows comments) +json-lint: + find . -name '*.json' -not -path './.venv/*' -not -name devcontainer.json -exec jq empty {} + +# Type check, lint, format, spell check, and lint workflows, YAML, and JSON, applying fixes lint: + uv run ty check uv run ruff check . --fix uv run ruff format . + typos --write-changes + actionlint .github/workflows/*.yml + yamllint --strict . + just json-lint +# Lint Markdown files +markdownlint: + markdownlint-cli2 "**/*.md" +# Run the git hooks on staged files +prek: + uv run prek +# Install Homebrew tools and sync the project +setup: + brew bundle install + just sync +# Check spelling +spellcheck: + typos +# Install all dependency groups into .venv sync: uv sync --all-groups +# Run unit tests test: uv run pytest -test-coverage: - uv run pytest --cov=src --cov-report=term-missing -test-coverage-percentage: - uv run pytest --cov=src --cov-report=term --cov-fail-under=98 \ No newline at end of file +# Pull in the latest changes from the Copier template +update-template: + copier update --trust +# Audit GitHub Actions workflows for security issues +zizmor: + zizmor . --collect all diff --git a/prek.toml b/prek.toml new file mode 100644 index 0000000..549bf39 --- /dev/null +++ b/prek.toml @@ -0,0 +1,60 @@ +# Configuration file for `prek`, a git hook framework written in Rust. +# See https://prek.j178.dev for more information. +#:schema https://www.schemastore.org/prek.json + +[[repos]] +repo = "builtin" +hooks = [ + { id = "trailing-whitespace" }, + { id = "end-of-file-fixer" }, + { id = "check-added-large-files" } +] + +[[repos]] +repo = "local" +hooks = [ + { + id = "ci-lint", + name = "lint codebase", + language = "system", + entry = "just ci-lint", + pass_filenames = false + }, + { + id = "unit-tests", + name = "unit tests", + language = "system", + entry = "just coverage", + pass_filenames = false + }, + { + id = "spellcheck", + name = "spell check", + language = "system", + entry = "just spellcheck", + pass_filenames = false + }, + { + id = "markdownlint", + name = "markdownlint", + language = "system", + entry = "just markdownlint", + files = "\\.md$", + pass_filenames = false + }, + { + id = "pip-audit", + name = "pip-audit", + language = "system", + entry = "just audit", + files = "^(pyproject\\.toml|uv\\.lock)$", + pass_filenames = false + }, + { + id = "betterleaks", + name = "betterleaks", + language = "system", + entry = "just betterleaks", + pass_filenames = false + } +] diff --git a/pyproject.toml b/pyproject.toml index b4e2e58..6b7ec76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,33 +1,48 @@ [project] name = "python-ds-algorithms" +description = "Various Data Structures and Algorithm Solutions in Python" version = "0.0.1" -requires-python = ">=3.14" +requires-python = ">=3.15" dependencies = [] [dependency-groups] dev = [ + "pip-audit>=2.10.1", + "prek>=0.5.10", "pytest", - "pytest-cov>=7.1.0", - "ruff>=0.16.0", + "pytest-cov", + "ruff>=0.17.3", + "ty>=0.0.96", ] -[tool.coverage] +[tool.coverage.run] +source = ["src"] + +[tool.coverage.report] +fail_under = 98 +show_missing = true [tool.pytest.ini_options] +testpaths = ["tests"] pythonpath = ["."] [tool.ruff] line-length = 100 -target-version = "py314" [tool.ruff.lint] -select = ["E", "F", "W", "I", "N", "D"] # Choose your rule categories +select = ["B", "E", "F", "W", "I", "N", "PT", "D", "UP", "RUF", "SIM", "S", "C4", "PTH", "PL", "PERF"] # Choose your rule categories ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D107", "D211", "D203", "D213", "D400", "D401", "D415"] extend-ignore = ["E501"] # Line too long (handled by formatter) +[tool.ruff.lint.pydocstyle] +convention = "google" + [tool.ruff.lint.per-file-ignores] -"tests/*" = ["D"] # Ignore docstring (D) errors in tests +"tests/*" = ["D", "S101", "PLR2004"] # Ignore docstring (D) and assert (S101) errors in tests [tool.ruff.format] quote-style = "double" + +[tool.uv] +required-version = ">=0.13,<0.14" diff --git a/src/algorithm_theory/union_find.py b/src/algorithm_theory/union_find.py index 9612d7b..ddd192e 100644 --- a/src/algorithm_theory/union_find.py +++ b/src/algorithm_theory/union_find.py @@ -3,7 +3,7 @@ def __init__(self): self.roots = [] def add_edges(self, n: int, edges: list[tuple[int, int]]): - self.roots = [number for number in range(n)] + self.roots = list(range(n)) for edge in edges: a, b = edge self.union(a, b) @@ -24,7 +24,7 @@ def union(self, a: int, b: int): if root_a is not None and root_b is not None: self.roots[root_a] = root_b - def find(self, node1: int) -> None | int: + def find(self, node1: int) -> int | None: stack = [node1] while stack: diff --git a/src/arrays/find_disappeared_numbers.py b/src/arrays/find_disappeared_numbers.py index 2d355cd..f938f83 100644 --- a/src/arrays/find_disappeared_numbers.py +++ b/src/arrays/find_disappeared_numbers.py @@ -14,12 +14,7 @@ def find_disappeared_numbers(nums: list[int]) -> list[int]: """O(N) time, O(N) space using a set of seen values.""" unique_nums = set(nums) length = len(nums) - disappeared_nums = [] - - for num in range(1, length + 1): - if num not in unique_nums: - disappeared_nums.append(num) - return disappeared_nums + return [num for num in range(1, length + 1) if num not in unique_nums] def find_disappeared_numbers_ii(nums: list[int]) -> list[int]: @@ -31,9 +26,4 @@ def find_disappeared_numbers_ii(nums: list[int]) -> list[int]: if nums[num_index] > 0: nums[num_index] *= -1 - disappeared_nums = [] - - for index in range(length): - if nums[index] > 0: - disappeared_nums.append(index + 1) - return disappeared_nums + return [index + 1 for index in range(length) if nums[index] > 0] diff --git a/src/arrays/find_max_consecutive_ones.py b/src/arrays/find_max_consecutive_ones.py index 5598f59..cf4075f 100644 --- a/src/arrays/find_max_consecutive_ones.py +++ b/src/arrays/find_max_consecutive_ones.py @@ -1,4 +1,4 @@ -def find_max_consecutive_ones(nums: list[int]) -> int: +def find_max_consecutive_ones(nums: list[int] | None) -> int: """Find Max Consecutive Ones. You are given a binary array nums; return the maximum number of consecutive 1's in the array. diff --git a/src/arrays/find_max_consecutive_ones_with_flip.py b/src/arrays/find_max_consecutive_ones_with_flip.py index 61cbe26..b447406 100644 --- a/src/arrays/find_max_consecutive_ones_with_flip.py +++ b/src/arrays/find_max_consecutive_ones_with_flip.py @@ -16,8 +16,7 @@ def find_max_consecutive_ones_with_flip(nums: list[int]) -> int: ones += 1 elif zero != -1: total = ones + 1 - if total > highest: - highest = total + highest = max(highest, total) ones = index - zero - 1 zero = index else: diff --git a/src/arrays/find_smallest_positive_integer.py b/src/arrays/find_smallest_positive_integer.py index 7f0c114..0390b09 100644 --- a/src/arrays/find_smallest_positive_integer.py +++ b/src/arrays/find_smallest_positive_integer.py @@ -10,11 +10,8 @@ def find_smallest_positive_integer(arr: list[int]) -> int: smallest = -1 for i in range(len(arr)): - if arr[i] > 0: - if smallest == -1: - smallest = arr[i] - elif arr[i] < smallest: - smallest = arr[i] + if arr[i] > 0 and (smallest == -1 or arr[i] < smallest): + smallest = arr[i] if smallest == -1: return 0 diff --git a/src/arrays/first_duplicate.py b/src/arrays/first_duplicate.py index 78a46cd..e02d848 100644 --- a/src/arrays/first_duplicate.py +++ b/src/arrays/first_duplicate.py @@ -9,7 +9,7 @@ def first_duplicate(array: list[int]) -> int: """Count occurrences with a dict, then return the first value whose count exceeds one.""" - number_counter = dict() + number_counter = {} for value in array: if value in number_counter: number_counter[value] += 1 diff --git a/src/arrays/largest_number_at_least_twice_of_others.py b/src/arrays/largest_number_at_least_twice_of_others.py index b9b3e15..b39b7fd 100644 --- a/src/arrays/largest_number_at_least_twice_of_others.py +++ b/src/arrays/largest_number_at_least_twice_of_others.py @@ -14,13 +14,14 @@ def largest_number_at_least_twice_of_others(nums: list[int]) -> int: :param nums: array of numbers :return: index of number, -1 if none exists """ - largest = None + if not nums: + return -1 + + largest = 0 next_largest = None - for idx, num in enumerate(nums): - if largest is None: - largest = idx - continue + for idx in range(1, len(nums)): + num = nums[idx] if num > nums[largest]: next_largest = largest largest = idx diff --git a/src/arrays/minimum_subarray_length.py b/src/arrays/minimum_subarray_length.py index 447a80b..19615a3 100644 --- a/src/arrays/minimum_subarray_length.py +++ b/src/arrays/minimum_subarray_length.py @@ -16,10 +16,7 @@ def minimum_subarray_length(target: int, numbers: list[int]) -> int: for index, _ in enumerate(numbers): total += numbers[index] while total >= target: - if answer: - answer = min(answer, index + 1 - left) - else: - answer = index + 1 - left + answer = min(answer, index + 1 - left) if answer else index + 1 - left total -= numbers[left] left += 1 diff --git a/src/arrays/peaks.py b/src/arrays/peaks.py index 8971401..0f36941 100644 --- a/src/arrays/peaks.py +++ b/src/arrays/peaks.py @@ -10,11 +10,11 @@ def peaks(numbers: list[int]) -> list[int]: length = len(numbers) peak_nums = [] - if length < 3: + if length < 3: # noqa: PLR2004 return peak_nums - for index in range(1, length - 1): - if numbers[index - 1] < numbers[index] and numbers[index] > numbers[index + 1]: - peak_nums.append(numbers[index]) - - return peak_nums + return [ + numbers[index] + for index in range(1, length - 1) + if numbers[index - 1] < numbers[index] > numbers[index + 1] + ] diff --git a/src/arrays/single_number.py b/src/arrays/single_number.py index d00c727..1eb1f77 100644 --- a/src/arrays/single_number.py +++ b/src/arrays/single_number.py @@ -12,7 +12,7 @@ def single_number(nums: list[int]) -> int: if not nums: return 0 - nums_dict = dict() + nums_dict = {} for num in nums: if num in nums_dict: @@ -20,8 +20,8 @@ def single_number(nums: list[int]) -> int: else: nums_dict[num] = 1 - for num in nums_dict: - if nums_dict[num] == 1: + for num, count in nums_dict.items(): + if count == 1: return num return 0 diff --git a/src/arrays/sorted_squares.py b/src/arrays/sorted_squares.py index ce7071f..b5939cb 100644 --- a/src/arrays/sorted_squares.py +++ b/src/arrays/sorted_squares.py @@ -17,10 +17,7 @@ def sorted_squares(nums: list[int]) -> list[int]: # All Negative if first_positive is None: - result = [] - for index in range(length - 1, -1, -1): - result.append(nums[index] * nums[index]) - return result + return [nums[index] * nums[index] for index in range(length - 1, -1, -1)] # All Positive if first_positive == 0: diff --git a/src/arrays/third_max.py b/src/arrays/third_max.py index 1d0b352..1b39da2 100644 --- a/src/arrays/third_max.py +++ b/src/arrays/third_max.py @@ -11,7 +11,7 @@ def third_max(nums: list[int]) -> int: """ unique_nums = set(nums) - if len(unique_nums) < 3: + if len(unique_nums) < 3: # noqa: PLR2004 return max(unique_nums) unique_nums.remove(max(unique_nums)) # 1st diff --git a/src/arrays/two_sum.py b/src/arrays/two_sum.py index 0d63d12..63fa9af 100644 --- a/src/arrays/two_sum.py +++ b/src/arrays/two_sum.py @@ -8,7 +8,7 @@ def two_sum(array: list[int], target: int) -> list[int]: Single pass using a value->index hash map of complements. Time: O(N). """ - complements = dict() + complements = {} for index, number in enumerate(array): complement = target - number diff --git a/src/arrays/valid_mountain_array.py b/src/arrays/valid_mountain_array.py index 1f41dd0..342bb7a 100644 --- a/src/arrays/valid_mountain_array.py +++ b/src/arrays/valid_mountain_array.py @@ -9,7 +9,7 @@ def valid_mountain_array(arr: list[int]) -> bool: Walk up the increasing run, then confirm a strictly decreasing run finishes the array. """ - if len(arr) <= 2: + if len(arr) <= 2: # noqa: PLR2004 return False index = 1 diff --git a/src/binary_tree/binary_tree_path.py b/src/binary_tree/binary_tree_path.py index ba6cb09..f3765a2 100644 --- a/src/binary_tree/binary_tree_path.py +++ b/src/binary_tree/binary_tree_path.py @@ -27,11 +27,11 @@ class TreeNode: def __init__(self, x): self.val = x - self.left = None - self.right = None + self.left: TreeNode | None = None + self.right: TreeNode | None = None -def binary_tree_paths(root_node: TreeNode) -> [str]: +def binary_tree_paths(root_node: TreeNode | None) -> list[str]: """Collect every root-to-leaf path into a list of `"parent->child"` strings.""" paths = [] if not root_node: @@ -39,7 +39,7 @@ def binary_tree_paths(root_node: TreeNode) -> [str]: return get_path(root_node, "", paths) -def get_path(node: TreeNode, path: str, paths: [str]) -> [str]: +def get_path(node: TreeNode, path: str, paths: list[str]) -> list[str]: """Recurse left and right, appending a completed path string whenever a leaf is reached.""" new_paths = list(paths) diff --git a/src/binary_tree/even_odd_tree.py b/src/binary_tree/even_odd_tree.py index b9b812b..aa3a3ef 100644 --- a/src/binary_tree/even_odd_tree.py +++ b/src/binary_tree/even_odd_tree.py @@ -33,9 +33,8 @@ def even_odd_tree(root: TreeNode | None): if even: if not validate_even(node, last_value): return False - else: - if not validate_odd(node, last_value): - return False + elif not validate_odd(node, last_value): + return False last_value = node.val @@ -52,15 +51,11 @@ def validate_even(node: TreeNode, last_value: int | None) -> bool: """Check that a node's value is odd and, on an even level, strictly greater than the previous value.""" if node.val and node.val % 2 == 0: return False - if last_value and node.val <= last_value: - return False - return True + return not (last_value and node.val <= last_value) def validate_odd(node: TreeNode, last_value: int | None) -> bool: """Check that a node's value is even and, on an odd level, strictly less than the previous value.""" if node.val % 2 != 0: return False - if last_value and node.val >= last_value: - return False - return True + return not (last_value and node.val >= last_value) diff --git a/src/binary_tree/find_mode.py b/src/binary_tree/find_mode.py index 598170b..6adff09 100644 --- a/src/binary_tree/find_mode.py +++ b/src/binary_tree/find_mode.py @@ -28,8 +28,6 @@ def traverse(cnt, node): if not largest: return values - for element in counter: - if counter[element] == largest[0][1]: - values.append(element) + values.extend(element for element, count in counter.items() if count == largest[0][1]) return values diff --git a/src/binary_tree/has_path_sum.py b/src/binary_tree/has_path_sum.py index f6c9dd7..5a19eb8 100644 --- a/src/binary_tree/has_path_sum.py +++ b/src/binary_tree/has_path_sum.py @@ -1,7 +1,7 @@ from src.binary_tree.tree_node import TreeNode -def has_path_sum(root: TreeNode, target: int) -> bool: +def has_path_sum(root: TreeNode | None, target: int) -> bool: """Has Path Sum. Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up diff --git a/src/binary_tree/min_depth.py b/src/binary_tree/min_depth.py index cbc86af..31be7bb 100644 --- a/src/binary_tree/min_depth.py +++ b/src/binary_tree/min_depth.py @@ -27,14 +27,14 @@ from src.binary_tree.tree_node import TreeNode -def min_depth(root: TreeNode) -> int: +def min_depth(root: TreeNode | None) -> int: """Recursively descend, at each node skipping to whichever child subtree exists when only one does.""" if not root: return 0 - if not root.left: + if not root.left and root.right: return min_depth(root.right) + 1 - if not root.right: + if not root.right and root.left: return min_depth(root.left) + 1 return min(min_depth(root.left), min_depth(root.right)) + 1 diff --git a/src/binary_tree/next_right_pointer.py b/src/binary_tree/next_right_pointer.py index 3e77401..a7ea4d0 100644 --- a/src/binary_tree/next_right_pointer.py +++ b/src/binary_tree/next_right_pointer.py @@ -1,17 +1,17 @@ from collections import deque -class Node: +class Node[T]: """Binary tree node with an extra `next` pointer to its right neighbor at the same level.""" - def __init__(self, value): - self.value = value - self.left = None - self.right = None - self.next = None + def __init__(self, value: T): + self.value: T = value + self.left: Node[T] | None = None + self.right: Node[T] | None = None + self.next: Node[T] | None = None -def next_right_pointer(root: Node) -> Node: +def next_right_pointer[T](root: Node[T] | None) -> Node[T] | None: """Next Right Pointer. You are given a perfect binary tree where all leaves are on the same level, and every parent has @@ -23,14 +23,15 @@ def next_right_pointer(root: Node) -> Node: if not root: return root - level = deque([root]) + level: deque[Node] = deque([root]) while level: right = None for _ in range(len(level)): left = level.pop() - left.next = right + if left: + left.next = right right = left if left.right: level.appendleft(left.right) diff --git a/src/binary_tree/postorder_traversal.py b/src/binary_tree/postorder_traversal.py index 2be67dd..fd5cdfa 100644 --- a/src/binary_tree/postorder_traversal.py +++ b/src/binary_tree/postorder_traversal.py @@ -38,7 +38,7 @@ def postorder_traversal_recursive(root: TreeNode) -> list[int]: return values -def postorder_traversal_iterative(root: TreeNode) -> list[int]: +def postorder_traversal_iterative(root: TreeNode | None) -> list[int]: """Traverse iteratively with an explicit stack, visiting a node only after both children are handled.""" values = [] stack = [] @@ -52,10 +52,10 @@ def postorder_traversal_iterative(root: TreeNode) -> list[int]: root = stack.pop() - if stack and root.right == stack[-1]: + if root and stack and root.right == stack[-1]: stack[-1] = root root = root.right - else: + elif root: values.append(root.val) root = None diff --git a/src/binary_tree/symmetric_binary_tree.py b/src/binary_tree/symmetric_binary_tree.py index 1a32b52..ce242c8 100644 --- a/src/binary_tree/symmetric_binary_tree.py +++ b/src/binary_tree/symmetric_binary_tree.py @@ -28,6 +28,9 @@ def symmetric_binary_tree(root: TreeNode | None) -> bool: Compares each level from the outside in, mirroring left and right positions, to check for symmetry. """ + if not root: + return True + level = [root] while level: diff --git a/src/binary_tree/tree_from_preorder_inorder.py b/src/binary_tree/tree_from_preorder_inorder.py index fff4965..b83c4d3 100644 --- a/src/binary_tree/tree_from_preorder_inorder.py +++ b/src/binary_tree/tree_from_preorder_inorder.py @@ -1,7 +1,7 @@ from src.binary_tree.tree_node import TreeNode -def tree_from_preorder_inorder(preorder: list[int], inorder: list[int]) -> TreeNode: +def tree_from_preorder_inorder(preorder: list[int] | None, inorder: list[int]) -> TreeNode | None: r"""Tree From Preorder and Inorder Traversal. Given preorder and inorder traversal of a tree, construct the binary tree. diff --git a/src/binary_tree/tree_node.py b/src/binary_tree/tree_node.py index 785b3c0..62bc54c 100644 --- a/src/binary_tree/tree_node.py +++ b/src/binary_tree/tree_node.py @@ -4,9 +4,7 @@ class TreeNode[T]: A single binary tree node holding a value and optional left/right children. """ - def __init__( - self, val: T, left: "TreeNode[T] | None" = None, right: "TreeNode[T] | None" = None - ): + def __init__(self, val: T, left: TreeNode[T] | None = None, right: TreeNode[T] | None = None): self.val = val self.left: TreeNode[T] | None = left self.right: TreeNode[T] | None = right diff --git a/src/binary_tree/valid_binary_search_tree.py b/src/binary_tree/valid_binary_search_tree.py index 62390f6..08aad82 100644 --- a/src/binary_tree/valid_binary_search_tree.py +++ b/src/binary_tree/valid_binary_search_tree.py @@ -1,7 +1,7 @@ from src.binary_tree.tree_node import TreeNode -def valid_bst(root: TreeNode, min_value=float("-inf"), max_value=float("inf")) -> bool: +def valid_bst(root: TreeNode | None, min_value=float("-inf"), max_value=float("inf")) -> bool: """Valid Binary Search Tree. Given a binary tree, determine if it is a valid binary search tree (BST). diff --git a/src/circularly_linked_list/insert_cyclic_list.py b/src/circularly_linked_list/insert_cyclic_list.py index c68cfde..e4a3d0b 100644 --- a/src/circularly_linked_list/insert_cyclic_list.py +++ b/src/circularly_linked_list/insert_cyclic_list.py @@ -1,7 +1,7 @@ from src.data_structures.singly_linked_list_node import SinglyLinkedListNode -def insert(head: SinglyLinkedListNode | None, value: int) -> SinglyLinkedListNode | None: +def insert(head: SinglyLinkedListNode | None, value: int) -> SinglyLinkedListNode: """Insert into a Cyclic Sorted List. Given a node from a Circular Linked List which is sorted in ascending order, write a function to @@ -23,17 +23,22 @@ def insert(head: SinglyLinkedListNode | None, value: int) -> SinglyLinkedListNod node = head.next while node: - if previous.data <= value <= node.data: + if node.data and previous.data and previous.data <= value <= node.data: + new_node = SinglyLinkedListNode(value) + previous.next = new_node + new_node.next = node + return head + + if ( + node.data + and previous.data + and previous.data > node.data + and (value >= previous.data or value <= node.data) + ): new_node = SinglyLinkedListNode(value) previous.next = new_node new_node.next = node return head - if previous.data > node.data: - if value >= previous.data or value <= node.data: - new_node = SinglyLinkedListNode(value) - previous.next = new_node - new_node.next = node - return head previous = node node = node.next diff --git a/src/data_structures/binary_tree.py b/src/data_structures/binary_tree.py index c03bac2..ec88cd5 100644 --- a/src/data_structures/binary_tree.py +++ b/src/data_structures/binary_tree.py @@ -18,11 +18,11 @@ class BinaryTree: Further Reading - https://en.wikipedia.org/wiki/Binary_tree """ - def __init__(self, root: BinaryTreeNode = None): - self.__root = root + def __init__(self, root: BinaryTreeNode | None = None): + self.__root: BinaryTreeNode | None = root @property - def root(self) -> BinaryTreeNode: + def root(self) -> BinaryTreeNode | None: return self.__root @root.setter diff --git a/src/data_structures/circularly_linked_list.py b/src/data_structures/circularly_linked_list.py index da272e7..c3d8b90 100644 --- a/src/data_structures/circularly_linked_list.py +++ b/src/data_structures/circularly_linked_list.py @@ -33,7 +33,8 @@ def all_values(self) -> list[T]: node = self.head while node: - values.append(node.data) + if node.data: + values.append(node.data) node = node.next if node == self.head: break diff --git a/src/data_structures/doubly_linked_list_node.py b/src/data_structures/doubly_linked_list_node.py index c37c923..d203e84 100644 --- a/src/data_structures/doubly_linked_list_node.py +++ b/src/data_structures/doubly_linked_list_node.py @@ -7,10 +7,10 @@ class DoublyLinkedListNode[T]: def __init__( self, - data: T, - previous_node: "DoublyLinkedListNode[T] | None" = None, - next_node: "DoublyLinkedListNode[T] | None" = None, + data: T | None, + previous_node: DoublyLinkedListNode[T] | None = None, + next_node: DoublyLinkedListNode[T] | None = None, ): - self.data: T = data - self.previous: "DoublyLinkedListNode[T] | None" = previous_node - self.next: "DoublyLinkedListNode[T] | None" = next_node + self.data: T | None = data + self.previous: DoublyLinkedListNode[T] | None = previous_node + self.next: DoublyLinkedListNode[T] | None = next_node diff --git a/src/data_structures/min_heap.py b/src/data_structures/min_heap.py index c3756ef..db7f58b 100644 --- a/src/data_structures/min_heap.py +++ b/src/data_structures/min_heap.py @@ -24,10 +24,7 @@ def size(self): return len(self.list) def values(self): - values = [] - for value in self.list: - values.append(value) - return values + return self.list.copy() def _get_parent(self, idx): return (idx - 1) // 2 diff --git a/src/data_structures/singly_linked_list.py b/src/data_structures/singly_linked_list.py index 7843cc5..e29941b 100644 --- a/src/data_structures/singly_linked_list.py +++ b/src/data_structures/singly_linked_list.py @@ -29,7 +29,8 @@ def all_values(self) -> list[T]: node = self._head.next while node: - values.append(node.data) + if node.data: + values.append(node.data) node = node.next return values @@ -66,6 +67,7 @@ def insert(self, data: T, index: int) -> None: node = SinglyLinkedListNode(data) current_node = self._head count = 0 + while current_node: if count == index: next_node = current_node.next @@ -74,8 +76,7 @@ def insert(self, data: T, index: int) -> None: return current_node = current_node.next count += 1 - if count < index: - IndexError("Index out of bounds") + raise IndexError("Index out of bounds") def remove(self, index: int) -> None: """Remove the node at index by linking its predecessor directly to its successor.""" diff --git a/src/data_structures/singly_linked_list_node.py b/src/data_structures/singly_linked_list_node.py index a17a73d..e006607 100644 --- a/src/data_structures/singly_linked_list_node.py +++ b/src/data_structures/singly_linked_list_node.py @@ -5,6 +5,6 @@ class SinglyLinkedListNode[T]: next node in the list. """ - def __init__(self, data: T | None = None, next_node: "SinglyLinkedListNode[T] | None" = None): + def __init__(self, data: T | None = None, next_node: SinglyLinkedListNode[T] | None = None): self.data: T | None = data self.next: SinglyLinkedListNode[T] | None = next_node diff --git a/src/data_structures/trie_with_array.py b/src/data_structures/trie_with_array.py index d7dfc3f..6eb4ccf 100644 --- a/src/data_structures/trie_with_array.py +++ b/src/data_structures/trie_with_array.py @@ -12,9 +12,9 @@ class TrieWithArray[T]: / \\ a b / / \\ - am ba be + am bo be / - bad + bot This implementation backs each node's children with a fixed-size array of 26 slots (one per lowercase letter a-z), indexed by `ord(char) - ord("a")`. Lookups are O(1) per character since the child slot is diff --git a/src/data_structures/trie_with_dictionary.py b/src/data_structures/trie_with_dictionary.py index 2cdf480..ed787a1 100644 --- a/src/data_structures/trie_with_dictionary.py +++ b/src/data_structures/trie_with_dictionary.py @@ -12,9 +12,9 @@ class TrieWithDictionary: / \\ a b / / \\ - am ba be + am bo be / - bad + bot This implementation backs each node's children with a dictionary (hash table) keyed by the prefix string represented so far, rather than a fixed-size array. This avoids reserving space for unused @@ -30,7 +30,7 @@ def insert(self, word: str) -> None: current_trie = self.head for index in range(1, len(word) + 1): if word[:index] in current_trie.child_nodes: - current_trie = current_trie.child_nodes.get(word[:index]) + current_trie = current_trie.child_nodes[word[:index]] else: child_node = TrieNode() current_trie.child_nodes.setdefault(word[:index], child_node) @@ -41,7 +41,7 @@ def search(self, word: str) -> bool: current_trie = self.head for index in range(1, len(word) + 1): if word[:index] in current_trie.child_nodes: - current_trie = current_trie.child_nodes.get(word[:index]) + current_trie = current_trie.child_nodes[word[:index]] else: return False return len(current_trie.child_nodes) == 0 @@ -51,7 +51,7 @@ def starts_with(self, prefix: str) -> bool: current_trie = self.head for index in range(1, len(prefix) + 1): if prefix[:index] in current_trie.child_nodes: - current_trie = current_trie.child_nodes.get(prefix[:index]) + current_trie = current_trie.child_nodes[prefix[:index]] else: return False return True @@ -59,4 +59,4 @@ def starts_with(self, prefix: str) -> bool: class TrieNode: def __init__(self): - self.child_nodes: dict[str:TrieNode] = dict() + self.child_nodes: dict[str, TrieNode] = {} diff --git a/src/data_structures/trie_with_flat_dictionary.py b/src/data_structures/trie_with_flat_dictionary.py index 8121b75..43defdb 100644 --- a/src/data_structures/trie_with_flat_dictionary.py +++ b/src/data_structures/trie_with_flat_dictionary.py @@ -17,7 +17,7 @@ class TrieWithFlatDictionary: def __init__(self): """Initialize your data structure here.""" - self.nodes: dict[str:bool] = dict() + self.nodes: dict[str, bool] = {} def insert(self, word: str) -> None: """Inserts a word into the trie.""" diff --git a/src/doubly_linked_list/flatten_doubly_linked_lists.py b/src/doubly_linked_list/flatten_doubly_linked_lists.py index f9d3fe1..1f0495e 100644 --- a/src/doubly_linked_list/flatten_doubly_linked_lists.py +++ b/src/doubly_linked_list/flatten_doubly_linked_lists.py @@ -20,14 +20,14 @@ class Node: def __init__( self, val: int, - previous_node: "Node" | None, - next_node: "Node" | None, - child_node: "Node" | None, + previous_node: Node | None, + next_node: Node | None, + child_node: Node | None, ): self.data: int = val - self.previous: "Node" | None = previous_node - self.next: "Node" | None = next_node - self.child: "Node" | None = child_node + self.previous: Node | None = previous_node + self.next: Node | None = next_node + self.child: Node | None = child_node def flatten(head: Node) -> Node: @@ -58,7 +58,7 @@ def flatten(head: Node) -> Node: return head -def flatten_iterative(head: Node) -> Node: +def flatten_iterative(head: Node | None) -> Node | None: """Use an explicit stack of nodes to flatten the list without recursion.""" if not head: return head @@ -66,7 +66,7 @@ def flatten_iterative(head: Node) -> Node: dummy = Node(0, None, head, None) previous = dummy - stack = list() + stack = [] stack.append(head) while stack: @@ -82,5 +82,8 @@ def flatten_iterative(head: Node) -> Node: current.child = None previous = current + + if not dummy.next: + return None dummy.next.previous = None return dummy.next diff --git a/src/integers/fibonacci.py b/src/integers/fibonacci.py index c8b887e..547f8b9 100644 --- a/src/integers/fibonacci.py +++ b/src/integers/fibonacci.py @@ -8,10 +8,10 @@ """ from collections.abc import Generator -from functools import lru_cache +from functools import cache -def fibonacci(number: int, memo: dict[int, int] = None) -> int: +def fibonacci(number: int, memo: dict[int, int] | None = None) -> int: """Generate the fibonacci number for n Uses a dictionary to store previously computed values @@ -31,7 +31,7 @@ def fibonacci(number: int, memo: dict[int, int] = None) -> int: return memo[number] -@lru_cache(maxsize=None) +@cache def fibonacci2(number: int) -> int: """Generate the fibonacci number for n @@ -42,7 +42,7 @@ def fibonacci2(number: int) -> int: :return: Fibonacci number """ - if number < 2: + if number < 2: # noqa: PLR2004 return number return fibonacci2(number - 1) + fibonacci2(number - 2) @@ -81,7 +81,7 @@ def fibonacci_with_array(number: int, memo=None) -> int: return fibonacci_with_array(number, memo) -def fibonacci_sequence(number: int) -> Generator[int, None, None]: +def fibonacci_sequence(number: int) -> Generator[int]: """Generate the fibonacci number for n Utilizes a generator diff --git a/src/multi_dimensional_arrays/rotate_image.py b/src/multi_dimensional_arrays/rotate_image.py index 6ddc2fe..fee637e 100644 --- a/src/multi_dimensional_arrays/rotate_image.py +++ b/src/multi_dimensional_arrays/rotate_image.py @@ -1,4 +1,4 @@ -def rotate_image_90_degrees(matrix: [[int]]) -> [[int]]: +def rotate_image_90_degrees(matrix: list[list[int]]) -> list[list[int]]: """Rotate Image 90 Degrees Clockwise. You are given an n x n 2D matrix that represents an image. Rotate the image by 90 degrees diff --git a/src/multi_dimensional_arrays/spiral_matrix.py b/src/multi_dimensional_arrays/spiral_matrix.py index a831541..6e967cb 100644 --- a/src/multi_dimensional_arrays/spiral_matrix.py +++ b/src/multi_dimensional_arrays/spiral_matrix.py @@ -18,25 +18,21 @@ def spiral_matrix(matrix: list[list[int]]) -> list[int]: while srow <= opprow and scol <= oppcol: # Loop through top row, Offset opposite column for 0 based indexing - for col in range(scol, oppcol + 1): - output.append(matrix[srow][col]) + output.extend(matrix[srow][col] for col in range(scol, oppcol + 1)) # Offset first row since the value was added in the loop above # Offset opposite row to account for 0 based indexing - for row in range(srow + 1, opprow + 1): - output.append(matrix[row][oppcol]) + output.extend(matrix[row][oppcol] for row in range(srow + 1, opprow + 1)) # Shortcut for matrices that are just rows, columns if srow < opprow and scol < oppcol: # note: reversed ranges are offset by one on the end # Iterate backwards across bottom row - for col in range(oppcol - 1, scol, -1): - output.append(matrix[opprow][col]) + output.extend(matrix[opprow][col] for col in range(oppcol - 1, scol, -1)) # Iterate up left side # Do not offset range since first value was apart of the first row - for row in range(opprow, srow, -1): - output.append(matrix[row][scol]) + output.extend(matrix[row][scol] for row in range(opprow, srow, -1)) # Move start position in by 1 and end position in by 1 srow += 1 diff --git a/src/n_ary_tree/encode_decode_tree.py b/src/n_ary_tree/encode_decode_tree.py index 28acf30..0c96d28 100644 --- a/src/n_ary_tree/encode_decode_tree.py +++ b/src/n_ary_tree/encode_decode_tree.py @@ -53,7 +53,8 @@ def decode(data: TreeNode) -> NaryTreeNode | None: while sibling: node = NaryTreeNode(sibling.val, []) - parent.children.append(node) + if parent.children is not None: + parent.children.append(node) queue.append((node, sibling)) sibling = sibling.right diff --git a/src/n_ary_tree/nary_tree_node.py b/src/n_ary_tree/nary_tree_node.py index 8ba5918..132243e 100644 --- a/src/n_ary_tree/nary_tree_node.py +++ b/src/n_ary_tree/nary_tree_node.py @@ -5,6 +5,6 @@ class NaryTreeNode[T]: optional list of child nodes. """ - def __init__(self, value: T, children: list["NaryTreeNode[T]"] | None = None): + def __init__(self, value: T, children: list[NaryTreeNode[T]] | None = None): self.value: T = value - self.children: list["NaryTreeNode[T]"] | None = children + self.children: list[NaryTreeNode[T]] | None = children diff --git a/src/n_ary_tree/postorder_traversal_iterative.py b/src/n_ary_tree/postorder_traversal_iterative.py index 3663db9..8b2d888 100644 --- a/src/n_ary_tree/postorder_traversal_iterative.py +++ b/src/n_ary_tree/postorder_traversal_iterative.py @@ -20,8 +20,7 @@ def postorder_traversal_iterative[T](root: NaryTreeNode[T] | None) -> list[T]: while stack: node = stack.pop() if node.children: - for child in node.children: - stack.append(child) + stack.extend(node.children) values.appendleft(node.value) return list(values) diff --git a/src/n_ary_tree/preorder_traversal_iterative.py b/src/n_ary_tree/preorder_traversal_iterative.py index 42c4c43..ea776ed 100644 --- a/src/n_ary_tree/preorder_traversal_iterative.py +++ b/src/n_ary_tree/preorder_traversal_iterative.py @@ -19,7 +19,6 @@ def preorder_traversal_iterative(root: NaryTreeNode | None) -> list: values.append(node.value) if node.children: - for child in reversed(node.children): - stack.append(child) + stack.extend(reversed(node.children)) return values diff --git a/src/practical/account_pool.py b/src/practical/account_pool.py index 6bead2a..5aad8a4 100644 --- a/src/practical/account_pool.py +++ b/src/practical/account_pool.py @@ -37,8 +37,8 @@ def get_account(self) -> str: """ try: _, account = self.account_queue.get(block=True, timeout=self.timeout) - except queue.Empty: - raise self.AccountPoolTimeoutError(timeout=self.timeout) + except queue.Empty as e: + raise self.AccountPoolTimeoutError(timeout=self.timeout) from e self.outstanding_accounts.add(account) return account diff --git a/src/practical/html_parser.py b/src/practical/html_parser.py index fe9d7ef..d21f69f 100644 --- a/src/practical/html_parser.py +++ b/src/practical/html_parser.py @@ -1,4 +1,5 @@ from html.parser import HTMLParser +from pathlib import Path class HTMLValidator: @@ -18,7 +19,7 @@ def validate_html(path: str) -> bool: parser = TagChecker() try: - with open(path, "r", encoding="utf-8") as f: + with Path(path).open(encoding="utf-8") as f: while chunk := f.read(64000): parser.feed(chunk) parser.close() diff --git a/src/queues/walls_and_gates.py b/src/queues/walls_and_gates.py index 758315a..a68e1c0 100644 --- a/src/queues/walls_and_gates.py +++ b/src/queues/walls_and_gates.py @@ -46,7 +46,8 @@ def walls_and_gates(rooms: list[list[int]]) -> list[list[int]]: for direction in directions: row = point[0] + direction[0] col = point[1] + direction[1] - if row < 0 or col < 0 or row >= height or col >= width or rooms[row][col] != 2147483647: + out_of_bounds = row < 0 or col < 0 or row >= height or col >= width + if out_of_bounds or rooms[row][col] != 2147483647: # noqa: PLR2004 continue rooms[row][col] = rooms[point[0]][point[1]] + 1 queue.appendleft((row, col)) diff --git a/src/singly_linked_lists/add_two_numbers.py b/src/singly_linked_lists/add_two_numbers.py index d0e0bfe..3e3c27b 100644 --- a/src/singly_linked_lists/add_two_numbers.py +++ b/src/singly_linked_lists/add_two_numbers.py @@ -21,13 +21,15 @@ def add_two_numbers( dummy_node = SinglyLinkedListNode(0) result = dummy_node carry = 0 + while node1 or node2: val1 = 0 val2 = 0 - if node1: + + if node1 and node1.data: val1 = node1.data node1 = node1.next - if node2: + if node2 and node2.data: val2 = node2.data node2 = node2.next diff --git a/src/singly_linked_lists/copy_list_with_random_pointer.py b/src/singly_linked_lists/copy_list_with_random_pointer.py index cafff1e..a26bbca 100644 --- a/src/singly_linked_lists/copy_list_with_random_pointer.py +++ b/src/singly_linked_lists/copy_list_with_random_pointer.py @@ -1,7 +1,7 @@ class Node[T]: """A linked list node with an additional pointer that may reference any other node in the list.""" - def __init__(self, value: int, next_node: "Node | None" = None, random: "Node | None" = None): + def __init__(self, value: int, next_node: Node | None = None, random: Node | None = None): self.value: int = value self.next: Node[T] | None = next_node self.random: Node[T] | None = random diff --git a/src/singly_linked_lists/merge_two_sorted_lists.py b/src/singly_linked_lists/merge_two_sorted_lists.py index 36a60b6..18ce26e 100644 --- a/src/singly_linked_lists/merge_two_sorted_lists.py +++ b/src/singly_linked_lists/merge_two_sorted_lists.py @@ -22,7 +22,7 @@ def merge_two_lists( current_node = dummy_node while node1 and node2: - if node1.data <= node2.data: + if node1.data and node1.data <= node2.data: current_node.next = node1 node1 = node1.next else: diff --git a/src/singly_linked_lists/remove_nth_node_from_list.py b/src/singly_linked_lists/remove_nth_node_from_list.py index 0a67ae1..d24a3d3 100644 --- a/src/singly_linked_lists/remove_nth_node_from_list.py +++ b/src/singly_linked_lists/remove_nth_node_from_list.py @@ -10,18 +10,21 @@ def remove_nth_from_end(head: SinglyLinkedListNode, nth: int) -> SinglyLinkedLis """ dummy: SinglyLinkedListNode = SinglyLinkedListNode(0) dummy.next = head - previous: SinglyLinkedListNode = dummy - lead: SinglyLinkedListNode = dummy + previous: SinglyLinkedListNode | None = dummy + lead: SinglyLinkedListNode | None = dummy # Move lead forward for _ in range(nth + 1): - lead = lead.next + if lead: + lead = lead.next # Move through list until lead is None while lead: - previous = previous.next + if previous: + previous = previous.next lead = lead.next # Delete Node by relinking nodes or reassigning head - previous.next = previous.next.next + if previous and previous.next: + previous.next = previous.next.next return dummy.next diff --git a/src/singly_linked_lists/rotate_list.py b/src/singly_linked_lists/rotate_list.py index b02eaee..6210f38 100644 --- a/src/singly_linked_lists/rotate_list.py +++ b/src/singly_linked_lists/rotate_list.py @@ -23,11 +23,16 @@ def rotate_list(head: SinglyLinkedListNode | None, amount: int) -> SinglyLinkedL number += 1 current = current.next current.next = head + current = head for _ in range((number - amount) % number - 1): - current = current.next + if current: + current = current.next + + new_head = None - new_head = current.next - current.next = None + if current: + new_head = current.next + current.next = None return new_head diff --git a/src/stacks/valid_parentheses.py b/src/stacks/valid_parentheses.py index ef2e161..06b7dd2 100644 --- a/src/stacks/valid_parentheses.py +++ b/src/stacks/valid_parentheses.py @@ -19,8 +19,7 @@ def valid_parentheses(value: str) -> bool: for char in value: if char in closing_values: stack.append(char) - else: - if not stack or closing_values[stack.pop()] != char: - return False + elif not stack or closing_values[stack.pop()] != char: + return False return len(stack) == 0 diff --git a/src/strings/anagram.py b/src/strings/anagram.py index 26e9195..c7d4eb8 100644 --- a/src/strings/anagram.py +++ b/src/strings/anagram.py @@ -25,7 +25,4 @@ def valid_anagram(val1: str, val2: str) -> bool: else: return False - for result in char_counter.values(): - if result != 0: - return False - return True + return all(result == 0 for result in char_counter.values()) diff --git a/src/strings/jewels_and_stones.py b/src/strings/jewels_and_stones.py index c9d122b..516b056 100644 --- a/src/strings/jewels_and_stones.py +++ b/src/strings/jewels_and_stones.py @@ -12,7 +12,7 @@ def jewels_and_stones(jewels: str, stones: str) -> int: Count occurrences of each stone, then sum the counts for stones that are also jewels. """ - stone_count = dict() + stone_count = {} for stone in stones: if stone in stone_count: diff --git a/src/strings/pangram.py b/src/strings/pangram.py index 7bd64ad..2a57ee0 100644 --- a/src/strings/pangram.py +++ b/src/strings/pangram.py @@ -12,4 +12,4 @@ def pangram(string: str) -> bool: if char.isalpha(): alpha_set.add(char.lower()) - return len(alpha_set) == 26 + return len(alpha_set) == 26 # noqa: PLR2004 diff --git a/src/strings/reverse_words_ii.py b/src/strings/reverse_words_ii.py index ab7604c..ec3ec83 100644 --- a/src/strings/reverse_words_ii.py +++ b/src/strings/reverse_words_ii.py @@ -23,7 +23,7 @@ def reverse(string: list[str], left: int, right: int): for index in range(length): if left_index is None and sentence[index] != " ": left_index = index - if sentence[index] == " ": + if sentence[index] == " " and left_index is not None: reverse(sentence, left_index, index - 1) left_index = None diff --git a/src/strings/string_to_integer.py b/src/strings/string_to_integer.py index 1465e9b..7b750aa 100644 --- a/src/strings/string_to_integer.py +++ b/src/strings/string_to_integer.py @@ -7,7 +7,7 @@ def string_to_integer(string: str) -> int: Skip leading spaces and an optional minus sign, then parse and return the leading run of digits. """ length = len(string) - numbers = set(list("1234567890")) + numbers = set("1234567890") positive = True start_index = -1 diff --git a/src/strings/valid_word_abbreviation.py b/src/strings/valid_word_abbreviation.py index 48f62c9..014578b 100644 --- a/src/strings/valid_word_abbreviation.py +++ b/src/strings/valid_word_abbreviation.py @@ -11,7 +11,7 @@ def valid_word_abbreviation(word: str, abbr: str) -> bool: Note: assume the word contains only lowercase letters, and the abbreviation contains only lowercase letters and digits. - Example: `word = "internationalization"`, `abbr = "i12iz4n"` -> `True` + Example: `word = "internationalization"`, `abbr = "i4national6n"` -> `True` Example: `word = "apple"`, `abbr = "a2e"` -> `False` Walk the abbreviation, matching literal letters against word and skipping runs per numeric groups. diff --git a/src/trie/map_sum.py b/src/trie/map_sum.py index 6c14ea8..c3219fa 100644 --- a/src/trie/map_sum.py +++ b/src/trie/map_sum.py @@ -1,3 +1,11 @@ +class MapSumNode: + """A single node in the MapSum trie, storing a value and its child prefix nodes.""" + + def __init__(self, value: int = 0): + self.value: int = value + self.nodes: dict[str, MapSumNode] = {} + + class MapSum: """Map Sum. @@ -19,15 +27,14 @@ def __init__(self): self.value = 0 self.head: MapSumNode = MapSumNode() - def insert(self, key: str, val: int) -> None: + def insert(self, key: str, val: int): """Insert key into the trie, one node per prefix, and set the leaf's value.""" + if self.head is None: + return current_node = self.head + for index in range(1, len(key) + 1): - if key[:index] in current_node.nodes: - current_node = current_node.nodes.get(key[:index]) - else: - current_node.nodes.setdefault(key[:index], MapSumNode()) - current_node = current_node.nodes.get(key[:index]) + current_node = current_node.nodes.setdefault(key[:index], MapSumNode()) current_node.value = val def sum(self, prefix: str) -> int: @@ -36,7 +43,7 @@ def sum(self, prefix: str) -> int: # Find target node for index in range(1, len(prefix) + 1): if prefix[:index] in current_node.nodes: - current_node = current_node.nodes.get(prefix[:index]) + current_node = current_node.nodes[prefix[:index]] else: return 0 @@ -53,11 +60,3 @@ def __recursive_sum(self, parent_node) -> int: for node in parent_node.nodes: total += self.__recursive_sum(parent_node.nodes.get(node)) return total - - -class MapSumNode: - """A single node in the MapSum trie, storing a value and its child prefix nodes.""" - - def __init__(self, value: int = 0): - self.value = value - self.nodes: dict[str:MapSumNode] = dict() diff --git a/src/trie/replace_words.py b/src/trie/replace_words.py index b2798a7..eee52d8 100644 --- a/src/trie/replace_words.py +++ b/src/trie/replace_words.py @@ -15,23 +15,19 @@ def replace_words(dictionary: list[str], sentence: str) -> str: `"the cat was rat by the bat"` """ words = sentence.split(" ") - updated_sentence: list[str] = [] prefix_trie = TrieNode() for word in dictionary: prefix_trie.insert(word) - for word in words: - updated_sentence.append(prefix_trie.replace_word(word)) - - return " ".join(updated_sentence) + return " ".join(prefix_trie.replace_word(word) for word in words) class TrieNode: """A prefix trie node used to store dictionary roots and match sentence words against them.""" def __init__(self): - self.nodes: dict[str, TrieNode] = dict() + self.nodes: dict[str, TrieNode] = {} def insert(self, word: str) -> None: """Insert word into the trie, stopping early if a shorter existing root already covers it.""" diff --git a/tests/arrays/test_largest_number_twice_of_others.py b/tests/arrays/test_largest_number_twice_of_others.py index 5a99e26..62ae6d6 100644 --- a/tests/arrays/test_largest_number_twice_of_others.py +++ b/tests/arrays/test_largest_number_twice_of_others.py @@ -11,6 +11,7 @@ def test_largest_number_at_least_twice_of_others(): assert largest_number_at_least_twice_of_others([3, 0, 0, 2]) == -1 assert largest_number_at_least_twice_of_others([0, 0, 1, 2]) == 3 assert largest_number_at_least_twice_of_others([0]) == 0 + assert largest_number_at_least_twice_of_others([]) == -1 def test_largest_number_at_least_twice_of_others2(): diff --git a/tests/binary_tree/test_binary_tree_path.py b/tests/binary_tree/test_binary_tree_path.py index c4341cc..76a7ab5 100644 --- a/tests/binary_tree/test_binary_tree_path.py +++ b/tests/binary_tree/test_binary_tree_path.py @@ -2,6 +2,9 @@ def test_binary_tree_paths(): + root_node = None + assert binary_tree_paths(root_node) == [] + root_node = TreeNode(1) root_node.left = TreeNode(2) root_node.right = TreeNode(3) diff --git a/tests/binary_tree/test_even_odd_tree.py b/tests/binary_tree/test_even_odd_tree.py index d8ecaa2..3cf204a 100644 --- a/tests/binary_tree/test_even_odd_tree.py +++ b/tests/binary_tree/test_even_odd_tree.py @@ -3,10 +3,16 @@ def test_even_odd_tree(): + assert not even_odd_tree(None) + root = TreeNode(1) assert even_odd_tree(root) assert not even_odd_tree(TreeNode(2)) + root.left = TreeNode(10) + root.right = TreeNode(3) + assert not even_odd_tree(root) + root.left = TreeNode(10) root.right = TreeNode(4) assert even_odd_tree(root) diff --git a/tests/binary_tree/test_find_mode.py b/tests/binary_tree/test_find_mode.py index 917307c..0fb59cb 100644 --- a/tests/binary_tree/test_find_mode.py +++ b/tests/binary_tree/test_find_mode.py @@ -6,5 +6,7 @@ def test_find_mode(): tree = get_binary_tree() assert sorted(find_mode(tree)) == [1, 2, 3, 4, 5] + assert tree.left + assert tree.left.right tree.left.right.left = TreeNode(5) assert find_mode(tree) == [5] diff --git a/tests/binary_tree/test_next_right_pointer.py b/tests/binary_tree/test_next_right_pointer.py index e4e7a3b..98baa01 100644 --- a/tests/binary_tree/test_next_right_pointer.py +++ b/tests/binary_tree/test_next_right_pointer.py @@ -7,6 +7,9 @@ def test_next_right_pointer(): tree.right = Node(3) processed_tree = next_right_pointer(tree) + assert processed_tree assert not processed_tree.next + assert processed_tree.left assert processed_tree.left.next == processed_tree.right + assert processed_tree.right assert not processed_tree.right.next diff --git a/tests/binary_tree/test_tree_from_preorder_inorder.py b/tests/binary_tree/test_tree_from_preorder_inorder.py index cb49607..e53cfb0 100644 --- a/tests/binary_tree/test_tree_from_preorder_inorder.py +++ b/tests/binary_tree/test_tree_from_preorder_inorder.py @@ -18,7 +18,8 @@ def test_tree_from_preorder_inorder(): root.right.right = TreeNode(7) tree = tree_from_preorder_inorder(preorder, inorder) + assert tree + tree_values = get_binary_tree_values(tree) expected_values = get_binary_tree_values(root) - assert tree_values == expected_values diff --git a/tests/data_structures/test_binary_tree.py b/tests/data_structures/test_binary_tree.py index d3a67c7..bf144c9 100644 --- a/tests/data_structures/test_binary_tree.py +++ b/tests/data_structures/test_binary_tree.py @@ -8,6 +8,7 @@ def test_init(): root = BinaryTreeNode(1) tree = BinaryTree(root) + assert tree.root assert tree.root.data == 1 diff --git a/tests/data_structures/test_binary_tree_node.py b/tests/data_structures/test_binary_tree_node.py index ac4a442..5df7296 100644 --- a/tests/data_structures/test_binary_tree_node.py +++ b/tests/data_structures/test_binary_tree_node.py @@ -11,15 +11,18 @@ def test_init(): assert not root.right root = BinaryTreeNode(1, left, right) - assert root.left and root.left.data == 2 - assert root.right and root.right.data == 3 + assert root.left + assert root.left.data == 2 + assert root.right + assert root.right.data == 3 def test_left_node(): left = BinaryTreeNode(2) root = BinaryTreeNode(1) root.left = left - assert root.left and root.left.data == 2 + assert root.left + assert root.left.data == 2 def test_right_node(): diff --git a/tests/data_structures/test_doubly_linked_list_node.py b/tests/data_structures/test_doubly_linked_list_node.py index 644d5ae..e1a6448 100644 --- a/tests/data_structures/test_doubly_linked_list_node.py +++ b/tests/data_structures/test_doubly_linked_list_node.py @@ -9,5 +9,7 @@ def test_doubly_linked_list_node(): node = DoublyLinkedListNode(2, DoublyLinkedListNode(1), DoublyLinkedListNode(3)) assert node.data == 2 - assert node.previous and node.previous.data == 1 - assert node.next and node.next.data == 3 + assert node.previous + assert node.previous.data == 1 + assert node.next + assert node.next.data == 3 diff --git a/tests/data_structures/test_singly_linked_list.py b/tests/data_structures/test_singly_linked_list.py index 512a69a..3b3fb7e 100644 --- a/tests/data_structures/test_singly_linked_list.py +++ b/tests/data_structures/test_singly_linked_list.py @@ -1,3 +1,5 @@ +import pytest + from src.data_structures.singly_linked_list import SinglyLinkedList EMPTY_LIST = SinglyLinkedList() @@ -72,9 +74,17 @@ def test_insert_tail(): assert linked_list.get(3) == 22 +@pytest.mark.parametrize("index", [4, 10, -1]) +def test_insert_out_of_bounds(index): + linked_list = get_multi_node_list() + with pytest.raises(IndexError): + linked_list.insert(99, index) + assert linked_list.all_values() == [1, 2, 3] + + def test_remove_empty(): linked_list = SinglyLinkedList() - assert not linked_list.remove(0) + assert linked_list.remove(0) is None def test_remove(): diff --git a/tests/data_structures/test_singly_linked_list_node.py b/tests/data_structures/test_singly_linked_list_node.py index 4f00fdf..a59472b 100644 --- a/tests/data_structures/test_singly_linked_list_node.py +++ b/tests/data_structures/test_singly_linked_list_node.py @@ -12,4 +12,5 @@ def test_singly_linked_list_node(): node = SinglyLinkedListNode(1, SinglyLinkedListNode(2)) assert node.data == 1 + assert node.next assert node.next.data == 2 diff --git a/tests/n_ary_tree/test_encode_decode_tree.py b/tests/n_ary_tree/test_encode_decode_tree.py index 809c29c..208e887 100644 --- a/tests/n_ary_tree/test_encode_decode_tree.py +++ b/tests/n_ary_tree/test_encode_decode_tree.py @@ -5,4 +5,9 @@ def test_encode_decode(): tree = get_n_nary_tree() values = get_n_ary_tree_values(tree) - assert get_n_ary_tree_values(decode(encode(tree))) == values + encoded_tree = encode(tree) + assert encoded_tree is not None + + decoded_tree = decode(encoded_tree) + assert decoded_tree is not None + assert get_n_ary_tree_values(decoded_tree) == values diff --git a/tests/n_ary_tree/test_nary_tree_node.py b/tests/n_ary_tree/test_nary_tree_node.py index 12172cd..36221fc 100644 --- a/tests/n_ary_tree/test_nary_tree_node.py +++ b/tests/n_ary_tree/test_nary_tree_node.py @@ -8,4 +8,6 @@ def test_nary_tree_node(): node = NaryTreeNode(1, [NaryTreeNode(2)]) assert node.value == 1 + assert node.children is not None + assert len(node.children) == 1 assert node.children[0].value == 2 diff --git a/tests/singly_linked_lists/test_copy_list_with_random_pointer.py b/tests/singly_linked_lists/test_copy_list_with_random_pointer.py index efcb49d..7d7bd02 100644 --- a/tests/singly_linked_lists/test_copy_list_with_random_pointer.py +++ b/tests/singly_linked_lists/test_copy_list_with_random_pointer.py @@ -8,8 +8,11 @@ def test_copy_random_list(): head.next.next = Node(3) head.next.next.random = head new_head = copy_random_list(head) + assert new_head is not None assert new_head.value == 1 + assert new_head.next is not None assert new_head.next.value == 2 + assert new_head.next.next is not None assert new_head.next.next.value == 3 assert new_head.next.random == new_head assert new_head.next.next.random == new_head diff --git a/tests/singly_linked_lists/test_remove_nth_node_from_list.py b/tests/singly_linked_lists/test_remove_nth_node_from_list.py index 4bb3c89..aaa5f7e 100644 --- a/tests/singly_linked_lists/test_remove_nth_node_from_list.py +++ b/tests/singly_linked_lists/test_remove_nth_node_from_list.py @@ -8,11 +8,20 @@ def test_remove_nth_from_end(): head = SinglyLinkedListNode(1) head.next = SinglyLinkedListNode(2) - assert remove_nth_from_end(head, 2).data == 2 - assert remove_nth_from_end(head, 1).data == 1 + nth_node = remove_nth_from_end(head, 2) + assert nth_node is not None + assert nth_node.data == 2 + + nth_node = remove_nth_from_end(head, 1) + assert nth_node is not None + assert nth_node.data == 1 head = SinglyLinkedListNode(1) head.next = SinglyLinkedListNode(2) head.next.next = SinglyLinkedListNode(3) head.next.next.next = SinglyLinkedListNode(4) - assert remove_nth_from_end(head, 2).next.next.data == 4 + nth_node = remove_nth_from_end(head, 2) + assert nth_node is not None + assert nth_node.next is not None + assert nth_node.next.next is not None + assert nth_node.next.next.data == 4 diff --git a/tests/strings/test_valid_word_abbreviation.py b/tests/strings/test_valid_word_abbreviation.py index d4433f3..15412d0 100644 --- a/tests/strings/test_valid_word_abbreviation.py +++ b/tests/strings/test_valid_word_abbreviation.py @@ -3,7 +3,7 @@ def test_valid_word_abbreviation(): assert not valid_word_abbreviation("apple", "a2e") - assert valid_word_abbreviation("internationalization", "i12iz4n") + assert valid_word_abbreviation("internationalization", "i4national6n") assert valid_word_abbreviation("internationalization", "i18n") assert valid_word_abbreviation("acdeaaa", "a2e3") assert not valid_word_abbreviation("a", "01") diff --git a/tests/test_helpers/test_helpers.py b/tests/test_helpers/test_helpers.py index 40097fd..4a2d64a 100644 --- a/tests/test_helpers/test_helpers.py +++ b/tests/test_helpers/test_helpers.py @@ -50,7 +50,7 @@ def get_list_values(head): return values -def get_cyclic_list_values[T](head: SinglyLinkedListNode[T]): +def get_cyclic_list_values[T](head: SinglyLinkedListNode[T] | None): if not head: return [] diff --git a/uv.lock b/uv.lock index 50d4369..4f453f9 100644 --- a/uv.lock +++ b/uv.lock @@ -1,6 +1,99 @@ version = 1 -revision = 3 -requires-python = ">=3.14" +revision = 5 +requires-python = ">=3.15" + +[[package]] +name = "boolean-py" +version = "5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c4/cf/85379f13b76f3a69bca86b60237978af17d6aa0bc5998978c3b8cf05abb2/boolean_py-5.0.tar.gz", hash = "sha256:60cbc4bad079753721d32649545505362c754e121570ada4658b852a3a318d95", size = 37047, upload-time = "2025-04-03T10:39:49.734Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e5/ca/78d423b324b8d77900030fa59c4aa9054261ef0925631cd2501dd015b7b7/boolean_py-5.0-py3-none-any.whl", hash = "sha256:ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9", size = 26577, upload-time = "2025-04-03T10:39:48.449Z" }, +] + +[[package]] +name = "cachecontrol" +version = "0.15.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "msgpack" }, + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f6/03/825d9b1cb14c5ca1ce4dec89fbb87ef87bdd5d45eb5bd96a463aa1ead457/cachecontrol-0.15.0.tar.gz", hash = "sha256:52157b539eb64d85c8c793660e86cf05cf95fad7b98c8ef6846e4a0ddffdb193", size = 31535, upload-time = "2026-11-16T20:48:41.99Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8d/4b/fb590767eef526df867d79f1ebfaf737ce85365a752fa1f4cc428497da7d/cachecontrol-0.15.0-py3-none-any.whl", hash = "sha256:10b7ab4387355ad9361d5b89bc0f6758e48099017be173241c4e0f20d9e1dad2", size = 22333, upload-time = "2026-11-16T20:48:40.674Z" }, +] + +[package.optional-dependencies] +filecache = [ + { name = "filelock" }, +] + +[[package]] +name = "certifi" +version = "2026.10.23" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ca/e9/34e597dee616d0b8ee4b34d29399e85c2204ade174157a48505d42baa4ff/charset_normalizer-3.5.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:87475fabc8d9996fd9c27debb395e642e8c838d78a00b6e932227a0e06b81e26", size = 367676, upload-time = "2026-09-30T04:37:28.329Z" }, + { url = "https://files.pythonhosted.org/packages/60/9f/a5d1c91c0263745e2cd344c5a4415d787c575501ab1d449f1148ac6b495d/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9409a8bf35cf78353942504b24a57de3d75b708997a1e4bd8db71ac8633ce364", size = 248414, upload-time = "2026-09-30T04:37:30.167Z" }, + { url = "https://files.pythonhosted.org/packages/26/79/e697f77464748a3ee3cf490c83d592459400d4898380d66c38366b03080c/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:498dc3188ca05a68231ac3fdbfc7f57eb67e1343c30e0fea17f8218c1599b253", size = 244775, upload-time = "2026-09-30T04:37:31.964Z" }, + { url = "https://files.pythonhosted.org/packages/ca/87/3d42a42e18ea066e2513936fd678a00696e77878b5ae04528976abdbcb83/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e242bb1c5e76e97dfa9e7f209a71e93a01d7f19ffdd5cfbb2e2d55b4f08f8ab0", size = 273877, upload-time = "2026-09-30T04:37:33.661Z" }, + { url = "https://files.pythonhosted.org/packages/c3/76/8a28136f3938ba9836f84280ce0c4d61ed1cf15a036b2034900c62634162/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:def79fa35ef0cef8d2accec024f4fdc7ead3012ff02f5215c783f39f03ef8cfc", size = 269455, upload-time = "2026-09-30T04:37:35.573Z" }, + { url = "https://files.pythonhosted.org/packages/a0/a1/4fbf5d0f0f1b2a080474c1cf9a2f12c4c6531bb0e8ba591055e846d2b4e9/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3df041de8887954562c9b261cba85ca0e9ded74048daf125f45edcfaa4832229", size = 257336, upload-time = "2026-09-30T04:37:37.397Z" }, + { url = "https://files.pythonhosted.org/packages/ba/a2/8b50aa320adb880ad579518e6f718f24944804b42a88b83d267d5d444125/charset_normalizer-3.5.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:04851f73ae72b8413dddadb16a49dfee95263553741fd42d546f7d66907e6be5", size = 257584, upload-time = "2026-09-30T04:37:39.522Z" }, + { url = "https://files.pythonhosted.org/packages/a5/57/50e3fed84e175f40349bd0da7a4fce94c87f0378f52d74f511d89e0bdc20/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:183b88127acdb4fabe59d951ab424faf1af7b63cdbb5f776186c1ea2ffcaed98", size = 251854, upload-time = "2026-09-30T04:37:41.23Z" }, + { url = "https://files.pythonhosted.org/packages/d6/54/f7fbb3493c9f49091213b9c2d6dd65800696f1ce1a3f196a4205f50417b1/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:16fa0eccf81304b79c5cd87f9271c3b85dd9dd99245e4422ae9c0dd45e0f99d3", size = 248767, upload-time = "2026-09-30T04:37:42.883Z" }, + { url = "https://files.pythonhosted.org/packages/d9/37/b3a6385acc5a1e45b39ae9c90bfb9cf838a09b9dd37ef2740ab4c6b4a2eb/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:7441d755b7ab94f8d4eb3e43ec05482d760842fd263d003a99102d742cd835e2", size = 274479, upload-time = "2026-09-30T04:37:44.658Z" }, + { url = "https://files.pythonhosted.org/packages/89/44/809913e2cfd279e635a9294fdbbfb1b1dc62a8189d473d561f649fce98d8/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:ca403d7e4798f525fdfc78e258820419cbbd0f0ecbab9de7840e3c017cf6b8cf", size = 258310, upload-time = "2026-09-30T04:37:46.529Z" }, + { url = "https://files.pythonhosted.org/packages/af/a2/f28400ab13359d91bd39179df8e149376b9bf36588e739a3a4f9de2b84b2/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:df29a0a7107f7011e77f4eebdddec4c7331e24d787a0b21a46d63bdf7445da95", size = 271100, upload-time = "2026-09-30T04:37:48.399Z" }, + { url = "https://files.pythonhosted.org/packages/e9/89/9bab37955edf0adb3b66f8a3a6617d9f2f487e0d56f295a6a286cb640aa6/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f3c96f633825733f735c5a9cf21d21a257d8e1edf0b1cee0a064b9c424ca0f7d", size = 259936, upload-time = "2026-09-30T04:37:50.023Z" }, + { url = "https://files.pythonhosted.org/packages/23/b5/4459e08d45a679f903d50fea08bc52cfa728cca4d7bd02c757b5e5abda2e/charset_normalizer-3.5.2-cp315-cp315-win32.whl", hash = "sha256:281cb91036248400f4cc957495cccd44c275c2e0c5854f7e45ac5cf7dc193847", size = 186301, upload-time = "2026-09-30T04:37:51.722Z" }, + { url = "https://files.pythonhosted.org/packages/98/e8/55d5fd3935b4bce6da4fe0df61898e8c82653e317e677bd58aceb9c60f13/charset_normalizer-3.5.2-cp315-cp315-win_amd64.whl", hash = "sha256:89b53f3cda69831909888e0494f4fa0bcd3537e3e138dabeb620bd6ad946bae8", size = 210858, upload-time = "2026-09-30T04:37:53.427Z" }, + { url = "https://files.pythonhosted.org/packages/a9/5b/974423c2fd8e524c7a7f64318c1e02240ef954912fa2b4d70344107b9c68/charset_normalizer-3.5.2-cp315-cp315-win_arm64.whl", hash = "sha256:6be488a102b8cf28d0391d8c4ba7748938ae28b78ad901f8585520fca33ead1a", size = 200309, upload-time = "2026-09-30T04:37:55.015Z" }, + { url = "https://files.pythonhosted.org/packages/ee/f9/00ee0195db1013d8f7c416fd770fbeb560bb46eb2e36b054d05cb56f6cfa/charset_normalizer-3.5.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:915563965d418f986e7e145accc592eae9e1a1be3566ff98a05d7a9ec42a76e1", size = 395343, upload-time = "2026-09-30T04:37:56.743Z" }, + { url = "https://files.pythonhosted.org/packages/04/3a/c00b50e94c964cf934c7899cd47c97952fc11dad71cc5884b3c61795b09b/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65cd72beeeca9d3aaea1201e5923859f308f952f9c71de93f06063c79f0f7a3b", size = 250114, upload-time = "2026-09-30T04:37:58.607Z" }, + { url = "https://files.pythonhosted.org/packages/50/27/d102dc880bbcffd0479ab64dfc1fb96777a854355a55e2bda72a71efadcb/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b7fd005a73d9e657273b7a10dc71a9e03c8fb9ee6999798d6918ce095b81ac7f", size = 239997, upload-time = "2026-09-30T04:38:00.511Z" }, + { url = "https://files.pythonhosted.org/packages/a5/4a/bf7ef45794dd293fab5f98a9309817977fbb845b9998f171b8cc5d8437a3/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e54da4baf05720032d527874d40b65fa4d7e5c6c6a43d0c3adbeffcaf275a2b3", size = 272313, upload-time = "2026-09-30T04:38:02.509Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ee/008a2837737991474c5754bb3191010007663860979701990982a502cbaf/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:124fbf1a8ff966d87ae05bb8bd45a71f966055ed8bba320d0c7cf450bc5f4d0e", size = 269986, upload-time = "2026-09-30T04:38:04.435Z" }, + { url = "https://files.pythonhosted.org/packages/93/ad/bd74a283940dc910c5b14f8e4f80a248082bc9c0fcbe1f54530cb6d9cc5e/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28b4f0d66fb834ff90f28209ac7bce77868c45d8c93e26f906709d9b7c2e1af9", size = 260202, upload-time = "2026-09-30T04:38:06.549Z" }, + { url = "https://files.pythonhosted.org/packages/8a/7b/ed341c66f69f688723501fac752be3d63c7159ca0d0d4174fc611e5710bb/charset_normalizer-3.5.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:58ca3755ee7ff7f59b57789ec9833c9de9ea275405cdd240eda1f193112e398a", size = 259083, upload-time = "2026-09-30T04:38:08.311Z" }, + { url = "https://files.pythonhosted.org/packages/cc/9d/e41588b777965e5031a43128a1e96173ebb35ac75fc53ec3b517e7c21cd4/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:443eae2bf318abeaf6f15d785138f71fd6de770e99a92158b8b814265e079115", size = 253081, upload-time = "2026-09-30T04:38:10.402Z" }, + { url = "https://files.pythonhosted.org/packages/81/35/b761eb6d8c1eb218b9b42b9b4d5ac902afdc399fb6dac6f9a9aac7bda589/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:58f361dcbab699cf8f42db3f47c8e7fd1036f138c23a5d08de9fde5f425a730c", size = 248712, upload-time = "2026-09-30T04:38:12.317Z" }, + { url = "https://files.pythonhosted.org/packages/4d/2c/147169a041b747759f37405c0a97157e8e92de967968373101ff14915cba/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1b4cbc7c3491ccb4aa17fcd8165649d01cf39f76de1696da8631b5f71b85401d", size = 274176, upload-time = "2026-09-30T04:38:14.138Z" }, + { url = "https://files.pythonhosted.org/packages/f0/2d/0ff8db0d373ba8538db686db11cd7e8912031490b9e4f383b41912e8d594/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:ba0b1d2620edf869789c3879223f52bf2afc5d31b3cb47cc57b3a12c05e2aa9d", size = 259413, upload-time = "2026-09-30T04:38:15.841Z" }, + { url = "https://files.pythonhosted.org/packages/8a/8e/b4a085fb47c9d3a7e43576a4784fdd8fe23f907514a972de8086edaf7a48/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:5e2b6b57e9733d39f0c9fd3185efa6b8e29652c4cd8fe94180272cf6ed9a78c4", size = 269434, upload-time = "2026-09-30T04:38:17.626Z" }, + { url = "https://files.pythonhosted.org/packages/83/1c/d8d8d7322a7c3eecdf3237a4a419cf41d2eaad8e006ce7dfdd9d4c8fa2eb/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:51cf45226a9b588d0d2b4880c62d686934b63ab0bd79ca23ab0e9762eb27441b", size = 262716, upload-time = "2026-09-30T04:38:19.214Z" }, + { url = "https://files.pythonhosted.org/packages/a0/16/0e4c6ba9b44e97a2da150e52d331e8f9c968b21b358fbffa6c856cebcd89/charset_normalizer-3.5.2-cp315-cp315t-win32.whl", hash = "sha256:5fb29fb8cd1a46c27a1bf9613ad5ec2599310d46b4025d9556404a6b6a292800", size = 197159, upload-time = "2026-09-30T04:38:21.037Z" }, + { url = "https://files.pythonhosted.org/packages/be/33/e90bc2b1374f7f36ef106f56620de5a783907e19ca857efe2277e31cac3e/charset_normalizer-3.5.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a192e2c40070d92c3ccf777e3a5c4ff515573cd2bb7ed0c537fdadbbec5bbf21", size = 221322, upload-time = "2026-09-30T04:38:22.886Z" }, + { url = "https://files.pythonhosted.org/packages/66/89/dfa6dcb08c200b7830ab56439e8c1890f2971d51aafbb3937894a2e7fcfc/charset_normalizer-3.5.2-cp315-cp315t-win_arm64.whl", hash = "sha256:749e97e1b32313717a565abbe321bc2190bc8b35f1a67e4cdbc7c56c8d8ffe58", size = 209192, upload-time = "2026-09-30T04:38:24.648Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" }, + { url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" }, + { url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" }, + { url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" }, + { url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" }, + { url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" }, + { url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" }, + { url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" }, + { url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" }, + { url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" }, + { url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" }, + { url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" }, + { url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" }, +] [[package]] name = "colorama" @@ -17,39 +110,51 @@ version = "7.15.3" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/f4/45/78dbf9604ee5b3db24efbf26bed1cb58862fb40480cba821963c69348751/coverage-7.15.3.tar.gz", hash = "sha256:ae7ea5a4614acf399ef0483c4cb34f8f8f01df848d8fcbe7d3ce0865733f1c4d", size = 935592, upload-time = "2026-08-02T18:50:17.006Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/35/6f/8c2dc014357618b3226c90f731b8282766c3685786f422558991dc49fbf2/coverage-7.15.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:1e3bb08ad574bd9fb6a991f645728f70d333c1c1958dd5fcde65e24cb862813d", size = 222571, upload-time = "2026-08-02T18:49:11.242Z" }, - { url = "https://files.pythonhosted.org/packages/07/50/d867c7ceae9d56b7e74ee61ea834f1aa4f9a1e1c7f0ce39393ba573b1c12/coverage-7.15.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9e5860eaff02a0b7f1b73304bdf846596ee62ab3a78d25c68044ebf684cb1fef", size = 222902, upload-time = "2026-08-02T18:49:13.448Z" }, - { url = "https://files.pythonhosted.org/packages/62/77/4f6dfc490c5f2bcacb2d296d9aa4d1e128c43b48e94ad313fec7f49f09ad/coverage-7.15.3-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:60874e5bd67f0b1bdbe42ab42c7bafa66a6fb8de88721af6df3f7a02713960cd", size = 253947, upload-time = "2026-08-02T18:49:15.304Z" }, - { url = "https://files.pythonhosted.org/packages/16/8a/6777f192af264165103e2a3d3768dbadb9894a0a2359a16877141d9ae8f5/coverage-7.15.3-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f9147be876e9d83765e0b82176674dc248a6b9283e25e01e7462611b97e9b731", size = 256452, upload-time = "2026-08-02T18:49:17.801Z" }, - { url = "https://files.pythonhosted.org/packages/7d/7b/3d7ac46a0234bc684f41ee42be95e29b2b6525695adb04083609d5ac2149/coverage-7.15.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:61a01f8c3804760fcc5a3d31c4f3cab792d660d44e17bf7adeaf0ea51e07821e", size = 257798, upload-time = "2026-08-02T18:49:19.878Z" }, - { url = "https://files.pythonhosted.org/packages/ff/1e/c6ee59c29afcb5fdb35f936381340d1a06429a07c48f20e809646647acbe/coverage-7.15.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:95bf3e7f26f792e25eb185f85a5a659d48479265176dcfe22b6f334fd0081b5c", size = 260112, upload-time = "2026-08-02T18:49:21.858Z" }, - { url = "https://files.pythonhosted.org/packages/c1/e1/e8ea39a46e89e3a143312ee5f80336e992e3ae8fe44bf9c76b83fefeed42/coverage-7.15.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:44c41eff9e413fed8740eca75d5438ebeb9d3e45e7cd37c67329213e7a72c764", size = 253944, upload-time = "2026-08-02T18:49:23.926Z" }, - { url = "https://files.pythonhosted.org/packages/95/67/31ab5f6a37fd887d1386f81f0da9306851ad2264e9baaa9c7f606e0b3e17/coverage-7.15.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:54146bafb61f3ba9895b43af0dd17eba01561d586d44ce84ea221b0cbbee5a9e", size = 255805, upload-time = "2026-08-02T18:49:25.973Z" }, - { url = "https://files.pythonhosted.org/packages/fb/6a/ee505a80c8fd89620fb337c0596daecff87f33171fbb4ee3015fc3d7331f/coverage-7.15.3-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:af000dd1bb859ff8066fda4c79512ff938c798116540307226b373099c7b151f", size = 253769, upload-time = "2026-08-02T18:49:27.883Z" }, - { url = "https://files.pythonhosted.org/packages/b0/41/6ab0f81c9e89660230d8f3f581d4732e5ddb75a885b0a5dfc73d315dc94f/coverage-7.15.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:a1b82490577f3889950b5a04f18712aef0207243e0749d60fe28c3c73ebfd5fd", size = 258045, upload-time = "2026-08-02T18:49:30.201Z" }, - { url = "https://files.pythonhosted.org/packages/bc/62/c995e91cae28cf31d6defab3bfb553dda5ac83ac7381b0f2b121264c307a/coverage-7.15.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:c4fc90a60154c3e4b8a2dc206d6dbe852f1c235c249e0dc0cef909d032c9591a", size = 253587, upload-time = "2026-08-02T18:49:32.349Z" }, - { url = "https://files.pythonhosted.org/packages/84/df/f2049980f82d6890321f2065f9e66216eabbf4b2001815db958bc543f40a/coverage-7.15.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f25bb884814a892948b4c20394db3f2364dd452d9492736479e7a493e63b0eb6", size = 255243, upload-time = "2026-08-02T18:49:34.324Z" }, - { url = "https://files.pythonhosted.org/packages/1d/82/2c841b67a978c0eb9c3707630b68f93f9e7585d78bb906bc8823ec6b07a5/coverage-7.15.3-cp314-cp314-win32.whl", hash = "sha256:722dbf8e7828fbcfe0dc8586167dc0a5ce85ad6ea171dbb21ed3f8d6581d3cb8", size = 224759, upload-time = "2026-08-02T18:49:36.326Z" }, - { url = "https://files.pythonhosted.org/packages/b3/78/5c93ec43784fd3e404ca23cd0584ae24bc1732de4a3fc194b68c3be88db0/coverage-7.15.3-cp314-cp314-win_amd64.whl", hash = "sha256:64d0845f9c3ed47302bed265c15ab4dbb64aa4ec1490839b8e328f4e7fa914d2", size = 225246, upload-time = "2026-08-02T18:49:38.366Z" }, - { url = "https://files.pythonhosted.org/packages/9d/77/813a054371f3b018cc63c6bdb46a3c35d5e95d4e3ed4f1449d4196106db5/coverage-7.15.3-cp314-cp314-win_arm64.whl", hash = "sha256:69bc14684f8fbbee9f9dbaa4fe79719b0da9725fc37956785c06ec365acf6926", size = 224673, upload-time = "2026-08-02T18:49:40.552Z" }, - { url = "https://files.pythonhosted.org/packages/8f/63/8c9f36cc71178d26db930baa03a4494abcc516d8d41bf820d0d85ef1d80b/coverage-7.15.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:f92df943c24b96cb215ca26b4f6a2283e63c5db80f1635aceea7fff11311917b", size = 223298, upload-time = "2026-08-02T18:49:42.634Z" }, - { url = "https://files.pythonhosted.org/packages/54/66/211f24d058ce9f56ebf1420d55b7574fdae924f6da3836f83c8bd4793e38/coverage-7.15.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:66591c46bdd2971d3ae2bc503a5f0459c2edcaf6b7e045b292000cc95bc6cb95", size = 223568, upload-time = "2026-08-02T18:49:44.706Z" }, - { url = "https://files.pythonhosted.org/packages/dd/bb/9c2ad5574a0d6420a96c6cade4f8a683931b9e79fe609f8924d7b6964616/coverage-7.15.3-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:caa64458b81b18bfc67cdf1f6dc02b23e3edc672f2f8e11771fad75865415a43", size = 264932, upload-time = "2026-08-02T18:49:47.153Z" }, - { url = "https://files.pythonhosted.org/packages/ba/91/938c39e77bdd5a0a440412f975609ce3702dabbda6ac715719d93ca45a7b/coverage-7.15.3-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:447f5421ccf5475956cf516d4ca1d575f487947b6f4e11f9d80c6aefe24b3dc8", size = 267052, upload-time = "2026-08-02T18:49:49.324Z" }, - { url = "https://files.pythonhosted.org/packages/b0/a3/7b431a98af35d9cc6394e54cde9435b33b8591672fbece6a4931267d7a8e/coverage-7.15.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7a0c77ef8cd483a4987a5d12d1d9d5f7ee598dfdc6c0844417d847e5768dc779", size = 269473, upload-time = "2026-08-02T18:49:51.599Z" }, - { url = "https://files.pythonhosted.org/packages/32/58/dbc9951dce46be47a732823a1c571f62bcabdd54a68d8c281489a1a55cfb/coverage-7.15.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0b273f4ff657446a06c2d85bf80e134fa869a92852ba5f87854a70e1fb44da77", size = 270591, upload-time = "2026-08-02T18:49:53.865Z" }, - { url = "https://files.pythonhosted.org/packages/71/bd/1d610772c7c0889bfe477a59c46ee66ea53e271f3f06951e9d55b317f7c6/coverage-7.15.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:daea8c4fafa22488600405be2c2be525a9406fba3fc0a83acc726db3e14e2005", size = 264007, upload-time = "2026-08-02T18:49:55.875Z" }, - { url = "https://files.pythonhosted.org/packages/69/97/852eb3dcdba156b1a9078503f098499916bf889f964b61ad4a08223ac169/coverage-7.15.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:93ff57c530f3fa7aa69f92fb9b8892b8aa82712aa970842f4abf28657f42fb57", size = 266926, upload-time = "2026-08-02T18:49:57.944Z" }, - { url = "https://files.pythonhosted.org/packages/52/f8/b72cd238757fba2b587fc7dee047efe6e10b0c18343509faaaf502dd4680/coverage-7.15.3-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:4df21bef8b800eebda9018f53d49c9ace3aeb0090c850139b27923aafcb83e91", size = 264529, upload-time = "2026-08-02T18:50:00.035Z" }, - { url = "https://files.pythonhosted.org/packages/b8/0a/6c52ec4b7fb007cb6433d1fcfda4080cb15d75ad37ef9c31025f3427293e/coverage-7.15.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:db567b02685f26034adcbd85055f80d12cdf02111b8ed00886093d98b2874ce2", size = 268263, upload-time = "2026-08-02T18:50:02.161Z" }, - { url = "https://files.pythonhosted.org/packages/c0/4e/f1f9aa3efd109a04353563a43fb5155340c1fdcdeaa6296ebed3b6f510ea/coverage-7.15.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:5318dd51b8600b947e058cf5a4fe54d183d9d13c49b97b64ca7be05a34df9bef", size = 263377, upload-time = "2026-08-02T18:50:04.243Z" }, - { url = "https://files.pythonhosted.org/packages/dd/fb/6b268a0b2728ef1c379ad656b899274477a5f6bed1bf6765b4b387fb0601/coverage-7.15.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c995bfa383c54704839b6c4c2627a1c00895597ada0e5e8190c81d8bd620555c", size = 265688, upload-time = "2026-08-02T18:50:06.428Z" }, - { url = "https://files.pythonhosted.org/packages/29/54/1a3ea96e5d5e7cd41dc432597bfc60692910e635d05e1cc25a8ccc243581/coverage-7.15.3-cp314-cp314t-win32.whl", hash = "sha256:6433fafb8da0e1d02eb53411e0ecdadb6b88f0224fdc23317e703c0e88937d42", size = 225066, upload-time = "2026-08-02T18:50:08.533Z" }, - { url = "https://files.pythonhosted.org/packages/31/9d/a7b0d9afd18ed5274dd00651a78e7810a931c70d94b79996f150bec1a30f/coverage-7.15.3-cp314-cp314t-win_amd64.whl", hash = "sha256:fe578952b1b29fe8c777f43f241d49efac4b56724a3434f5d22ebe3c208df429", size = 225897, upload-time = "2026-08-02T18:50:10.572Z" }, - { url = "https://files.pythonhosted.org/packages/ca/11/34c5ae40b945e69aa72b87dc268135b7049905f3824af573b7073acbb946/coverage-7.15.3-cp314-cp314t-win_arm64.whl", hash = "sha256:d2e1acb7aee29dfa8f3e48c23f36670898baca1209d9bdd3985a50c7f982165e", size = 225212, upload-time = "2026-08-02T18:50:12.63Z" }, { url = "https://files.pythonhosted.org/packages/37/e7/7069b3d6c018917f49ba2e1c5fb910e498c7fefa3a1b78cb1b79e61ff45d/coverage-7.15.3-py3-none-any.whl", hash = "sha256:da78fa6fc7dafe4212839173133ee85afcf42c5cd5f3e47fa7c1c210453b445e", size = 214297, upload-time = "2026-08-02T18:50:14.709Z" }, ] +[[package]] +name = "cyclonedx-python-lib" +version = "11.12.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "license-expression" }, + { name = "packageurl-python" }, + { name = "py-serializable" }, + { name = "sortedcontainers" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/17/40/6509e6cfd7f2f3255501690f46375fdd224949e21fd1e96f4f4c8a9041b1/cyclonedx_python_lib-11.12.0.tar.gz", hash = "sha256:16767c4039de90c04e9f03348f8f0ed4b8ff842eaa7eefcad3a95685f970dacf", size = 1445378, upload-time = "2026-08-13T07:52:18.675Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cf/f0/b2cb999244f2f4194df63ecff6939228178fa63a33be809c412684ca8db7/cyclonedx_python_lib-11.12.0-py3-none-any.whl", hash = "sha256:0e807521a921a5c3cb8ce1153f8a61d29eedfe76a46aac2796b7c6b573391a54", size = 529453, upload-time = "2026-08-13T07:52:16.836Z" }, +] + +[[package]] +name = "defusedxml" +version = "0.7.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0f/d5/c66da9b79e5bdb124974bfe172b4daf3c984ebd9c2a06e2b8a4dc7331c72/defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69", size = 75520, upload-time = "2021-03-08T10:59:26.269Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61", size = 25604, upload-time = "2021-03-08T10:59:24.45Z" }, +] + +[[package]] +name = "filelock" +version = "4.2.12" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/52/aa/8ccff8da9a27e089727fcffd3c5b61708383217e47eb1e1b8af37b1dd166/filelock-4.2.12.tar.gz", hash = "sha256:7e7da24d3ac39268b0f156e56870001de44886318f092f9d851e692f7114d6dd", size = 680837, upload-time = "2026-11-18T01:20:03.951Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/c9/eb6b6528c7edb958d4c24ac47a8b94113d9de36e4cfc6eecd599b1a4f349/filelock-4.2.12-py3-none-any.whl", hash = "sha256:21decfec02f116ed4c954433cdb31f28c3b346b784543177b6d7059da2702ee9", size = 222442, upload-time = "2026-11-18T01:20:02.439Z" }, +] + +[[package]] +name = "idna" +version = "3.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, +] + [[package]] name = "iniconfig" version = "2.3.0" @@ -59,6 +164,79 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, ] +[[package]] +name = "license-expression" +version = "30.4.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "boolean-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/40/71/d89bb0e71b1415453980fd32315f2a037aad9f7f70f695c7cec7035feb13/license_expression-30.4.4.tar.gz", hash = "sha256:73448f0aacd8d0808895bdc4b2c8e01a8d67646e4188f887375398c761f340fd", size = 186402, upload-time = "2025-07-22T11:13:32.17Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/af/40/791891d4c0c4dab4c5e187c17261cedc26285fd41541577f900470a45a4d/license_expression-30.4.4-py3-none-any.whl", hash = "sha256:421788fdcadb41f049d2dc934ce666626265aeccefddd25e162a26f23bcbf8a4", size = 120615, upload-time = "2025-07-22T11:13:31.217Z" }, +] + +[[package]] +name = "markdown-it-py" +version = "4.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/16/fc/cee2c45553c9a9bf77d8b0c391560c556d7ed756b1f0bb35eb5d48db09ea/markdown_it_py-4.3.0.tar.gz", hash = "sha256:91a58fa5b72c71a40cf7177250fd767480d7a2bb3ac426ccfb76fb90305fdaaa", size = 242701, upload-time = "2026-11-10T16:18:30.467Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c9/31/5f0ac2f1a1c67423c995c731a11cd4ad05d081a2be969d74f868bdb9cc70/markdown_it_py-4.3.0-py3-none-any.whl", hash = "sha256:7aa1511a46c39138de78d9eba92ce47e63124d8003fc98b3a351909e04239efa", size = 96951, upload-time = "2026-11-10T16:18:28.975Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "msgpack" +version = "1.2.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cc/52/1ec7ead2c7528bf3d1db73e886fa4df10f9e6f0eb7854a448b7090cfcef7/msgpack-1.2.4.tar.gz", hash = "sha256:475c44e12f2a5de766a8448783f149c9b33f3f49b88953c6cd739a77d93c732c", size = 197764, upload-time = "2026-10-26T17:55:48.593Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d0/d8/0465d475c1a7063af1a1fb4f8c69e0dd661c4dd172055c9757a343a07d5d/msgpack-1.2.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:765584b93ed6f0b561f0c56e9735f24945c0682f857c9b3ee3b4caad9c32f66a", size = 92449, upload-time = "2026-10-26T17:55:13.665Z" }, + { url = "https://files.pythonhosted.org/packages/b2/d0/5220a8a53579dda39f3526394ba5b7eafc28736085f2626deda7fcd22cd1/msgpack-1.2.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:0221748c30ace75fde0dec8c470abe65fb5374cd4f37adb9db6aca7a3c362c0a", size = 91209, upload-time = "2026-10-26T17:55:14.913Z" }, + { url = "https://files.pythonhosted.org/packages/b2/98/f151742eba413503074a10d8f636bf03dd4f3f7cba29689767a35d19bd1c/msgpack-1.2.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c5917972ce1bf5f85f761031e00dab6fe0ad9f880cb3d2d43ed74b330c850400", size = 455713, upload-time = "2026-10-26T17:55:16.406Z" }, + { url = "https://files.pythonhosted.org/packages/b0/54/890510a2c9841aff63258e085d15d4e140c7eef559d4da81ef2d2d867436/msgpack-1.2.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e7ae8cf6012372cecb43016132d1b87ccc2ebb8ae5ab5078687399e82423386a", size = 466177, upload-time = "2026-10-26T17:55:18.351Z" }, + { url = "https://files.pythonhosted.org/packages/3d/41/a6f20d7c2c380fb072b95ffc5b865a1d62eaf49d77fbee44466c45a1a8de/msgpack-1.2.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e78c66cf97ac5675037f705ca433ad98ac9177f9523e7fdbb34e486ae29044c8", size = 424398, upload-time = "2026-10-26T17:55:19.979Z" }, + { url = "https://files.pythonhosted.org/packages/89/86/fa9559961f2b0d498e6cefa226298ddee2b896cb223449c211702bc34071/msgpack-1.2.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:59887281c3c163a7afff7dffaaad2f78cd2b513b7e1a7843f1ee8e7cd6a94231", size = 445686, upload-time = "2026-10-26T17:55:21.775Z" }, + { url = "https://files.pythonhosted.org/packages/39/23/5a9d94036cdd77d4310bbb7cfaf3ccd1f087c4a5d5a4befec4361c5fc0dc/msgpack-1.2.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:9f46e70c8d22e96856967ab9d80c51dcf5bc63133e4da2d66fab64c0d4119b82", size = 422096, upload-time = "2026-10-26T17:55:24Z" }, + { url = "https://files.pythonhosted.org/packages/6e/4b/86a5384112509a94ff6e20028aba6845138743effb7c6617e959ad1256ab/msgpack-1.2.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:0a1fd6c31952155b7cd01061288c70303e6554ae855244dfb38a897fd94f8749", size = 463407, upload-time = "2026-10-26T17:55:26.146Z" }, + { url = "https://files.pythonhosted.org/packages/f4/cf/14db289e0ad531e22ce0f03284865f81d14fbc80bf3f79d3b1714bcf76cf/msgpack-1.2.4-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:b1f08ec826417e3c8dc3edadb50f38debba033af6cb849229f0eac72f80f2342", size = 53743, upload-time = "2026-10-26T17:55:27.497Z" }, + { url = "https://files.pythonhosted.org/packages/46/72/a76fc90b51503c0bdacbc7fc823aa6fa62d40596ac47f9ea8492d6f95a34/msgpack-1.2.4-cp315-cp315-win32.whl", hash = "sha256:e8ba23c838739fe929e868095171e71f2f38d6ce0fcf5840b576fb82648e58e6", size = 70780, upload-time = "2026-10-26T17:55:28.705Z" }, + { url = "https://files.pythonhosted.org/packages/58/a7/fa9d4a1b5dfead83ea6e03b4007041a5da988c25eb941d42612e0211d3c0/msgpack-1.2.4-cp315-cp315-win_amd64.whl", hash = "sha256:67310606cf2528a6dc3ece1298dcd5cc6c57add148b16d22c5111138aa84820c", size = 78288, upload-time = "2026-10-26T17:55:29.928Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f3/8163d7938a8fe003952fe2719ddb31da71998559bbe290c55ffe622b886b/msgpack-1.2.4-cp315-cp315-win_arm64.whl", hash = "sha256:ce76e7a7c11459157887a8dadf07c107ff74eca98cf914f0de6ee7ab4b47104d", size = 74235, upload-time = "2026-10-26T17:55:31.112Z" }, + { url = "https://files.pythonhosted.org/packages/b4/fa/37c3219b250d81bee788c0dd78ae2fc673db2da1c21ae51f7982d85698f7/msgpack-1.2.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:fb9ddbf23b8c6e89752af399fcf4daed60055e239cda44c6acfaa76d19331e8c", size = 93793, upload-time = "2026-10-26T17:55:32.304Z" }, + { url = "https://files.pythonhosted.org/packages/83/9f/b8afcd20d32cf4be1fa3c327e997656d6d446e667452b0fcc66b91710e82/msgpack-1.2.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:e283cf563166c21762131b88e3870ee2ec57757b08a8736929757b5a67541061", size = 94746, upload-time = "2026-10-26T17:55:33.624Z" }, + { url = "https://files.pythonhosted.org/packages/e6/4f/03348d381fcbbc2685356833408cc7e9d2af0fe0775926935a2889650f64/msgpack-1.2.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40e91bf8325f492e8eb3c3aa6de06b20593c225336bb52b585c913d7c1da025b", size = 468480, upload-time = "2026-10-26T17:55:34.991Z" }, + { url = "https://files.pythonhosted.org/packages/16/46/e54af8d9a51fb562e068e69a0d75a51e9c2fedec49f911f888515f5477ab/msgpack-1.2.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cfa86432bf329d6b976f5a00ad4c9064fd51736e4967a52526750236345cc2da", size = 470064, upload-time = "2026-10-26T17:55:36.615Z" }, + { url = "https://files.pythonhosted.org/packages/74/f5/8f9a6b3af1d803e832b11017c8dad44d761fefdb91dba04ee58cb51838da/msgpack-1.2.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:42e0a7dc26df739149478585d4264338b4d330f24b3e3b57d5aa89e48866e8ab", size = 421267, upload-time = "2026-10-26T17:55:38.076Z" }, + { url = "https://files.pythonhosted.org/packages/4b/8f/7302b0d18eadbbfef9be1dbbdc49905f7f3b847200c3e47068d093976be4/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8e680367090a58c966052d61418cc943111863538fd82471d61fca5271d911e1", size = 451244, upload-time = "2026-10-26T17:55:39.639Z" }, + { url = "https://files.pythonhosted.org/packages/36/c6/05717fb56b510b5e974446f2cb8e9b26fa4347fafc0c5927745b176939b3/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:a6c9926f8871b261622fe6b599db72c69be5bca8fdc0976886f9a531a301dee9", size = 420273, upload-time = "2026-10-26T17:55:41.488Z" }, + { url = "https://files.pythonhosted.org/packages/05/d9/a19077d664c37319097e16ba8de14e6b3a2edcc8ee78a2069c0808e38960/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c50bac325dbf1a9c80e10da6dbd1100d7082f6b12e153084501e18e86cd3a037", size = 460421, upload-time = "2026-10-26T17:55:43.223Z" }, + { url = "https://files.pythonhosted.org/packages/a2/bd/0e2033a7435f8d2311be37363fedc88bdfa9fd95c364ee8ac3216eb63e36/msgpack-1.2.4-cp315-cp315t-win32.whl", hash = "sha256:34051de19ae532ba47fcab5b0abd08c25c7a64ff763ad819f18764d45f3c2c81", size = 76256, upload-time = "2026-10-26T17:55:44.588Z" }, + { url = "https://files.pythonhosted.org/packages/b3/3f/aa7265f25dafb6af7567a1a7d0a95c5566803db2226c5e084dc5850cfd96/msgpack-1.2.4-cp315-cp315t-win_amd64.whl", hash = "sha256:6ad2f0808099d4281208ff2c756efa958a55a7c8eb21fe1c7052b95c584f02f1", size = 83939, upload-time = "2026-10-26T17:55:45.773Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f2/c53904c4bc3da828fb75678bf489ece808a277affa73f8a7a91dfb7c5851/msgpack-1.2.4-cp315-cp315t-win_arm64.whl", hash = "sha256:e38d854f1c60e94f46d998765201126338bde3fe1b029be0d849094bcbef72c2", size = 77995, upload-time = "2026-10-26T17:55:47.016Z" }, +] + +[[package]] +name = "packageurl-python" +version = "0.17.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/d6/3b5a4e3cfaef7a53869a26ceb034d1ff5e5c27c814ce77260a96d50ab7bb/packageurl_python-0.17.6.tar.gz", hash = "sha256:1252ce3a102372ca6f86eb968e16f9014c4ba511c5c37d95a7f023e2ca6e5c25", size = 50618, upload-time = "2025-11-24T15:20:17.998Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b1/2f/c7277b7615a93f51b5fbc1eacfc1b75e8103370e786fd8ce2abf6e5c04ab/packageurl_python-0.17.6-py3-none-any.whl", hash = "sha256:31a85c2717bc41dd818f3c62908685ff9eebcb68588213745b14a6ee9e7df7c9", size = 36776, upload-time = "2025-11-24T15:20:16.962Z" }, +] + [[package]] name = "packaging" version = "26.2" @@ -68,6 +246,70 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/df/b2/87e62e8c3e2f4b32e5fe99e0b86d576da1312593b39f47d8ceef365e95ed/packaging-26.2-py3-none-any.whl", hash = "sha256:5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e", size = 100195, upload-time = "2026-04-24T20:15:22.081Z" }, ] +[[package]] +name = "pip" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/53/c7/f8d9e2e0e7c1ed8a22a10eeb3b5bf7860bc07d8446c7a978a882c5c8214b/pip-26.3.tar.gz", hash = "sha256:6c36ae7da8695be67e3cd9f7d87919667ced53f57ce2ede75d89b5912ed2bc4c", size = 1934348, upload-time = "2026-11-02T20:34:27.738Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/07/25/ee8c38ae72d66b844ce8eb9711ba905dba21ca1a8a0c960057c41cd23337/pip-26.3-py3-none-any.whl", hash = "sha256:f3b60b20ffaadd4415ed7957212a38ac63fa4c5fa375bd0f4a797777940fad13", size = 1950951, upload-time = "2026-11-02T20:34:25.728Z" }, +] + +[[package]] +name = "pip-api" +version = "0.0.35" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pip" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/fc/08/47dfc28aa16ef0dbc38dd7c6e4fe24d124c3ed3a722a4a3e5021584a588c/pip_api-0.0.35.tar.gz", hash = "sha256:14dea05d7b3b68f4c7582213e3ae8932bbba8e1f754bf06b95263d5fa6ab4363", size = 123884, upload-time = "2026-09-08T19:35:12.876Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1d/2e/d424c5b5877be862dd9a2c8b7e9ddb13382bb25e132e6dd50cc09c0a7dde/pip_api-0.0.35-py3-none-any.whl", hash = "sha256:66990d0da25378555cbb538db79384bab92d4617c6350dfd7a2126ba2a3a9894", size = 123943, upload-time = "2026-09-08T19:35:11.537Z" }, +] + +[[package]] +name = "pip-audit" +version = "2.10.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cachecontrol", extra = ["filecache"] }, + { name = "cyclonedx-python-lib" }, + { name = "packaging" }, + { name = "pip-api" }, + { name = "pip-requirements-parser" }, + { name = "platformdirs" }, + { name = "requests" }, + { name = "rich" }, + { name = "tomli" }, + { name = "tomli-w" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/a4/f21d5f0a0edabcbce31560b73c7c5a6f72ae87af4236fd1069c8f59a353d/pip_audit-2.10.1.tar.gz", hash = "sha256:1eb4565d19ebe5d48996f4b770b4d2b32887e12cb12cfa637f1a064011b55ffc", size = 54275, upload-time = "2026-06-10T22:17:01.744Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a3/a7/b0c504148114047bd1bc9d97447453c6850ca176bb2f3c0038835994e8b7/pip_audit-2.10.1-py3-none-any.whl", hash = "sha256:99ef3f600a317c1945f1e89e227ef26e1c2d618429b8bd3fa6f4f7c440c4611a", size = 62023, upload-time = "2026-06-10T22:17:00.309Z" }, +] + +[[package]] +name = "pip-requirements-parser" +version = "32.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "packaging" }, + { name = "pyparsing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5e/2a/63b574101850e7f7b306ddbdb02cb294380d37948140eecd468fae392b54/pip-requirements-parser-32.0.1.tar.gz", hash = "sha256:b4fa3a7a0be38243123cf9d1f3518da10c51bdb165a2b2985566247f9155a7d3", size = 209359, upload-time = "2022-12-21T15:25:22.732Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/d0/d04f1d1e064ac901439699ee097f58688caadea42498ec9c4b4ad2ef84ab/pip_requirements_parser-32.0.1-py3-none-any.whl", hash = "sha256:4659bc2a667783e7a15d190f6fccf8b2486685b6dba4c19c3876314769c57526", size = 35648, upload-time = "2022-12-21T15:25:21.046Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.14.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a6/2c/ec57eede0db493e61443c76ac7b4d24e94a24050afb3d598bf3678487f75/platformdirs-4.14.7.tar.gz", hash = "sha256:5472257c1cf97a14658af52997011c7e59e4aebf3a24950b973c11b579e1b074", size = 75132, upload-time = "2026-11-17T20:03:32.656Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f8/46/3737af9f971f3934794103256d7f1ed6200a62be0c7b7ff09ac4cf6b3422/platformdirs-4.14.7-py3-none-any.whl", hash = "sha256:391513b74707c42335fff3ea17eaac657a7ee9ffcadd809634d34ea594d0122c", size = 89658, upload-time = "2026-11-17T20:03:31.16Z" }, +] + [[package]] name = "pluggy" version = "1.6.0" @@ -77,6 +319,35 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, ] +[[package]] +name = "prek" +version = "0.5.11" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/19/0d/8f661ef91334d8afe883a51f586628bb0a18c5077b39dc7c2754bc5335da/prek-0.5.11.tar.gz", hash = "sha256:99c8363ca07b881dc49cf71eb3c362670c95d0d554fc375ceee0245548081829", size = 619436, upload-time = "2026-11-16T06:42:02.693Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/26/33/b56b4898fe9a81e250d31e39cce0ae5705ee07609aa5f013cd22cfd781bc/prek-0.5.11-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:95da482d8f1d3323beea219e95b6bbe31a27d3b14943148d3c4eac94e9f7d7ee", size = 5916762, upload-time = "2026-11-16T06:41:46.081Z" }, + { url = "https://files.pythonhosted.org/packages/ad/24/ef97844954e5a89c79de675d22fad0aa549db21c32226dde4a12eef5da6b/prek-0.5.11-py3-none-macosx_11_0_arm64.whl", hash = "sha256:2e530bd4c8975c6ac6eae20c70fa54c50714d56279040cc3c2b0bce279c0c84e", size = 5565126, upload-time = "2026-11-16T06:41:48.031Z" }, + { url = "https://files.pythonhosted.org/packages/15/53/57e487d315e1fe7b1b11b1df01233f3c9cda14502f61ba76c34991d80358/prek-0.5.11-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:1cce91fe6524e1b2dfc4e5f40353caa0b62e2db9ae4b2bab314958027663a712", size = 5699656, upload-time = "2026-11-16T06:41:49.768Z" }, + { url = "https://files.pythonhosted.org/packages/19/25/96988fbaf7bb960028fc4161ed734d0950bfda720c37206b3c6d07e044c4/prek-0.5.11-py3-none-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:c343b4e40e5aa5851fd0526c49ad8f52c4c688cde848fa95f57db91c15c67215", size = 6130515, upload-time = "2026-11-16T06:41:51.727Z" }, + { url = "https://files.pythonhosted.org/packages/02/f0/35e94ecd6eab935705e68cfb33af06d27db4693a49214171a9adfcecb756/prek-0.5.11-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ca78936abfb2793ba9d6b9b4ac0e4eb13189bcfabd16d94c29aa573963bac87f", size = 5991609, upload-time = "2026-11-16T06:41:53.625Z" }, + { url = "https://files.pythonhosted.org/packages/f9/44/a63b178a08d5bca1f4cfdef7305344195015fb6d5ff19be514b3a8a24f52/prek-0.5.11-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:c90b274d8eb35f28d6b70907b9d757072e20dccde1bdb7d19eeb85aac9c37ee3", size = 5682010, upload-time = "2026-11-16T06:41:55.592Z" }, + { url = "https://files.pythonhosted.org/packages/f2/d6/0c8f2770bf03408e6c35ebea6e858d2f33d0e4037562a8f6092f73fd4223/prek-0.5.11-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:e5cbd96ed40c04a7909d98a9b8cd1d38e8e63d52e97932f09e1733b9f51bd6ac", size = 6146351, upload-time = "2026-11-16T06:41:57.479Z" }, + { url = "https://files.pythonhosted.org/packages/06/a5/88d4df7a4cd2d53626031beb3be69017b688a9e13828d0e8c6e1c1c3aae2/prek-0.5.11-py3-none-win_amd64.whl", hash = "sha256:96503d57ea00e3f2b10942b340031396c7956b602ebb3719d090a401653800da", size = 5570867, upload-time = "2026-11-16T06:41:59.119Z" }, + { url = "https://files.pythonhosted.org/packages/ae/d1/e502bce18ae966dbf4c8a11ceb4157bde87da0bd0ee1d47bcecc0fe6cca0/prek-0.5.11-py3-none-win_arm64.whl", hash = "sha256:e74faafdaf9512580c5d0fefa2891d5a092f92a4ff4e996cae6869922d830e32", size = 5515058, upload-time = "2026-11-16T06:42:01.215Z" }, +] + +[[package]] +name = "py-serializable" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "defusedxml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/48/8c/cad9596066de835b304be48b0eefa30dae1834afae6e670805831cc05ea2/py_serializable-2.2.0.tar.gz", hash = "sha256:8e4fa02e8de819c0488ccdb69c2d3109274adcf224c02357fd8729cb12727aab", size = 52608, upload-time = "2026-11-06T13:43:39.943Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/56/94f6a9ac81193713e6be0d41c62d6b916b53c814c05d8b3a0d90976db0d6/py_serializable-2.2.0-py3-none-any.whl", hash = "sha256:2cce775abc5aac12115f9ff572a145c7276d04a770090334bd4e51ed9c782415", size = 23101, upload-time = "2026-11-06T13:43:38.593Z" }, +] + [[package]] name = "pygments" version = "2.20.0" @@ -86,6 +357,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" }, ] +[[package]] +name = "pyparsing" +version = "3.3.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/11/b213bebff182584360cb8d17c72c1677fec5c5c228de439e63bcf8ab1c8f/pyparsing-3.3.3.tar.gz", hash = "sha256:928ae7e20211f3b6f3915a72f06a0cfd29ab9d24279dd6346b6b1a7146397d36", size = 1050487, upload-time = "2026-09-20T20:59:05.609Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/38/bb/d215ee7c73b61497b28a5503f9f53523f294fcc936762b7caf90e0c1c2b5/pyparsing-3.3.3-py3-none-any.whl", hash = "sha256:ece8c00a69cf01b45d0b1dedabb469c90d8caf996d4fda40f147627a122849a4", size = 126420, upload-time = "2026-09-20T20:59:04.025Z" }, +] + [[package]] name = "pytest" version = "9.1.1" @@ -123,41 +403,154 @@ source = { virtual = "." } [package.dev-dependencies] dev = [ + { name = "pip-audit" }, + { name = "prek" }, { name = "pytest" }, { name = "pytest-cov" }, { name = "ruff" }, + { name = "ty" }, ] [package.metadata] [package.metadata.requires-dev] dev = [ + { name = "pip-audit", specifier = ">=2.10.1" }, + { name = "prek", specifier = ">=0.5.10" }, { name = "pytest" }, - { name = "pytest-cov", specifier = ">=7.1.0" }, - { name = "ruff", specifier = ">=0.16.0" }, + { name = "pytest-cov" }, + { name = "ruff", specifier = ">=0.17.3" }, + { name = "ty", specifier = ">=0.0.96" }, +] + +[[package]] +name = "requests" +version = "2.34.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", hash = "sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", size = 142856, upload-time = "2026-05-14T19:25:27.735Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" }, +] + +[[package]] +name = "rich" +version = "15.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz", hash = "sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36", size = 230680, upload-time = "2026-04-12T08:24:00.75Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" }, ] [[package]] name = "ruff" -version = "0.16.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/4d/94/1e5e4967626faf12fa56999cd6222dff6992ceb086ad7945756baf70c7a7/ruff-0.16.0.tar.gz", hash = "sha256:e460aafd5495ec89efaa6ced2e4a9a581116451e1c88b9d37ef497e0f8e93982", size = 4790557, upload-time = "2026-07-23T19:11:30.981Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/4b/81/1c8818fee7ce1a04cd7d1b3172e0a8f8e4f1dc4feb7fc390e16daa8af323/ruff-0.16.0-py3-none-linux_armv6l.whl", hash = "sha256:e5115729eb08c585e5121978ba5d5b60caeae394ce21b9fb5e6cd33a1c6c9b1e", size = 10754633, upload-time = "2026-07-23T19:10:46.415Z" }, - { url = "https://files.pythonhosted.org/packages/23/df/beaf59c09d68db84304d555f188b276a77132a5d5b0b67a5c762aa143628/ruff-0.16.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:3c954b1d580bfa035b41654f7858cc7e71d5fc3ac5b723dd62bd9133830ed522", size = 10969164, upload-time = "2026-07-23T19:10:50.271Z" }, - { url = "https://files.pythonhosted.org/packages/42/ce/741cd197496a1abbf51352710fd15ed995d2a2be87189c1da26a450d6e83/ruff-0.16.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:e01c21d10eb1b29f47b7454e1f4056db9a3f0260c646aa88457c610291db9f81", size = 10488846, upload-time = "2026-07-23T19:10:52.639Z" }, - { url = "https://files.pythonhosted.org/packages/52/2a/a2db8e88cade358f5cdcb05674a917751074109315d014eb6352d9a893f7/ruff-0.16.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6e364e5ed22ed8dc05082fd78e35308618260907ac2d3c1d637b2e682415b6c9", size = 10889729, upload-time = "2026-07-23T19:10:54.89Z" }, - { url = "https://files.pythonhosted.org/packages/42/65/62a771694ebd63029dc953e27dbad40e1588bd4860ff9fe881018fddaa49/ruff-0.16.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d327b8fc113a1d4421a04f3839d3752057c8dd1ee320223a6f3f52d04ada462a", size = 10568275, upload-time = "2026-07-23T19:10:56.993Z" }, - { url = "https://files.pythonhosted.org/packages/3f/e2/ced249fe8af5f086c5c58cc21cc3356d50f32f7401c5df87050c999620a7/ruff-0.16.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a9b50c55e263103586b3dcf5f73d479eb8cb5fdb6098fec59a62891dab653717", size = 11385112, upload-time = "2026-07-23T19:10:59.615Z" }, - { url = "https://files.pythonhosted.org/packages/87/0b/05154977a8fd69eeb6c103271f55403bfd8711f5c0f8ed07489d95a504e7/ruff-0.16.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0ff4a79ce3ec0172f3241943835de1c4cb4e2dcd07f0f8c2d02603dbbbee4b17", size = 12207008, upload-time = "2026-07-23T19:11:02.154Z" }, - { url = "https://files.pythonhosted.org/packages/fb/29/98225831a3a1eab0e02f4acc6ca6559a98611dcc68b6965ff4b7234627c1/ruff-0.16.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e95c448fca1fb2a18372a9440926c5a6ee789639bb975c72e7ae6d0b04218ab4", size = 11650842, upload-time = "2026-07-23T19:11:04.557Z" }, - { url = "https://files.pythonhosted.org/packages/91/66/6bd3cf90500653d55dc0ffc8507aa8300bd49d0214b2e8cb4d3fef2943ba/ruff-0.16.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f11a8d11010301d0a398a2fdef67691feca7294da6aef55e2150e8fa2cd520b", size = 11400718, upload-time = "2026-07-23T19:11:09.233Z" }, - { url = "https://files.pythonhosted.org/packages/8e/a2/a54eb4eae05d66364050a5d3b8a9c5ef88196531b3cbe7109d873f87f819/ruff-0.16.0-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:48044c678e9cb8698246c99b14aaccfa6601dea7379eb48a6f8f73f7a6d86cd0", size = 11426177, upload-time = "2026-07-23T19:11:11.994Z" }, - { url = "https://files.pythonhosted.org/packages/1a/be/16e3eea4b2a478a496919f5e36f17c4559e54620bd3bbac5d6affa068006/ruff-0.16.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:7aa0959bad8eb8bef50340154fc9b58678dae31fa4293afa38b44b6e552c0213", size = 10856126, upload-time = "2026-07-23T19:11:14.221Z" }, - { url = "https://files.pythonhosted.org/packages/a2/84/252eb8b868a16eec7257c14f504f77537e734b2d69c762e639e588e304a3/ruff-0.16.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:28ea2b7df8ebf7f9da6b7d47b230ab48f387c0a29be3b474c4d0740e197bb9af", size = 10571208, upload-time = "2026-07-23T19:11:16.378Z" }, - { url = "https://files.pythonhosted.org/packages/21/09/817a482f542f7570cbb4554b26e896610c7114f539b1d9e2d2145bf6bef6/ruff-0.16.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:33a3dfac8c35f81498dea9181bccc2f4c4bc8f1521a1dd9406e77643e0f0fb09", size = 11063329, upload-time = "2026-07-23T19:11:19.173Z" }, - { url = "https://files.pythonhosted.org/packages/2e/23/9403c180ca1cb9b1f7335f5c3e5305c09d49ea5b345196682a36028bde4a/ruff-0.16.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:a5237a0bda500d30d81b8e07a6973a5cbc772864cbf746ae2f4e8a2e01c9f4ed", size = 11489751, upload-time = "2026-07-23T19:11:21.74Z" }, - { url = "https://files.pythonhosted.org/packages/b2/1d/1b2ef7bcde851c78d7f17f1cca13fd6dc695fc4b3d6197941e72cae5b132/ruff-0.16.0-py3-none-win32.whl", hash = "sha256:7fab76fa065c873f41ff744347c6e77bcc3dfec4bcc754dc26b63d23c0f7f5fb", size = 10785885, upload-time = "2026-07-23T19:11:23.947Z" }, - { url = "https://files.pythonhosted.org/packages/b2/a3/d5e4ef7a56be3f928ffb90b94c25ba7d3cb9c7fe0736aeaaedf361770712/ruff-0.16.0-py3-none-win_amd64.whl", hash = "sha256:429c117f022bf481fabd9d551e7a3952b24c65e6ef44337ea09d90bebef14472", size = 11923141, upload-time = "2026-07-23T19:11:26.409Z" }, - { url = "https://files.pythonhosted.org/packages/cb/9a/8415f2657cbe200f41a4531ccededf135505a92d4a012229121f885b26f9/ruff-0.16.0-py3-none-win_arm64.whl", hash = "sha256:14296fedcd2705c77ab8235439278bbb38f285cf7da5528b00b3e330c3d4872d", size = 11273407, upload-time = "2026-07-23T19:11:28.705Z" }, +version = "0.17.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/86/cc/7b71512eb8b49926efb887cc66c74dd993642943c29eba51a877f6b85692/ruff-0.17.5.tar.gz", hash = "sha256:625e57d80cd43352d12ea81690f3eac46cddc8c0f35026d137fb0f157f94592e", size = 5368382, upload-time = "2026-11-12T17:54:55.04Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d4/f2/61df414cb4338617290a9023ad09486e207fb9a6d09357a7be34f2e369a4/ruff-0.17.5-py3-none-linux_armv6l.whl", hash = "sha256:d511dd302982e46a285528942fa6557d57730edc4bdb9def95e86a2603d77396", size = 10231309, upload-time = "2026-11-12T17:54:09.314Z" }, + { url = "https://files.pythonhosted.org/packages/d1/72/8ed970f3361f7c8d3f8e1b3b1af27cf086bc4b3a6b62ec20e21a1aaaaff5/ruff-0.17.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:b72fbc232e328bdbb9cdddf4f1aedcd61bd1aa64d75fc012114b4add0bd7f26b", size = 10250018, upload-time = "2026-11-12T17:54:11.983Z" }, + { url = "https://files.pythonhosted.org/packages/dc/4b/8b10f6c9d0a18413301ae8dd2af9d180a81bb738b1b731d944a37404c523/ruff-0.17.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6f0db748508f04a04e3fbebcc636a5c8b3bd76274f8ed28f497c44d75c2ea2d7", size = 9504737, upload-time = "2026-11-12T17:54:14.567Z" }, + { url = "https://files.pythonhosted.org/packages/b7/ea/1b3afa3943239dede7a0755ea139bdb51879f0f3f96f92894081d5c7d2e5/ruff-0.17.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f6a7b138edf9cc402ca736a59d9525e6d766e5395760b72e7e146e6251ac963", size = 10168006, upload-time = "2026-11-12T17:54:17.195Z" }, + { url = "https://files.pythonhosted.org/packages/31/08/ee641daa45f83792f91274b65796cb011f1065f588911bfa3909ad9e31e7/ruff-0.17.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e52622ecf3a0df9d03e796fe3eed4aa085adda65520db7e0619cbd2192a97342", size = 10043751, upload-time = "2026-11-12T17:54:19.815Z" }, + { url = "https://files.pythonhosted.org/packages/f8/cf/1c59fdb42d0b5671ad5b160636fab4005ee28db72cb06aef6e3f3c04f377/ruff-0.17.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:54c0f67d1be11b55d12c184a819fc229f5eee3ef45c16c4fcad41258e83b4882", size = 10690562, upload-time = "2026-11-12T17:54:22.789Z" }, + { url = "https://files.pythonhosted.org/packages/49/c5/578074716173fb0c1591e9648a9f85c469888d9530cb35b89b757dc1208b/ruff-0.17.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dd0dfe7c6fe5a447fce467c58e69893be1d9a7e4378f5b9906432da33d94a97f", size = 11338465, upload-time = "2026-11-12T17:54:25.523Z" }, + { url = "https://files.pythonhosted.org/packages/aa/b9/d6428bcf5ed88f4dc1d6e3417ee350236ed36e7a35f9477b727c00e437bf/ruff-0.17.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ec4ecf40fb4d6e1265b009dbe551727920926fc0f769070c452d6d84b422a74d", size = 10895501, upload-time = "2026-11-12T17:54:28.441Z" }, + { url = "https://files.pythonhosted.org/packages/f2/8a/1e29c0c3785ae7e5cd0d54ee8717a08867ef71545796340be4c653c57e24/ruff-0.17.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40ca8afaac309b41a5b2e09e4e7beb1f824826b93c25697c4d74f573324fba4e", size = 10613231, upload-time = "2026-11-12T17:54:30.862Z" }, + { url = "https://files.pythonhosted.org/packages/32/b6/88944350c14bb90651014d678ad554e233ae2a79c14ad52101845f93d15b/ruff-0.17.5-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:8e85601bd6d9b6c3e3b95c0e0dccdbac1d23c6bcef006d187fbcddaf8225a5df", size = 10562789, upload-time = "2026-11-12T17:54:33.869Z" }, + { url = "https://files.pythonhosted.org/packages/6f/fd/2792e955b0bf54295cdcdddc4bb3f380c0790d7e60e789f528a9e6e48a31/ruff-0.17.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:f93d2b7d449ed9545304f6923699ca20d13c675b69f258481709a08ae61076db", size = 10069824, upload-time = "2026-11-12T17:54:36.663Z" }, + { url = "https://files.pythonhosted.org/packages/07/9c/d7cad341b4c19237948a6dd1fcea1c9c39c9d08b70f22f0e157d1236ebd6/ruff-0.17.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:0e5c125c5b31dc8efc948d41357496a4c4a312977565ccba740030efdff83580", size = 10038961, upload-time = "2026-11-12T17:54:39.452Z" }, + { url = "https://files.pythonhosted.org/packages/cc/a1/9cd0d4c371ddc70267d3bd557e718e2bdfb94c25e49d25605edfabb764bd/ruff-0.17.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:50dfc3c6b3ebd0a932f11dfd579bd42234b0b7137e68940eb6abdbfdb9d69697", size = 10385012, upload-time = "2026-11-12T17:54:41.808Z" }, + { url = "https://files.pythonhosted.org/packages/8f/a9/35f078ce98d4df318328ea5270382b5b65e680f7953b3db54f8e009c420c/ruff-0.17.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:86bd1f3b83c25f9b8055c6e796f0685b39d3127ce947322098c3108cf82fd586", size = 10793672, upload-time = "2026-11-12T17:54:44.342Z" }, + { url = "https://files.pythonhosted.org/packages/2c/a5/2e136dede2a88aaaf54498bbbdc81bc810f788ef6ef01efb97037d73cd1d/ruff-0.17.5-py3-none-win32.whl", hash = "sha256:e1546609b2ad73f1d6c5c076881b788672b7b3cc3283981182cbdbb6524ed88a", size = 9929908, upload-time = "2026-11-12T17:54:47.067Z" }, + { url = "https://files.pythonhosted.org/packages/ec/8c/e4db9ae1e0ee233c04df007ab6d0d42f799ae9abd95d352b6092ee7bc4bf/ruff-0.17.5-py3-none-win_amd64.whl", hash = "sha256:aa415d57c244299279901d776607fee3df7831c2a7435433fbfacde8632c6550", size = 10275454, upload-time = "2026-11-12T17:54:49.401Z" }, + { url = "https://files.pythonhosted.org/packages/e6/65/a1648bc1550e7683bf7bf1e2ce2485c9f8535cbca6cca9ec7b73cc12fb8e/ruff-0.17.5-py3-none-win_arm64.whl", hash = "sha256:64a6fd668a336df959c522991de33e9e3c8be463afc0c9ac8f029f9d19ef756e", size = 9849020, upload-time = "2026-11-12T17:54:52.055Z" }, +] + +[[package]] +name = "sortedcontainers" +version = "2.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e8/c4/ba2f8066cceb6f23394729afe52f3bf7adec04bf9ed2c820b39e19299111/sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88", size = 30594, upload-time = "2021-05-16T22:03:42.897Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0", size = 29575, upload-time = "2021-05-16T22:03:41.177Z" }, +] + +[[package]] +name = "tomli" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/78/9ad63712633ed3ab5cc1a648d863d7e7da371e9425e209555a0fe711b695/tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6", size = 17662, upload-time = "2026-10-07T12:23:37.892Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/66/98/316fdc00f8c0939e6fe50461dd343c162d3ad51d1286eb25b7db54361d50/tomli-2.5.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:a525685c2f97da40762b8695eb7aa0af4c8344ca1905c73e4e29cb04d34607dc", size = 162775, upload-time = "2026-10-07T12:23:13.941Z" }, + { url = "https://files.pythonhosted.org/packages/c5/22/7b10fa5bb01c9539f53f69b619361b19350acc73657772ea7ac70ba309a8/tomli-2.5.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9dbb18c1cfb2f6517942fc9314437f66aa06d94436ffb1f06102ef3572f35276", size = 161406, upload-time = "2026-10-07T12:23:15.215Z" }, + { url = "https://files.pythonhosted.org/packages/9c/e7/1a069d86dfd20f1f84f71c63faed9f83c1d890bc06c27d82dc7d888fb573/tomli-2.5.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:752e8b1aa6a4367ef8bf6a1a1e005540f7ed055ba36d7193796812ca5404eb52", size = 273855, upload-time = "2026-10-07T12:23:16.471Z" }, + { url = "https://files.pythonhosted.org/packages/ae/83/d1ef43d1687d092ab9c235455c76e6e709483b346b056f086095c7c263a5/tomli-2.5.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c47300f9bf791808f77d82747691c4bb09cb14bdf3060cca99b42cdc4361d5a7", size = 284910, upload-time = "2026-10-07T12:23:18.166Z" }, + { url = "https://files.pythonhosted.org/packages/cc/05/f4d9cf7de61822ece0c3873f30d291e324911c71a378b8bfe5ced13fd9f5/tomli-2.5.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:19b0dd8749f4ea2f112c5fcfb3c5248390c899d7e2e173f1d91abee1fa0ff391", size = 277723, upload-time = "2026-10-07T12:23:19.355Z" }, + { url = "https://files.pythonhosted.org/packages/42/28/78262493141fa543151cf005760c3cb01d09fc28a11f993c05109902cb8c/tomli-2.5.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:57b1c3b01fab802e2899bc3d168dca320e14165e2fd9fd584760fb4ca5826859", size = 285115, upload-time = "2026-10-07T12:23:20.698Z" }, + { url = "https://files.pythonhosted.org/packages/1a/b9/e1dab9a30bcb677b5cc5cee810609cfd64f24306a3055767dd3fda00b1e0/tomli-2.5.0-cp315-cp315-win32.whl", hash = "sha256:667e521b37a6c5ccaa044202c235b530f90177ffe2cd4a64ecc213c7dd535feb", size = 103475, upload-time = "2026-10-07T12:23:21.941Z" }, + { url = "https://files.pythonhosted.org/packages/4c/bd/31a3790c11d6ea95fcf5e6022ac0f8d0543c9b61120b730fc481bd43d3b4/tomli-2.5.0-cp315-cp315-win_amd64.whl", hash = "sha256:d747252933c8a65ef6bd8da0fbb7ce28a90eb6119d8cd00772cd528aa07b68d5", size = 114589, upload-time = "2026-10-07T12:23:23.098Z" }, + { url = "https://files.pythonhosted.org/packages/47/a2/4f6310fa699364f0e3af7ee3af88dddd9af066d33e716a0265bbe2b3ea84/tomli-2.5.0-cp315-cp315-win_arm64.whl", hash = "sha256:75dbcde8751b0a960aa3de173aa5e894d590755c6d7758b7e774c06f1dc3cbdd", size = 111493, upload-time = "2026-10-07T12:23:24.233Z" }, + { url = "https://files.pythonhosted.org/packages/68/14/00853f0b396d8971107ae1921bb5b322fdee1650d2f16bf06c20adb532e5/tomli-2.5.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:2419c2a189551987b59d80e63ec355671283336f41c6b9b89462df679c7d0c57", size = 171380, upload-time = "2026-10-07T12:23:25.512Z" }, + { url = "https://files.pythonhosted.org/packages/89/ad/fa6949321dadee46b27363974fb197b94c911c3b0f7a5fd26d7dc18fc2a0/tomli-2.5.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:0dc598040da8d42cf20f0be588ed7004f46db12a0ac6c32e03a59dccedaaadcd", size = 170553, upload-time = "2026-10-07T12:23:26.855Z" }, + { url = "https://files.pythonhosted.org/packages/53/aa/3056c919eb3e084df3752b2cf5f865dcc04af0b27dba2f66d7b28af4633a/tomli-2.5.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49096930c8d886c9bbdab62d2d0d17ce823ddeea522309a190b36245d5b49e01", size = 294428, upload-time = "2026-10-07T12:23:28.132Z" }, + { url = "https://files.pythonhosted.org/packages/96/b2/faeeb5d8769ea3832021d73e892c8391eae7b4b4f8b55a789127bd8b18a9/tomli-2.5.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8ade5023067f99fe72b88accd30d0ea05a158e9e32a11f124e731ea9695313f", size = 304909, upload-time = "2026-10-07T12:23:29.381Z" }, + { url = "https://files.pythonhosted.org/packages/f6/52/f094c09e73fb654b621716d019acb5d29bdfd1be01df80c281d552bda48d/tomli-2.5.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b69564772b5c8f22ea5f498dff08cfa825045b4d4c4400529000bdf818aa3b2a", size = 293220, upload-time = "2026-10-07T12:23:30.608Z" }, + { url = "https://files.pythonhosted.org/packages/86/f5/0c30541078ca4b505ce3bd76ed931facbfec524dd018535d691d1af0a6d2/tomli-2.5.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8ff3a2ca028c7eee0c777f9a092038d0a594a9fa04e215f929a22c329e2cb142", size = 305705, upload-time = "2026-10-07T12:23:32.181Z" }, + { url = "https://files.pythonhosted.org/packages/05/74/590e7d19d6a118fc5cc5704ff358e21d95b8573f6b9443b1519f29ca8825/tomli-2.5.0-cp315-cp315t-win32.whl", hash = "sha256:62fc1bc8eb03e3a9cadfca713d65614ed8e09d974a283295ffe3a831976b4dc5", size = 108432, upload-time = "2026-10-07T12:23:33.496Z" }, + { url = "https://files.pythonhosted.org/packages/1c/b8/63a75cfb27a17c38550e44025d3a6e7be64516fd8608a3b75703bf37d81b/tomli-2.5.0-cp315-cp315t-win_amd64.whl", hash = "sha256:f3fcbc57b1791fa6cbe5d8434179d51de12be1a4811469529f47f6e7487a2571", size = 117281, upload-time = "2026-10-07T12:23:34.648Z" }, + { url = "https://files.pythonhosted.org/packages/72/01/e8c1debb2173973372934c68fc8e46170ab60ef23ed4592dff4dec6e8993/tomli-2.5.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d2ba24db8a9376921b5e87b4762b9adb0f3f1deaea68f2b8b0bb2c11efb9c3e7", size = 115069, upload-time = "2026-10-07T12:23:35.77Z" }, + { url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" }, +] + +[[package]] +name = "tomli-w" +version = "1.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/19/75/241269d1da26b624c0d5e110e8149093c759b7a286138f4efd61a60e75fe/tomli_w-1.2.0.tar.gz", hash = "sha256:2dd14fac5a47c27be9cd4c976af5a12d87fb1f0b4512f81d69cce3b35ae25021", size = 7184, upload-time = "2025-01-15T12:07:24.262Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/18/c86eb8e0202e32dd3df50d43d7ff9854f8e0603945ff398974c1d91ac1ef/tomli_w-1.2.0-py3-none-any.whl", hash = "sha256:188306098d013b691fcadc011abd66727d3c414c571bb01b1a174ba8c983cf90", size = 6675, upload-time = "2025-01-15T12:07:22.074Z" }, +] + +[[package]] +name = "ty" +version = "0.0.107" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e1/21/096166a4d1118a6ce923223d53d14dc6262046604b6f1e667882db8d80b3/ty-0.0.107.tar.gz", hash = "sha256:e792277547cd55f5e75208665da705825f0af627397aa7abb169d5ad994277ca", size = 8342007, upload-time = "2026-11-18T21:08:00.423Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ea/b3/ed4d2f9899657b3fef03df61f5937570ff68c5fe43b1110b70350487e986/ty-0.0.107-py3-none-linux_armv6l.whl", hash = "sha256:dcf2567fe5ed95f21bf3e3fcc5de68a4b570a8b0e6029b3a57b8098e784b90d1", size = 15002472, upload-time = "2026-11-18T21:07:11.018Z" }, + { url = "https://files.pythonhosted.org/packages/cb/ae/164d1aeaf968a4d4104bf48c978a8bef8de1e258574b33fdb2d9fa9f5c21/ty-0.0.107-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:39dfc6a2ce0b1df3e53a518e92cd331f30c11355e44f55df9096581437be1e24", size = 14576636, upload-time = "2026-11-18T21:07:14.615Z" }, + { url = "https://files.pythonhosted.org/packages/a7/a4/c7b60685da0db9d7699459afe75fd17b1143e6fc14f6484fc55c2e705c1a/ty-0.0.107-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6f4169889ecb5ee42e15227c6b6f978c6638548c9929cb19f76022afef903361", size = 13973376, upload-time = "2026-11-18T21:07:17.377Z" }, + { url = "https://files.pythonhosted.org/packages/00/12/bf50a964941e6e03e3d526576a3f3c942029e06666f8db4a4541940ff743/ty-0.0.107-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9733e57559906229a897ed2834b7175013455c6b800aa3c029b15876fa11a75e", size = 14914214, upload-time = "2026-11-18T21:07:20.148Z" }, + { url = "https://files.pythonhosted.org/packages/a8/7f/1b283835c397fcb58d86a6355f8b138978e9c1121fe7514e4247dc9f7038/ty-0.0.107-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8ffa6cad4f057f45a7f68605622b16ed18fcb5a817ea1a1130ad689d0ec69c82", size = 14727467, upload-time = "2026-11-18T21:07:23.377Z" }, + { url = "https://files.pythonhosted.org/packages/7b/91/6a59b43159a9810f42d185e4d04fb52e5c8f48e786a75facd56f5990fa3a/ty-0.0.107-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6693dfa209355f0257a904f65eb6a37e50633af5bad9d304291956d84084c15e", size = 15718081, upload-time = "2026-11-18T21:07:26.053Z" }, + { url = "https://files.pythonhosted.org/packages/e0/62/c2d5a02dcaa19e674c79e527f1706f6691278c7ca85504a83240a602734a/ty-0.0.107-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f915ce2277bcb914c36134d8142ff7c209e0fe43647055a28df5001bdf1b173b", size = 16153080, upload-time = "2026-11-18T21:07:28.941Z" }, + { url = "https://files.pythonhosted.org/packages/88/f2/94af1c34c93ae9226e4c58f3c0a6ccb848f962f2838bf36d300f5a70f4a1/ty-0.0.107-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4d9f968afebb4e25239383029600073bbcdd2e82a1a7d3ff438d1ae8efd662c1", size = 16018858, upload-time = "2026-11-18T21:07:31.757Z" }, + { url = "https://files.pythonhosted.org/packages/21/17/16cb65301cd21f50634480b4fff3d4c25e61c4cd73f7e9c850681dddc08f/ty-0.0.107-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1fe5917b9ed2b4e500610cafb90f4a84ba936cf83eb3e2b8a9e44449b59b77cb", size = 17434891, upload-time = "2026-11-18T21:07:34.618Z" }, + { url = "https://files.pythonhosted.org/packages/14/54/dba49f1255a2fe2b49fed88e56ae385a977f3ab5b9c0579e92fb1380b235/ty-0.0.107-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:714447884645175ce96f566063fd31539960832423f748af5a4c3b5c817f0604", size = 15540910, upload-time = "2026-11-18T21:07:37.448Z" }, + { url = "https://files.pythonhosted.org/packages/c2/90/f87b2c5fa3323fd1d4ab30a7a78f4b363ca8337087dea9532be53fd02c5d/ty-0.0.107-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:bc37c53103d447c8a4d2eba6f746f9ded12c8aea66bd8c03d7039a976069aad4", size = 14401178, upload-time = "2026-11-18T21:07:40.233Z" }, + { url = "https://files.pythonhosted.org/packages/7a/33/b6cad6f43aeaca2988839827f40d6f0a62b062f352be472a2131f35ff0fc/ty-0.0.107-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:fe0aedb5047ac9e5fc2812e4ba36778efd2e5187c9056acf65bd67e85fa83418", size = 14742847, upload-time = "2026-11-18T21:07:43.269Z" }, + { url = "https://files.pythonhosted.org/packages/e0/4e/f467a0b8e151bf2162d9180e824c2dee30092c1284ed123fd787c1572fc9/ty-0.0.107-py3-none-musllinux_1_2_i686.whl", hash = "sha256:2eafaffdeb80484831e2c16e3cec3e1e45176c88cb08a82395138cc6a7695aa9", size = 15103370, upload-time = "2026-11-18T21:07:45.918Z" }, + { url = "https://files.pythonhosted.org/packages/59/76/e0df8db6f22ba0380b0775d7668e3e93cb12b7ab33326a1199f8e88d1d0b/ty-0.0.107-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:2e8fc59467d57762b4b171b597092ba7ebb91071b6dffda8ca3be393cebd437a", size = 15438466, upload-time = "2026-11-18T21:07:48.842Z" }, + { url = "https://files.pythonhosted.org/packages/cd/fe/fc14a66f6a7464a6b7ebd2440f7becd2146aa865f7516b22d44df29c1f3a/ty-0.0.107-py3-none-win32.whl", hash = "sha256:40b4c00666db9bcfe112b320522192ae598c0982f3c7270ce62eb313ffabb373", size = 13966366, upload-time = "2026-11-18T21:07:51.826Z" }, + { url = "https://files.pythonhosted.org/packages/a0/ad/1c992fb038f33a34f32f1ebc57ac4023ab60b4530e2bbf3fdd5e6d97753e/ty-0.0.107-py3-none-win_amd64.whl", hash = "sha256:e9b5e292a0b39105e1068ff176f355eb645b45d9f6aa91765ca739069ed13c12", size = 14895905, upload-time = "2026-11-18T21:07:54.814Z" }, + { url = "https://files.pythonhosted.org/packages/4e/93/83c2fa56dd6ab9f9d1253621ae79a5bbc2f3fc2bb3e562f2e8cd1ad5df5c/ty-0.0.107-py3-none-win_arm64.whl", hash = "sha256:c5f4eb4ea3c84ab755dafb7d09abee8d6fbd582db5371d858443f0c85e72dcd3", size = 14031494, upload-time = "2026-11-18T21:07:57.714Z" }, +] + +[[package]] +name = "urllib3" +version = "2.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/05/b17359e1cefb4f909b5e40b1b90a496d987258916dbbf88e842c729f510e/urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63", size = 458972, upload-time = "2026-09-15T19:29:36.253Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, ]