feat: add method validate()

8 jobs for topic/default/validate in 3 minutes and 36 seconds (queued for 25 seconds)
Status Job ID Name Coverage
  Lint
passed yamllint #389877

00:00:24

 
  Tests
failed black #389882

00:00:38

passed check-manifest #389881

00:00:34

failed flake8 #389878

00:00:27

failed mypy #389883

00:00:45

failed py3 #389879

00:01:07

failed py3-from-forge #389880

00:01:12

 
  After Tests
skipped trigger-cubicweb-pipeline
 
Name Stage Failure
failed
py3-from-forge Tests
ERROR test/unittest_serialize.py
ERROR test/unittest_specialization.py
!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 6 errors in 1.03s =========================
ERROR: InvocationError for command /builds/open-source/yams/.tox/py3-from-forge/bin/python -m pytest test (exited with code 2)
___________________________________ summary ____________________________________
ERROR: py3-from-forge: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1
failed
mypy Tests
/builds/open-source/yams/.tox/mypy/bin/python -m pip install types-setuptools


Found 54 errors in 7 files (checked 13 source files)
ERROR: InvocationError for command /builds/open-source/yams/.tox/mypy/bin/mypy --install-types --non-interactive --ignore-missing-imports yams (exited with code 1)
___________________________________ summary ____________________________________
ERROR: mypy: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1
failed
black Tests
black run-test: commands[0] | black --check .
would reformat yams/schema.py
Oh no! 💥 💔 💥
1 file would be reformatted, 33 files would be left unchanged.
ERROR: InvocationError for command /builds/open-source/yams/.tox/black/bin/black --check . (exited with code 1)
___________________________________ summary ____________________________________
ERROR: black: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1
failed
py3 Tests
ERROR test/unittest_serialize.py
ERROR test/unittest_specialization.py
!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 6 errors in 1.56s =========================
ERROR: InvocationError for command /builds/open-source/yams/.tox/py3/bin/python -m pytest test (exited with code 2)
___________________________________ summary ____________________________________
ERROR: py3: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1
failed
flake8 Tests
flake8 installed: flake8==3.9.2,mccabe==0.6.1,pycodestyle==2.7.0,pyflakes==2.3.1
flake8 run-test-pre: PYTHONHASHSEED='3133624460'
flake8 run-test: commands[0] | flake8
./yams/schema.py:686: [E117] over-indented
ERROR: InvocationError for command /builds/open-source/yams/.tox/flake8/bin/flake8 (exited with code 1)
___________________________________ summary ____________________________________
ERROR: flake8: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1