Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c8bfdf

Browse files
authored
Setup the matplotlib-pyodide package (#1)
1 parent 0868137 commit 8c8bfdf

File tree

12 files changed

+571
-42
lines changed

12 files changed

+571
-42
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
extend-ignore = E203, E402, E501, E731, E741, B950
3+
select = C,E,F,W,B,B9
4+
extend-immutable-calls = typer.Argument, typer.Option

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: main
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: main-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-python@v3
18+
with:
19+
python-version: 3.10.2
20+
- uses: pre-commit/[email protected]
21+
22+
deploy:
23+
runs-on: ubuntu-latest
24+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
25+
environment: PyPi-deploy
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- uses: actions/setup-python@v3
30+
with:
31+
python-version: 3.10.2
32+
- name: Install requirements and build wheel
33+
shell: bash -l {0}
34+
run: |
35+
python -m pip install build twine
36+
python -m build .
37+
- name: Publish package
38+
uses: pypa/gh-action-pypi-publish@release/v1
39+
with:
40+
user: __token__
41+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-publish.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
default_language_version:
2+
python: "3.10"
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: "v4.3.0"
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-case-conflict
9+
- id: check-merge-conflict
10+
- id: check-symlinks
11+
- id: check-yaml
12+
exclude: .clang-format
13+
- id: debug-statements
14+
- id: end-of-file-fixer
15+
- id: mixed-line-ending
16+
- id: trailing-whitespace
17+
18+
- repo: https://github.com/PyCQA/isort
19+
rev: "5.10.1"
20+
hooks:
21+
- id: isort
22+
23+
- repo: https://github.com/asottile/pyupgrade
24+
rev: "v2.34.0"
25+
hooks:
26+
- id: pyupgrade
27+
args: ["--py310-plus"]
28+
29+
- repo: https://github.com/hadialqattan/pycln
30+
rev: "v1.3.5"
31+
hooks:
32+
- id: pycln
33+
args: [--config=pyproject.toml]
34+
stages: [manual]
35+
36+
- repo: https://github.com/psf/black
37+
rev: "22.6.0"
38+
hooks:
39+
- id: black
40+
41+
- repo: https://github.com/pycqa/flake8
42+
rev: "4.0.1"
43+
hooks:
44+
- id: flake8
45+
additional_dependencies: [flake8-bugbear]
46+
47+
- repo: https://github.com/pre-commit/mirrors-mypy
48+
rev: "v0.961"
49+
hooks:
50+
- id: mypy
51+
args: []
52+
additional_dependencies: &mypy-deps
53+
- pytest
54+
55+
56+
- repo: https://github.com/codespell-project/codespell
57+
rev: "v2.1.0"
58+
hooks:
59+
- id: codespell
60+
args: ["-L", "te,slowy,aray,ba,nd,classs,crate,feld,lits"]

0 commit comments

Comments
 (0)