Skip to content

Library for parsing webhook payloads from popular git forges

License

Notifications You must be signed in to change notification settings

fedora-copr/forge-webhook-parser

Repository files navigation

forge-webhook-parser

Repository License

Library for parsing webhook payloads from popular git forges

Verifying your pull request

We welcome all contributions. If you plan to submit a pull request with changes, you should run the automated tests to check for issues.

Setting up nox

This project includes a nox configuration to automate tests, checks, and other functions. You can use these automated tests to help you verify changes before you submit a PR.

  • Install nox using python3 -m pip install nox or your distribution's package manager.

  • Execute nox from the repository root with no arguments to run all Python code checkers.

  • Alternatively, you can run only certain tasks as outlined in the following sections. Run nox --list to view available sessions.

Running automated tests

  • Perform static analysis with ruff.

    nox -s static
  • Reformat code with black and isort.

    nox -s formatters
  • Check code for formatting issues without applying changes.

    nox -s formatters_check
  • Perform static type checking with mypy.

    nox -s typing

Dependency files

nox sessions use dependencies from requirements files in the requirements/ directory. Each session has a requirements/*.in file with direct dependencies and a lock file in requirements/*.txt that pins exact versions for both direct and transitive dependencies.

  • Use the following nox session to update all dependency lock files:

    nox -s pip-compile
  • Update specific dependency lock files with individual nox sessions, for example:

    nox -s "pip-compile-3.12(formatters)"

By default, the nox sessions upgrade dependencies. You can pass pip-compile options --no-upgrade and --upgrade-package to update only specific packages and keep other dependencies at their current version. For example, to upgrade the isort package only:

nox -s "pip-compile-3.12(formatters)" -- --no-upgrade --upgrade-package=isort

About

Library for parsing webhook payloads from popular git forges

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages