mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 10:17:23 -05:00
* Initial setup. This does a few things: - Adds some placeholders following the Diátaxis framework (https://diataxis.fr) - Sets up Sphinx with MyST parser for Markdown in addition to rST. - Uses the well-known PyData Sphinx theme. - Moves some already existing Markdown files into the docs directory. - Sets up the initial doc review GitHub action to auto-deploy to GitHub pages. * Activate conda env. * Remove custom action. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Make the dir. * Push directly * Add readthedocs config. * Disable GitHub pages deployment for now. * Add release and latest workflows as well. * Make clear that this is work in progress. * Made docs merge ready, added What is PyScript section with example. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Replace `on:tags:` with `on:create:` The existing trigger is apparently not in the GHA spec * Pretty format YAML * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add s3 sync and permissions * Leave status message in PR. * Redirect from docs.pyscript.net/ to docs.pyscript.net/latest/ * Delete latest directory before deployment. * Update review and release workflows, too. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Allow access to S3 for review and release doc workflow. * Fix name of workflow. * Bump up Python version. * Because YAML. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert move to 3.10. * Fix sitemap. * Remove status settgin from release and latest build. * Comment out cleanup. * Add write permissions for statuses. * More permissions? * Fix artifact name. * Use appropriate concurrency. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * .zip not needed * Align name of workflows with CI workflows. * Add checks permission. * Set a notice instead. * Move to sphinx-design. * Add sphinx-autobuild. * Use frontmatter more. * Add section for mdformat but disable it for now. See https://github.com/executablebooks/mdformat-myst/pull/9 for more details. * Fix fencing. * Actually using html renderer. * Revert moving governance files. * Use full URLs for governance docs. * Added warning. * Fix copyright and author. * Another minor fix. * Use GitHub Action summary instead of notice. * Fix variable name. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Matt Kramer <mkramer@anaconda.com> Co-authored-by: ximena9201 <ximenandrea.ro@gmail.com>
89 lines
2.4 KiB
YAML
89 lines
2.4 KiB
YAML
# This is the configuration for pre-commit, a local framework for managing pre-commit hooks
|
|
# Check out the docs at: https://pre-commit.com/
|
|
|
|
default_stages: [commit]
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.2.0
|
|
hooks:
|
|
- id: check-builtin-literals
|
|
- id: check-case-conflict
|
|
- id: check-docstring-first
|
|
- id: check-executables-have-shebangs
|
|
- id: check-json
|
|
exclude: tsconfig.json
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
exclude: \.min\.js$
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/PyCQA/bandit
|
|
rev: 1.7.4
|
|
hooks:
|
|
- id: bandit
|
|
args:
|
|
- --skip=B201
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.3.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.1.0
|
|
hooks:
|
|
- id: codespell # See 'setup.cfg' for args
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 4.0.1
|
|
hooks:
|
|
- id: flake8 # See 'setup.cfg' for args
|
|
additional_dependencies: [flake8-bugbear, flake8-comprehensions]
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
args: [--profile, black]
|
|
|
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: pretty-format-yaml
|
|
args: [--autofix, --indent, '4']
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v2.32.1
|
|
hooks:
|
|
- id: pyupgrade
|
|
args:
|
|
- --py310-plus
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
rev: v8.15.0
|
|
hooks:
|
|
- id: eslint
|
|
files: pyscriptjs/src/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
|
|
types: [file]
|
|
additional_dependencies:
|
|
- eslint
|
|
- eslint-plugin-svelte3
|
|
- typescript
|
|
- '@typescript-eslint/eslint-plugin'
|
|
- '@typescript-eslint/parser'
|
|
|
|
# Commented out until mdformat-myst supports custom extensions
|
|
# See https://github.com/executablebooks/mdformat-myst/pull/9
|
|
# - repo: https://github.com/executablebooks/mdformat
|
|
# rev: 0.7.14 # Use the ref you want to point at
|
|
# hooks:
|
|
# - id: mdformat
|
|
# additional_dependencies:
|
|
# - mdformat-gfm
|
|
# - mdformat-myst
|
|
# - mdformat-black
|