Skip to content

Commit 66194de

Browse files
scverse-botscverse-bot
scverse-bot
authored and
scverse-bot
committed
Update template to v0.3.1
1 parent bd7c39e commit 66194de

12 files changed

+806
-503
lines changed

.cruft.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"template": "https://github.com/scverse/cookiecutter-scverse",
3-
"commit": "3dcfe1fd2bdfc3c1cc9cc4c2108fba1e973b9dcb",
4-
"checkout": null,
3+
"commit": "586b1652162ff7994b0070a034023d64289ae416",
4+
"checkout": "v0.3.1",
55
"context": {
66
"cookiecutter": {
77
"project_name": "FlowSOM",
@@ -13,9 +13,15 @@
1313
"project_repo": "https://github.com/artuurC/FlowSOM",
1414
"license": "GNU General Public License Version 3",
1515
"_copy_without_render": [
16-
".github/workflows/**.yaml",
16+
".github/workflows/build.yaml",
17+
".github/workflows/test.yaml",
1718
"docs/_templates/autosummary/**.rst"
1819
],
20+
"_render_devdocs": false,
21+
"_jinja2_env_vars": {
22+
"lstrip_blocks": true,
23+
"trim_blocks": true
24+
},
1925
"_template": "https://github.com/scverse/cookiecutter-scverse"
2026
}
2127
},

.github/workflows/release.yaml

+19-20
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- "*.*.*"
4+
release:
5+
types: [published]
76

7+
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
88
jobs:
99
release:
10-
name: Release
10+
name: Upload release to PyPI
1111
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/FlowSOM
15+
permissions:
16+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1217
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
15-
16-
- name: Set up Python 3.10
17-
uses: actions/setup-python@v4
18+
- uses: actions/checkout@v4
1819
with:
19-
python-version: "3.10"
20-
21-
- name: Install hatch
22-
run: pip install hatch
23-
24-
- name: Build project for distribution
25-
run: hatch build
26-
27-
- name: Publish a Python distribution to PyPI
28-
uses: pypa/gh-action-pypi-publish@release/v1
20+
filter: blob:none
21+
fetch-depth: 0
22+
- uses: actions/setup-python@v4
2923
with:
30-
password: ${{ secrets.PYPI_API_TOKEN }}
24+
python-version: "3.x"
25+
cache: "pip"
26+
- run: pip install build
27+
- run: python -m build
28+
- name: Publish package distributions to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

.pre-commit-config.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ repos:
3939
args: [--fix=lf]
4040
- id: trailing-whitespace
4141
- id: check-case-conflict
42+
# Check that there are no merge conflicts (could be generated by template sync)
43+
- id: check-merge-conflict
44+
args: [--assume-in-merge]
4245
- repo: local
4346
hooks:
4447
- id: forbid-to-commit

.pre-commit-config.yaml.rej

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
diff a/.pre-commit-config.yaml b/.pre-commit-config.yaml (rejected hunks)
2+
@@ -6,29 +6,18 @@ default_stages:
3+
- push
4+
minimum_pre_commit_version: 2.16.0
5+
repos:
6+
- - repo: https://github.com/psf/black
7+
- rev: "24.2.0"
8+
- hooks:
9+
- - id: black
10+
- - repo: https://github.com/asottile/blacken-docs
11+
- rev: 1.16.0
12+
- hooks:
13+
- - id: blacken-docs
14+
- repo: https://github.com/pre-commit/mirrors-prettier
15+
rev: v4.0.0-alpha.8
16+
hooks:
17+
- id: prettier
18+
- # Newer versions of node don't work on systems that have an older version of GLIBC
19+
- # (in particular Ubuntu 18.04 and Centos 7)
20+
- # EOL of Centos 7 is in 2024-06, we can probably get rid of this then.
21+
- # See https://github.com/scverse/cookiecutter-scverse/issues/143 and
22+
- # https://github.com/jupyterlab/jupyterlab/issues/12675
23+
- language_version: "17.9.1"
24+
- repo: https://github.com/astral-sh/ruff-pre-commit
25+
rev: v0.2.2
26+
hooks:
27+
- id: ruff
28+
+ types_or: [python, pyi, jupyter]
29+
args: [--fix, --exit-non-zero-on-fix]
30+
+ - id: ruff-format
31+
+ types_or: [python, pyi, jupyter]
32+
- repo: https://github.com/pre-commit/pre-commit-hooks
33+
rev: v4.5.0
34+
hooks:

0 commit comments

Comments
 (0)