Skip to content
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

Merged
merged 9 commits into from
Sep 8, 2024

Conversation

hostcc
Copy link
Owner

@hostcc hostcc commented Sep 8, 2024

  • 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
  • Dockerfile: Rust and Cargo are required to build pyndatic-core on ARM platforms, they have been added to build stage

* 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
@hostcc hostcc added the enhancement New feature or request label Sep 8, 2024
@hostcc hostcc self-assigned this Sep 8, 2024
Copy link

sonarqubecloud bot commented Sep 8, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

Dockerfile Fixed Show fixed Hide fixed
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

Replace this ADD instruction with a COPY instruction. See more on SonarCloud
Copy link

sonarqubecloud bot commented Sep 8, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Sep 8, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

Copy link

sonarqubecloud bot commented Sep 8, 2024

@hostcc hostcc merged commit fc8a008 into master Sep 8, 2024
10 checks passed
@hostcc hostcc deleted the feature/typing-hints branch September 8, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant