Skip to content

Commit

Permalink
Version bump to 0.1.2, which has been properly annotated with types
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfernandez committed Jul 26, 2024
1 parent 25d93f2 commit 158227b
Show file tree
Hide file tree
Showing 9 changed files with 899 additions and 139 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.py*env/
.r*/
py*env/
__pycache__
build/
Expand Down
51 changes: 51 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
# This is the last version supporting python 3.7
rev: v4.4.0
hooks:
# This one has been added to fail fast on syntax errors
# before running expensive pylint
- id: check-ast
types_or:
- python
- pyi
exclude: "/(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\..*)/$"
- id: check-yaml
types: [file]
files: \.(yaml|yml)$

- repo: https://github.com/pylint-dev/pylint.git
# This is the last version supporting python 3.7
rev: v2.17.7
hooks:
- id: pylint
alias: mirrorpylint
require_serial: true
types:
- python
exclude: "^[^/]*env/|dev-[^/]*/|docs/"
# entry: env PYTHONPATH=. pylint
args: [-j, "4", --source-roots, .]

- repo: https://github.com/pre-commit/mirrors-mypy.git
# This is the last version supporting python 3.7
rev: v1.4.1
hooks:
- id: mypy
alias: mirrormypy
types_or:
- python
- pyi
exclude: "/(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\..*)/$"
require_serial: true
# entry: env PYTHONPATH=. mypy
args: [--strict, --show-error-codes, --no-warn-unused-ignores, --python-executable, .r/bin/python]

- repo: https://github.com/ambv/black.git
# This is the last version supporting python 3.7
rev: 23.3.0
hooks:
- id: black
exclude: "^[^/]*env/|development-[^/]*/|docs/"
Loading

0 comments on commit 158227b

Please sign in to comment.