-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from dkolbly/allow-lint-flags
allows 'suppress_checks' flag in attributes
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# a Dockerfile to containerize the build of ocsf-validator | ||
# | ||
# To build a container: | ||
# | ||
# docker build -t ocsf-validator:latest . | ||
# | ||
# To use it to validate a schema | ||
# | ||
# docker run --rm -v $PWD:/schema ocsf-validator:latest /schema | ||
# | ||
|
||
FROM python:3.11.9-alpine3.19 | ||
|
||
RUN apk add --no-cache poetry nodejs npm | ||
|
||
WORKDIR /src | ||
|
||
# install stuff that doesn't change much | ||
ADD poetry.lock pyproject.toml . | ||
RUN poetry install --no-root | ||
|
||
# pull in the rest of the code | ||
ADD . . | ||
RUN poetry install --only-root | ||
RUN poetry run black . | ||
RUN poetry run isort . | ||
RUN poetry run pyright ocsf_validator | ||
RUN poetry run pytest | ||
|
||
ENTRYPOINT ["poetry", "run", "python", "-m", "ocsf_validator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters