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

https://doi.org/10.5281/zenodo.15858845
22 September 2025, 19:30:56 UTC
  • Code
  • Branches (0)
  • Releases (8)
  • Visits
    • Branches
    • Releases
      • 8
      • 8
      • 7
      • 6
      • 5
      • 4
      • 3
      • 2
      • 1
    • 731c686
    • /
    • c2g-dev-city2graph-54ca5da
    • /
    • .pre-commit-config.yaml
    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
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:feeb7495a084430bf579329dbd534abe6026a39e
    origin badgedirectory badge
    swh:1:dir:1a5e660a570d75de640e747e2837daeaa218d31f
    origin badgesnapshot badge
    swh:1:snp:5003547be900b444c1ef0046c77da9881998af06
    origin badgerelease badge
    swh:1:rel:44beadf1a6bf7d346bd2e92614ae2a2414ff472b

    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
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    .pre-commit-config.yaml
    repos:
      - repo: https://github.com/pre-commit/pre-commit-hooks
        rev: v5.0.0
        hooks:
          - id: check-ast
          - id: check-case-conflict
          - id: check-executables-have-shebangs
          - id: check-merge-conflict
            args: [--assume-in-merge]
          - id: check-shebang-scripts-are-executable
          - id: check-toml
          - id: check-yaml
          - id: detect-private-key
          - id: end-of-file-fixer
          - id: fix-byte-order-marker
          - id: mixed-line-ending
          - id: no-commit-to-branch
          - id: trailing-whitespace
    
      - repo: https://github.com/adrienverge/yamllint
        rev: v1.37.1
        hooks:
          - id: yamllint
            args: [--strict, --config-file=./tests/.yamllint.yml]
    
      - repo: https://github.com/numpy/numpydoc
        rev: v1.9.0
        hooks:
          - id: numpydoc-validation
            files: ^city2graph/
    
      - repo: https://github.com/astral-sh/ruff-pre-commit
        rev: v0.12.11
        hooks:
          - id: ruff-check
            args: [--fix]
          - id: ruff-format
    
      - repo: https://github.com/pre-commit/mirrors-mypy
        rev: v1.16.1
        hooks:
          - id: mypy
            additional_dependencies:
              - geopandas
              - matplotlib
              - networkx
              - numpy
              - osmnx
              - pandas
              - pandas-stubs
              - pytest
              - shapely
              - torch
              - torch-geometric
              - types-requests
    

    back to top

    Software Heritage — Copyright (C) 2015–2025, 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