Skip to content

Commit

Permalink
Upgrade infra, CIs and pre-commit checks & sync with website (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach authored Jan 29, 2024
2 parents 0aa81d4 + 1a7520e commit 678f4e9
Show file tree
Hide file tree
Showing 30 changed files with 418 additions and 378 deletions.
13 changes: 10 additions & 3 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Browsers that we support

>0.25%
last 3 versions
defaults
not IE 11
not last 0 OperaMini version
not last 0 OperaMobile version
not Android < 5
not Edge < 19
not KaiOS < 3
not OperaMini all
not OperaMobile < 13
not QQAndroid >= 0
not UCAndroid >= 0
not dead
3 changes: 2 additions & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ builtin = clear,rare,informal,code,names
check-filenames =
check-hidden =
enable-colors =
ignore-words-list = sur
ignore-words-list = jupyter,lite,sur
quiet-level = 32
skip = .codespellrc,.gitattributes
46 changes: 0 additions & 46 deletions .csslintrc

This file was deleted.

7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
"es2021": true,
"jquery": true
},
"extends": ["standard"],
"extends": [
"standard",
"prettier"
],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-var": 0
"no-var": "off"
}
}
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[flake8]
count = True
ignore = E123, W504
max-doc-length = 79
max-complexity = 15
jobs = 1
16 changes: 10 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Build the docs to test that they work correctly
# Based on https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# Build the site and deploy it to GitHub pages
name: Build

on: # yamllint disable-line rule:truthy
Expand All @@ -19,13 +17,13 @@ on: # yamllint disable-line rule:truthy

jobs:
build:
name: Build Docs
name: Build and Deploy

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
Expand All @@ -38,6 +36,12 @@ jobs:
- name: List dependencies
shell: bash
run: pip list
- name: Build with Sphinx
- name: Build site
shell: bash
run: ./ci/build.sh
- name: Deploy to GitHub Pages
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
FOLDER: ./doc/_build/html
CLEAN: true # Remove deleted files from the deploy branch
3 changes: 1 addition & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Build the docs and run checks on them
# Based on https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Check

Expand All @@ -25,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/deploy.yaml

This file was deleted.

10 changes: 2 additions & 8 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
shell: bash
run: ./ci/install.sh
- name: List dependencies
shell: bash
run: pip list
- name: Run Pre-Commit hooks
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
Loading

0 comments on commit 678f4e9

Please sign in to comment.