Skip to content

Commit 7993e27

Browse files
Merge pull request #3 from Jaseci-Labs/dev
github setup files
2 parents 41b99e0 + b4be683 commit 7993e27

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
exclude = fixtures, __jac_gen__, build, examples
3+
plugins = flake8_import_order, flake8_docstrings, flake8_comprehensions, flake8_bugbear, flake8_annotations, pep8_naming, flake8_simplify
4+
max-line-length = 120
5+
ignore = E203, W503, ANN101, ANN102

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
args: [--allow-multiple-documents]
7+
- id: check-json
8+
- id: trailing-whitespace
9+
- repo: https://github.com/psf/black
10+
rev: 23.3.0
11+
hooks:
12+
- id: black
13+
- repo: https://github.com/PyCQA/flake8
14+
rev: 6.1.0
15+
hooks:
16+
- id: flake8
17+
additional_dependencies: [pep8-naming, flake8_import_order, flake8_docstrings, flake8_comprehensions, flake8_bugbear, flake8_annotations, flake8_simplify]
18+
exclude: "examples"

py.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[mypy]
2+
exclude = (__jac_gen__|sly|tests|support)
3+
strict = True

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
name="jackernel",
99
version=VERSION,
1010
packages=find_packages(include=["jackernel", "jackernel.*"]),
11-
install_requires=["ipykernel==6.19.2", "pygments==2.10.0", "jaclang"],
11+
install_requires=[
12+
"ipykernel==6.19.2",
13+
"pygments==2.10.0",
14+
"jaclang",
15+
"pytest==7.4.2",
16+
],
1217
package_data={
1318
"": ["*.ini", "*.jac", "*.py"],
1419
},

0 commit comments

Comments
 (0)