From 077764462bce1e2569b5eb7af955d452eb721417 Mon Sep 17 00:00:00 2001 From: chrishavlin Date: Wed, 23 Aug 2023 09:53:58 -0500 Subject: [PATCH 1/4] rm manual style checks --- .github/workflows/style_checks.yml | 73 ------------------------------ lint_requirements.txt | 4 -- 2 files changed, 77 deletions(-) delete mode 100644 .github/workflows/style_checks.yml delete mode 100644 lint_requirements.txt diff --git a/.github/workflows/style_checks.yml b/.github/workflows/style_checks.yml deleted file mode 100644 index cc267b3..0000000 --- a/.github/workflows/style_checks.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Style Checks -on: [push, pull_request] - -jobs: - flake8: - name: flake8 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Setup Python - uses: actions/setup-python@master - with: - python-version: 3.8 - - name: install - id: install - run : pip install -r lint_requirements.txt - - - name: check - id: flake8 - run: | - flake8 --version - flake8 src/yt_napari - black: - name: black - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Setup Python - uses: actions/setup-python@master - with: - python-version: 3.8 - - name: install - id: install - run : pip install -r lint_requirements.txt - - name: check - id: black - run: | - black --version - black --check --diff src/yt_napari/ - isort: - name: isort - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Setup Python - uses: actions/setup-python@master - with: - python-version: 3.8 - - name: install - id: install - run : pip install -r lint_requirements.txt - - name: check - id: isort - run: | - isort --version-number - isort src/yt_napari --check --diff - - napari-plugin-check: - name: napari-plugin-check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Setup Python - uses: actions/setup-python@master - with: - python-version: 3.8 - - name: install - id: install - run: pip install git+https://github.com/tlambert03/napari-plugin-checks - - name: check - id: napari-plugin-check - run: | - napari-plugin-check . diff --git a/lint_requirements.txt b/lint_requirements.txt deleted file mode 100644 index 8d94897..0000000 --- a/lint_requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -flake8==4.0.1 # keep in sync with .pre-commit-config.yaml -isort==5.12.0 # keep in sync with .pre-commit-config.yaml -black==22.3.0 # keep in sync with .pre-commit-config.yaml -flake8-bugbear From 549058558ae7b3892310a1e01744d87bb4919fb4 Mon Sep 17 00:00:00 2001 From: chrishavlin Date: Wed, 23 Aug 2023 09:59:45 -0500 Subject: [PATCH 2/4] gh release action --- .github/workflows/create_gh_release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/create_gh_release.yml diff --git a/.github/workflows/create_gh_release.yml b/.github/workflows/create_gh_release.yml new file mode 100644 index 0000000..0fdecf9 --- /dev/null +++ b/.github/workflows/create_gh_release.yml @@ -0,0 +1,22 @@ +on: + push: + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Create Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + draft: true + tag: ${{ github.ref }} + prerelease: false + name: Release ${{ github.ref }} From 65163e0c6139fd7dd0fb520819687164fb20af37 Mon Sep 17 00:00:00 2001 From: chrishavlin Date: Wed, 23 Aug 2023 10:02:45 -0500 Subject: [PATCH 3/4] turn off the auto-fix --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2188287..243b5ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +ci: + autofix_prs: false + autoupdate_schedule: weekly + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 From 9c2b3047ad3afa5eb2ff8f51e799cea82910cfa1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:04:59 +0000 Subject: [PATCH 4/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/ISSUE_TEMPLATE/bug-report.md | 4 ++-- setup.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 4120289..cd0b999 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -11,10 +11,10 @@ assignees: '' Please provide a brief overview of what the bug is. **Reproduction** -If using `yt-napari` from a notebook, please provide the code you run when encountering the bug. +If using `yt-napari` from a notebook, please provide the code you run when encountering the bug. ```python -code to reproduce +code to reproduce ... ... ``` diff --git a/setup.py b/setup.py index 8e5c544..8263fdd 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ # -*- coding: utf-8 -*- from setuptools import setup - # https://github.com/pypa/setuptools_scm use_scm = {"write_to": "src/yt_napari/_version.py"} setup(use_scm_version=use_scm)