Skip to content

Commit

Permalink
đź‘· update build system
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiladhia committed Feb 28, 2024
1 parent 5245da2 commit 3a205ca
Show file tree
Hide file tree
Showing 53 changed files with 1,581 additions and 1,570 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.ACTION_TOKEN }}

- name: Cache pre-commit paths
uses: actions/cache@v2
with:
Expand All @@ -29,16 +25,4 @@ jobs:
run: python -m pip install --upgrade pre-commit

- name: Run Pre-commit
run: pre-commit run --all-files || (exit 0)

- name: Commit changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -am "Ran pre-commit: Reformatting & Linting" || (exit 0)
- name: Run Pre-commit Checks
run: pre-commit run --all-files --show-diff-on-failure

- name: Push changes
run: git push
run: pre-commit run --all-files
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install build twine
- name: Build and publish
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
python -m build -w
twine upload -u __token__ dist/*
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
Expand Down
40 changes: 21 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,31 @@ repos:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-docstring-first
- id: double-quote-string-fixer
- id: requirements-txt-fixer

- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931
- id: isort

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.2.2
hooks:
- id: mypy
files: ^nbmanips/
# exclude utils.py for now
exclude: 'nbmanips/notebook/utils\.py$'
args: [--no-strict-optional, --ignore-missing-imports, --follow-imports, silent]
- id: ruff-format
types_or: [ python, pyi, jupyter ]

- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]

#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.8.0
# hooks:
# - id: mypy
# args: [--no-strict-optional, --ignore-missing-imports, --follow-imports, silent]
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

1 change: 0 additions & 1 deletion nbmanips/VERSION

This file was deleted.

12 changes: 0 additions & 12 deletions nbmanips/__init__.py

This file was deleted.

10 changes: 0 additions & 10 deletions nbmanips/cell/__init__.py

This file was deleted.

216 changes: 0 additions & 216 deletions nbmanips/cli/transform.py

This file was deleted.

0 comments on commit 3a205ca

Please sign in to comment.