Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 86b105a

Browse files
committed
Use poetry as the build tool and apply linting & styling
1 parent d341d99 commit 86b105a

24 files changed

+1506
-288
lines changed

.dockerignore

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

.flake8

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[flake8]
2+
max-line-length = 88
3+
max-complexity = 10
4+
select = C,E,F,W,B,B950
5+
ignore = E211, E999, F401, F821, W503
6+
exclude =
7+
.git,
8+
.direnv,
9+
.tox,
10+
dist
11+
*.egg-info,
12+
.pytest_cache

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,7 @@ dmypy.json
131131
.pyre/
132132

133133
# ide
134-
.idea/
134+
.idea/
135+
136+
.direnv
137+
.envrc

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
12+
- repo: https://github.com/psf/black
13+
rev: 23.11.0
14+
hooks:
15+
- id: black
16+
17+
- repo: https://github.com/PyCQA/flake8
18+
rev: 6.1.0
19+
hooks:
20+
- id: flake8
21+
22+
- repo: https://github.com/pre-commit/mirrors-mypy
23+
rev: v1.7.0
24+
hooks:
25+
- id: mypy
26+
exclude: ^tests/
27+
args: [ --strict ]

Dockerfile

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

Makefile

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

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@ If you don't want requirements on pulling this module from github via
4141
https, simply vendor a copy of the module into your project. You only
4242
need the `neo4j_arrow` directory.
4343

44+
# Build
45+
46+
This project uses [poetry]() as the build tool.
47+
Install `poetry`, define your environment with `poetry env use` and invoke `poetry install` to install dependencies.
48+
49+
To build;
50+
51+
```
52+
poetry build
53+
```
54+
55+
To run tests;
56+
57+
```
58+
poetry run tox
59+
```
60+
4461
# Usage
4562

4663
The client is designed to be lightweight and lazy. As such, you should

example_models/bigquery_model.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
"target_field": "paper"
3939
}
4040
]
41-
}
41+
}

example_models/gcs_model.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
"target_field": "paper"
3939
}
4040
]
41-
}
41+
}

example_models/stackoverflow_model.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
}
5353
}
5454
]
55-
}
55+
}

0 commit comments

Comments
 (0)