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

Update deps, pre-commit hooks, & actions, add Prettier and sync w/other repos #217

Merged
merged 12 commits into from
Nov 7, 2023
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
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"
}
}
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Standard gitattributes config

# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf


# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.

Expand Down Expand Up @@ -32,7 +33,7 @@
*.Rmd text
*.rnw text
*.Rnw text
*.sh text
*.sh text eol=lf
*.zsh text eol=lf

# Documentation
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Build the site and deploy it to GitHub pages
name: Build

on: # yamllint disable-line rule:truthy
push:
branches:
- master
- main
- '*.*'
- 'staging*'
pull_request:
branches:
- master
- main
- '*.*'
- 'staging*'

jobs:
build:
name: Build and Deploy

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
shell: bash
run: ./ci/install.sh
- name: List dependencies
shell: bash
run: pip list
- 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: ./website-lektor-icon-build
CLEAN: true # Remove deleted files from the deploy branch
35 changes: 0 additions & 35 deletions .github/workflows/deploy.yaml

This file was deleted.

12 changes: 3 additions & 9 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout website repository
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install baseline dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Install development dependencies
run: python -m pip install --upgrade -r requirements-dev.txt
- name: Run main Pre-Commit hooks
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
35 changes: 0 additions & 35 deletions .github/workflows/test.yaml

This file was deleted.

58 changes: 33 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Standard gitignore list

# Archive files
*.7z
*.bz2
*.gz
*.zip
*.lzma
*.lzma2
*.tar
*.xz
*.zip

# Temporary / backup files
*.bak
*.swp
*.tmp
*.temp

Expand All @@ -24,26 +29,26 @@ __pycache__/
*.so

# Distribution / packaging
*.egg
*.egg-info/
.eggs/
.installed.cfg
.Python
bin/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
MANIFEST
parts/
pip-wheel-metadata/
sdist/
share/python-wheels/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -56,21 +61,20 @@ pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.coverage
.coverage.*
.hypothesis/
.nox/
.pytest_cache/
.tox/
coverage.xml
htmlcov/
nosetests.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log
Expand Down Expand Up @@ -102,14 +106,7 @@ ipython_config.py
# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
# Celery beat schedule file
celerybeat-schedule

# SageMath parsed files
Expand All @@ -119,8 +116,8 @@ celerybeat-schedule
.env
.venv
env/
venv/
ENV/
venv/
VENV/
env.bak/
venv.bak/
Expand Down Expand Up @@ -161,3 +158,14 @@ nppBackup/

# VSCode files
.vscode/

# Kate
.directory
.swp.*
*.swp

# PyPi configuration
.pypirc

# Other files
toread.md
Loading