diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 664658a..678aa9b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -14,25 +14,3 @@ jobs: if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease secrets: inherit uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v1 - pypi: - name: Publish to PyPI - if: startsWith(github.ref, 'refs/tags') - needs: push - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.8" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1b457a..b0163c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,8 @@ name: CI concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: |- + ${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} env: PYTHONHASHSEED: "0" diff --git a/.github/workflows/pr-linting.yml b/.github/workflows/pr-linting.yml index cd3bb74..0fab841 100644 --- a/.github/workflows/pr-linting.yml +++ b/.github/workflows/pr-linting.yml @@ -10,24 +10,5 @@ on: - unlabeled jobs: - check-labels: - name: Check labels - runs-on: ubuntu-22.04 - steps: - - uses: docker://agilepathway/pull-request-label-checker:latest # cspell:ignore agilepathway - with: - any_of: >- - 🐛 Bug,✨ Feature,⚙️ Enhancement,⚠️ Interface,❗ Behavior,📝 Docs,🔨 Maintenance,🖱️ DX - none_of: Epic,💫 Good first issue - repo_token: ${{ secrets.GITHUB_TOKEN }} - - check-title: - name: Check title - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - run: npm install @compwa/commitlint-config - - name: Create commitlint config - run: | - echo "module.exports = {extends: ['@compwa/commitlint-config']}" > commitlint.config.js - - uses: JulienKode/pull-request-name-linter-action@v0.5.0 # cspell:ignore kode + lint-pr: + uses: ComPWA/actions/.github/workflows/pr-linting.yml@v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3ffd76..a0583cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,8 +21,13 @@ repos: - id: mixed-line-ending - id: trailing-whitespace + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v4.0.0-alpha.8 + hooks: + - id: prettier + - repo: https://github.com/ComPWA/policy - rev: 0.2.0 + rev: 0.3.4 hooks: - id: check-dev-files args: @@ -34,11 +39,6 @@ repos: - --repo-title=Public ComPWA GitHub profile - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.3.0 + rev: v8.6.1 hooks: - id: cspell - - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.8 - hooks: - - id: prettier diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 60df28a..1674cd7 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -12,6 +12,7 @@ "ms-python.flake8", "ms-python.isort", "ms-python.pylint", - "travisillig.vscode-json-stable-stringify" + "travisillig.vscode-json-stable-stringify", + "tyriar.sort-lines" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 74d4a5a..0418a07 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,9 +3,15 @@ "editor.rulers": [72], "rewrap.wrappingColumn": 72 }, + "[json]": { + "editor.wordWrap": "on" + }, "diffEditor.experimental.showMoves": true, "editor.formatOnSave": true, "github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"], + "gitlens.telemetry.enabled": false, "multiDiffEditor.experimental.enabled": true, - "rewrap.wrappingColumn": 88 + "redhat.telemetry.enabled": false, + "rewrap.wrappingColumn": 88, + "telemetry.telemetryLevel": "off" }