Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
782b17ec
Commit
782b17ec
authored
10 months ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[pre-commit] Update and add further rules; clean-up
parent
97b746bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-5
1 addition, 5 deletions
.gitignore
.pre-commit-config.yaml
+7
-9
7 additions, 9 deletions
.pre-commit-config.yaml
Dockerfile
+5
-5
5 additions, 5 deletions
Dockerfile
with
13 additions
and
19 deletions
.gitignore
+
1
−
5
View file @
782b17ec
...
...
@@ -5,7 +5,6 @@
*~
*.swp
*.pyc
*.egg-info
.nfs*
.coverage*
*.DS_Store
...
...
@@ -14,15 +13,12 @@ coverage.xml
test_results.xml
junit-coverage.xml
html/
build/
doc/api/
dist/
cache/
_citools/
_work/
.mypy_cache/
.pytest_cache/
results*/
*_version.py
.venv
.pixi
results*/
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
7
−
9
View file @
782b17ec
...
...
@@ -6,7 +6,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos
:
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
v0.4.
2
rev
:
v0.4.
3
hooks
:
-
id
:
ruff
args
:
[
--fix
]
...
...
@@ -20,11 +20,11 @@ repos:
hooks
:
-
id
:
mypy
args
:
[
--install-types
,
--non-interactive
,
--no-strict-optional
,
--ignore-missing-imports
]
#
- repo: https://github.com/
pre-commit/mirrors-prettier
#
rev: v2.
7.1
#
hooks:
#
- id:
prettier
#
types_or: [json
]
-
repo
:
https://github.com/
AleksaC/hadolint-py
rev
:
v2.
12.1b3
hooks
:
-
id
:
hadolint
args
:
[
--ignore
,
DL3007
,
--ignore
,
DL3008
]
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.6.0
hooks
:
...
...
@@ -42,7 +42,6 @@ repos:
-
id
:
check-yaml
exclude
:
|
(?x)(
^conda/meta.yaml|
^.gitlab-ci.yml
)
-
id
:
debug-statements
...
...
@@ -57,6 +56,5 @@ repos:
exclude
:
|
(?x)(
^.pixi/|
^.pixi.toml/|
^.pixi.lock/|
^.pixi.lock|
)
This diff is collapsed.
Click to expand it.
Dockerfile
+
5
−
5
View file @
782b17ec
...
...
@@ -6,17 +6,17 @@ COPY pyproject.toml pixi.lock /app/
WORKDIR
/app
RUN
pixi
install
--frozen
-e
cuda-base
COPY
dist/*.whl /app/
RUN
/app/.pixi/envs/cuda-base/bin/pip
install
--no-dependencies
--no-build-isolation
mednet-
*
.whl
RUN
pixi shell-hook
--frozen
-e
cuda-base
>
/entrypoint.sh
RUN
echo
"mednet"
>>
/entrypoint.sh
RUN
/app/.pixi/envs/cuda-base/bin/pip
install
--no-dependencies
--no-build-isolation
mednet-
*
.whl
\
&&
pixi shell-hook
--frozen
-e
cuda-base
>
/entrypoint.sh
\
&&
echo
"mednet"
>>
/entrypoint.sh
FROM
nvidia/cuda:12.3.1-runtime-ubuntu22.04
AS
production
# only copy the production environment into prod container
COPY
--from=build /app/.pixi/envs/cuda-base /app/.pixi/envs/cuda-base
COPY
--from=build /entrypoint.sh /entrypoint.sh
RUN
apt update
\
&&
apt
install
-y
libopengl0 libegl1 libgl1-mesa-glx
>
/dev/null
\
RUN
apt
-get
update
\
&&
apt
-get
install
--no-install-recommends
-y
libopengl0 libegl1 libgl1-mesa-glx
>
/dev/null
\
&&
apt-get clean
&&
apt-get autoclean
&&
apt-get autoremove
\
&&
rm
-rf
/var/lib/apt/lists/
*
WORKDIR
/app
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment