Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 19 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ repos:
exclude: (.*?)\.(h5)$
- id: check-case-conflict
- id: check-json
exclude: .*\{\{.*
- id: pretty-format-json
exclude: .*\{\{.*
args:
- "--autofix"
- "--indent=2"
Expand All @@ -17,6 +19,13 @@ repos:
- id: check-xml
- id: check-yaml
- id: debug-statements
exclude: |
(?x)(
test_[a-zA-Z0-9_]+\.py$|
[a-zA-Z0-9_]+_test\.py$|
conftest\.py$|
.*\{\{.*
)
- id: detect-aws-credentials
args:
- "--allow-missing-credentials"
Expand All @@ -25,6 +34,7 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]
description: Forces to replace line ending by the UNIX 'lf' character.
exclude: \.(bat|ps1|cmd)$
- id: trailing-whitespace
exclude: ".bumpversion.cfg"
- id: check-merge-conflict
Expand All @@ -33,34 +43,40 @@ repos:
rev: "23.3.0"
hooks:
- id: black
files: ^transforms/images/apply-flatfield-tool/
language_version: python3.9
exclude: |
(?x)(
^src\/polus\/plugins\/_plugins\/models\/pydanticv1\/\w*Schema.py$|
^src\/polus\/plugins\/_plugins\/models\/pydanticv2\/\w*Schema.py$
^src\/polus\/plugins\/_plugins\/models\/pydanticv2\/\w*Schema.py$|
.*\{\{.*
)

- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.274"
hooks:
- id: ruff
files: ^transforms/images/apply-flatfield-tool/
exclude: |
(?x)(
test_[a-zA-Z0-9]+.py$|
^src\/polus\/plugins\/_plugins\/models\/pydanticv1\/\w*Schema.py$|
^src\/polus\/plugins\/_plugins\/models\/pydanticv2\/\w*Schema.py$
^src\/polus\/plugins\/_plugins\/models\/pydanticv2\/\w*Schema.py$|
.*\{\{.*
)
args: [--fix]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.4.0"
hooks:
- id: mypy
files: ^transforms/images/apply-flatfield-tool/
exclude: |
(?x)(
test_[a-zA-Z0-9]+.py$|
^src\/polus\/plugins\/_plugins\/models\/pydanticv1\/\w*Schema.py$|
^src\/polus\/plugins\/_plugins\/models\/pydanticv2\/\w*Schema.py$
^src\/polus\/plugins\/_plugins\/models\/pydanticv2\/\w*Schema.py$|
.*\{\{.*
)
additional_dependencies: [types-requests==2.31.0.1]
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pipeline {
image.push()
image.push(dockerVersion)
}

env.PROJECT_NAME = "${pluginName}"
env.FULL_DESC = readFile(file: 'README.md')
env.BRIEF_DESC = "${PROJECT_URL}/tree/master/${PROJECT_NAME}"
Expand All @@ -72,4 +72,4 @@ pipeline {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Instal Conda
# Instal Conda
ENV PATH $CONDA_DIR/bin:$PATH
RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda$CONDA_PYTHON_VERSION-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
echo 'export PATH=$CONDA_DIR/bin:$PATH' > /etc/profile.d/conda.sh && \
Expand Down
Loading