Closed openprivacy closed 3 years ago
Easy (non-conclusive) test for multiple components:
cd ..
git clone git@github.com:CivicActions/ssp-toolkit.git
cd compliance-io
poetry run python examples/oc_to_oscal_components.py ../civicactions/ssp-toolkit/opencontrol/opencontrol.yaml
So this looks pretty good, I think :-) There were a bunch of formatting and lint errors that I fixed and pushed. You should install pre-commit! I did NOT get a chance to fix the mypy errors, though, so this PR still needs some work. In order for me to commit/push my fixes, I disabled the mypy hook in .pre-commit-config.yml
. You should uncomment that hook to reenable it, and then run pre-commit run --all
.
Pushed updates that get test_oscal_ssp
to produce valid code.
Thanks to the awesome pre-commit hooks the code is cleaner and more correct now - ready for your consideration.
This seems to work