https://github.com/SoftwareHeritage/swh-model
Revision 734b0812c165892039b2a9bc74e51a29e21fb0f9 authored by Valentin Lorentz on 24 September 2021, 12:24:36 UTC, committed by Valentin Lorentz on 28 September 2021, 09:51:15 UTC
This reimplements attrs_strict.type_validator(), using type equality
instead of isinstance.

This makes my checksum validation script (that mostly just instantiates
model objects, computes a checksum, then discard) run twice as fast.
1 parent e30eb7d
History
Tip revision: 734b0812c165892039b2a9bc74e51a29e21fb0f9 authored by Valentin Lorentz on 24 September 2021, 12:24:36 UTC
model: Replace attrs-strict with stricter validation
Tip revision: 734b081
File Mode Size
bin
docs
swh
.gitignore -rw-r--r-- 137 bytes
.pre-commit-config.yaml -rw-r--r-- 1021 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 45 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 157 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 24 bytes
README.md -rw-r--r-- 620 bytes
mypy.ini -rw-r--r-- 571 bytes
pyproject.toml -rw-r--r-- 237 bytes
pytest.ini -rw-r--r-- 247 bytes
requirements-cli.txt -rw-r--r-- 30 bytes
requirements-test.txt -rw-r--r-- 51 bytes
requirements.txt -rw-r--r-- 380 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 1.7 KB

README.md

back to top