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/.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 }} 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/.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 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 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)