Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 0f9a83f
  • /
  • noxfile.py
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:d60bd5e837b4cda8f36519e528892b225a104eb6
directory badge
swh:1:dir:0f9a83f27ebe59952e0306d232fd6ef35c7ba459

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
noxfile.py
import nox

# Use uv for faster dependency installation and Python version management
nox.options.default_venv_backend = "uv"

# Test against all currently supported Python versions (3.10+)
PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]


@nox.session(python=PYTHON_VERSIONS)
def tests(session: nox.Session) -> None:
    """Run the test suite across Python versions."""
    session.install(".[test]")
    session.run("python", "-m", "PyEMD.tests.test_all")


@nox.session(python=PYTHON_VERSIONS)
def tests_pytest(session: nox.Session) -> None:
    """Run the test suite with pytest across Python versions."""
    session.install(".[test]")
    session.run("pytest", "PyEMD/tests/", "-v")


@nox.session(python=PYTHON_VERSIONS[-1])  # Latest Python only
def lint(session: nox.Session) -> None:
    """Run linting checks."""
    session.install(".[dev]")
    session.run("isort", "--check", "PyEMD")
    session.run("black", "--check", "PyEMD", "doc", "example")


@nox.session(python=PYTHON_VERSIONS[-1])  # Latest Python only
def typecheck(session: nox.Session) -> None:
    """Run type checking (if mypy is added later)."""
    session.install(".", "mypy")
    session.run("mypy", "PyEMD", "--ignore-missing-imports")

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API