Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance cleanup #1881

Merged
merged 4 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .flake8

This file was deleted.

7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Bug report
about: Create a report to help us improve
---
______________________________________________________________________

## name: Bug report about: Create a report to help us improve

<!--- Description --->

Expand Down
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Feature Request
about: Suggest an idea for this project
---
______________________________________________________________________

## name: Feature Request about: Suggest an idea for this project

<!--- Is your feature request related to a problem? What are you trying to achieve? --->

Expand Down
8 changes: 3 additions & 5 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
name: Question
about: If you need some help
labels: question
---
______________________________________________________________________

## name: Question about: If you need some help labels: question

If you have a question, you can file an issue here or
preferably ask on [Jupyter Discourse](https://discourse.jupyter.org/).
19 changes: 0 additions & 19 deletions .github/workflows/check-release.yml

This file was deleted.

45 changes: 26 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ jobs:
include:
- os: "windows-latest"
python-version: "3.8"
- os: "macos-latest"
python-version: "3.9"
- os: "ubuntu-latest"
python-version: "3.10"
python-version: "3.9"
fail-fast: false
steps:
- name: Check out repository code
Expand Down Expand Up @@ -100,26 +98,35 @@ jobs:
conda activate nbconvert
codecov

# Run "pre-commit run --all-files --hook-stage=manual"
pre-commit:
runs-on: ubuntu-20.04
timeout-minutes: 5
check_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- run: pip install -e .
- uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
with:
version_spec: 10.10.10
token: ${{ secrets.GITHUB_TOKEN }}

check_links:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- uses: pre-commit/action@v2.0.0
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
with:
extra_args: --all-files --hook-stage=manual
- name: Help message if pre-commit fail
if: ${{ failure() }}
run: |
echo "You can install pre-commit hooks to automatically run formatting"
echo "on each commit with:"
echo " pre-commit install"
echo "or you can run by hand on staged files with"
echo " pre-commit run"
echo "or after-the-fact on already committed files with"
echo " pre-commit run --all-files --hook-stage=manual"
ignore_links: 'https://ipywidgets.readthedocs.io/en/latest/examples/Output'

pre_commit:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- uses: jupyterlab/maintainer-tools/.github/actions/pre-commit@v1

test_minimum_versions:
name: Test Minimum Versions
Expand Down
19 changes: 13 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ repos:
args: [--profile=black]
stages: [manual]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.1
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.10.1
hooks:
- id: prettier
- id: validate-pyproject
stages: [manual]

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat

- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
Expand All @@ -47,10 +53,11 @@ repos:
args: [--max-line-length=200]
stages: [manual]

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
- repo: https://github.com/john-hen/Flake8-pyproject
rev: 1.0.1
hooks:
- id: flake8
- id: Flake8-pyproject
alias: flake8
additional_dependencies:
["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0"]
stages: [manual]
Expand Down
File renamed without changes.
Loading