-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Typing hints, configuration file schema with pydantic
#43
Conversation
* Added typing hints * Configuration file schema now uses `pydantic` instead of `schema`/`addict` - the former provides better typing support and more comprehensive schema definitions and validation * Requirements, both runtime and development, have been extracted into dedicated files (`requirements.txt` and `requirements_dev.txt`, respectively), so that other tools could be used to instantiate the environment * Added startup message listing the configuration parameters * `sphinx`: added support for automatic typing hints
Please retry analysis of this Pull-Request directly on SonarCloud |
vulnerability, as suggested by Snyk.
ARM platforms, they have been added to `build` stage
* Updated comments and copyright headers where missing
Dockerfile
Outdated
RUN apk add -U cargo git rust \ | ||
&& pip install build \ | ||
&& apk cache clean | ||
ADD . /usr/src/ |
Check notice
Code scanning / SonarCloud
Prefer COPY over ADD for copying local resources Low
Quality Gate failedFailed conditions |
Please retry analysis of this Pull-Request directly on SonarCloud |
Quality Gate passedIssues Measures |
pydantic
instead ofschema
/addict
- the former provides better typing support and more comprehensive schema definitions and validationrequirements.txt
andrequirements_dev.txt
, respectively), so that other tools could be used to instantiate the environmentsphinx
: added support for automatic typing hintsDockerfile
: Rust and Cargo are required to buildpyndatic-core
on ARM platforms, they have been added tobuild
stage