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.4598943
13 March 2025, 16:08:49 UTC
  • Code
  • Branches (0)
  • Releases (2)
  • Visits
    • Branches
    • Releases
      • 2
      • 2
      • 1
    • 6725532
    • /
    • CLIMADA-project-climada_python-304afb4
    • /
    • Makefile
    Raw File Download
    Permalinks

    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 Iframe embedding
    swh:1:cnt:319f4d397d7a4679c42b92873fbc22ceaa31b857
    origin badgedirectory badge Iframe embedding
    swh:1:dir:ca7e5ae1edf9dc531c8a1145b85d2d2e3994835a
    origin badgesnapshot badge
    swh:1:snp:030a5dbaf8082352f0c4b55ad634155b94840525
    origin badgerelease badge
    swh:1:rel:6bfd6663dbc2792689facf848d3b3d0d209d988f
    Citations

    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 ...
    Makefile
    ###
    # test, coverage and lint
    ###
    
    PYTEST_JUNIT_ARGS = --junitxml=tests_xml/tests.xml
    
    PYTEST_COV_ARGS = \
    	--cov --cov-config=.coveragerc --cov-report html:coverage \
    	--cov-report xml:coverage.xml --cov-report term:skip-covered
    
    PYTEST_ARGS = $(PYTEST_JUNIT_ARGS) $(PYTEST_COV_ARGS)
    
    .PHONY : help
    help:  ## Use one of the following instructions:
    	@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
    
    .PHONY : lint
    lint : ## Static code analysis with Pylint
    	pylint -ry climada > pylint.log || true
    
    .PHONY : unit_test
    unit_test : ## Unit tests execution with coverage and xml reports
    	pytest $(PYTEST_ARGS) --ignore=climada/test climada/
    
    .PHONY : install_test
    install_test : ## Test installation was successful
    	pytest $(PYTEST_JUNIT_ARGS) --pyargs climada.engine.test.test_cost_benefit \
    	climada.engine.test.test_impact
    
    .PHONY : data_test
    data_test : ## Test data APIs
    	pytest $(PYTEST_JUNIT_ARGS) script/jenkins/test_data_api.py
    
    .PHONY : notebook_test
    notebook_test : ## Test notebooks in doc/tutorial
    	pytest $(PYTEST_JUNIT_ARGS) script/jenkins/test_notebooks.py
    
    .PHONY : integ_test
    integ_test : ## Integration tests execution with xml reports
    	pytest $(PYTEST_ARGS) climada/test/
    
    .PHONY : test
    test : ## Unit and integration tests execution with coverage and xml reports
    	pytest $(PYTEST_ARGS) climada/
    
    .PHONY : ci-clean
    ci-clean :
    	rm -rf tests_xml
    	rm pylint.log coverage.xml
    	rm -r coverage
    

    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— Contact— JavaScript license information— Web API

    back to top