-
Notifications
You must be signed in to change notification settings - Fork 4
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 #5 from scverse-bot/template-update-saeyslab-FlowS…
…OM_Python-v0.3.1 Update template to v0.3.1
- Loading branch information
Showing
12 changed files
with
806 additions
and
503 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
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 |
---|---|---|
@@ -1,30 +1,29 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
release: | ||
types: [published] | ||
|
||
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/ | ||
jobs: | ||
release: | ||
name: Release | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/FlowSOM | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install hatch | ||
run: pip install hatch | ||
|
||
- name: Build project for distribution | ||
run: hatch build | ||
|
||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
filter: blob:none | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
python-version: "3.x" | ||
cache: "pip" | ||
- run: pip install build | ||
- run: python -m build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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
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,34 @@ | ||
diff a/.pre-commit-config.yaml b/.pre-commit-config.yaml (rejected hunks) | ||
@@ -6,29 +6,18 @@ default_stages: | ||
- push | ||
minimum_pre_commit_version: 2.16.0 | ||
repos: | ||
- - repo: https://github.com/psf/black | ||
- rev: "24.2.0" | ||
- hooks: | ||
- - id: black | ||
- - repo: https://github.com/asottile/blacken-docs | ||
- rev: 1.16.0 | ||
- hooks: | ||
- - id: blacken-docs | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
- # Newer versions of node don't work on systems that have an older version of GLIBC | ||
- # (in particular Ubuntu 18.04 and Centos 7) | ||
- # EOL of Centos 7 is in 2024-06, we can probably get rid of this then. | ||
- # See https://github.com/scverse/cookiecutter-scverse/issues/143 and | ||
- # https://github.com/jupyterlab/jupyterlab/issues/12675 | ||
- language_version: "17.9.1" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.2.2 | ||
hooks: | ||
- id: ruff | ||
+ types_or: [python, pyi, jupyter] | ||
args: [--fix, --exit-non-zero-on-fix] | ||
+ - id: ruff-format | ||
+ types_or: [python, pyi, jupyter] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: |
Oops, something went wrong.