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
pyproject.toml
[tool.black]
target-version = ['py37']

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
force_sort_within_sections = true
back to top