feat: move project from poetry to pdm, rewrite from scratch and add

basic `notebooks`, `edit` and `show` commands
This commit is contained in:
cătălin 2023-04-01 12:37:10 +02:00
commit d3ad87211e
Signed by: catalin
GPG key ID: 686088EF78EE4083
35 changed files with 1309 additions and 1434 deletions

View file

@ -1,9 +1,11 @@
default_language_version:
python: python3.10
files: ^halig|tests$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
@ -18,52 +20,34 @@ repos:
- id: debug-statements
- id: mixed-line-ending
args: [ --fix=lf ]
- id: detect-private-key
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.260
hooks:
- id: python-check-blanket-noqa
- id: python-use-type-annotations
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 23.3.0
hooks:
- id: black
pass_filenames: false
args:
- "halig"
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: local
hooks:
- id: flake8
name: flake8 except __init__.py
exclude: /__init__\.py$
additional_dependencies: [ "flake8-bugbear==19.8.0" ]
- id: flake8
name: flake8 only __init__.py
args: [ "--extend-ignore=F401" ] # ignore unused imports in __init__.py
files: /__init__\.py$
additional_dependencies: [ "flake8-bugbear==19.8.0" ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.961'
hooks:
- id: mypy
files: ^halig/
additional_dependencies:
- types-deprecated==1.2.8
- types-pyyaml==6.0.11
name: mypy
entry: pdm run mypy
language: system
types: [ python ]
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
files: ^darkroot/
args: [ -r ]
- id: pyright
name: pyright
entry: pdm run pyright
language: system
types: [ python ]