https://github.com/SoftwareHeritage/swh-model
Revision 731d10d30695921685886364666f8b7f5b2a6c75 authored by Valentin Lorentz on 12 January 2021, 11:17:24 UTC, committed by Valentin Lorentz on 12 January 2021, 11:17:30 UTC
For example, before this commit, you could replace the code of
revision_identifier() with this:

def release_identifier(release):
    return release.get("id", b"")

and all tests would still pass.
1 parent 18fde50
Raw File
Tip revision: 731d10d30695921685886364666f8b7f5b2a6c75 authored by Valentin Lorentz on 12 January 2021, 11:17:24 UTC
test_identifiers: Make sure that {directory,revision,release,snapshot}_identifier() doesn't just return a value from the dict.
Tip revision: 731d10d
setup.cfg
[flake8]
# E203: whitespaces before ':' <https://github.com/psf/black/issues/315>
# E231: missing whitespace after ','
# W503: line break before binary operator <https://github.com/psf/black/issues/52>
ignore = E203,E231,W503
max-line-length = 88
back to top