Skip to content

Commit 5d5fac5

Browse files
committed
add poetry and other config files
1 parent 3097575 commit 5d5fac5

File tree

6 files changed

+2043
-1
lines changed

6 files changed

+2043
-1
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 100
3+
extend-ignore = E203, W503

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,9 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
.idea/
161+
.python-version
162+
163+
.tzapignore
164+
.tzapinclude
165+
.tzap-data

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CMD:=poetry run
2+
3+
all: test lint
4+
5+
lint:
6+
poetry check
7+
$(CMD) isort --check .
8+
$(CMD) black --check .
9+
$(CMD) flake8
10+
$(CMD) mypy
11+
12+
test:
13+
$(CMD) pytest

mypy.ini

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[mypy]
2+
# equivalent to mypy --strict
3+
warn_unused_configs = True
4+
disallow_any_generics = True
5+
disallow_subclassing_any = True
6+
disallow_untyped_calls = True
7+
disallow_untyped_defs = True
8+
disallow_incomplete_defs = True
9+
check_untyped_defs = True
10+
disallow_untyped_decorators = True
11+
no_implicit_optional = True
12+
warn_redundant_casts = True
13+
warn_unused_ignores = True
14+
warn_return_any = True
15+
no_implicit_reexport = True
16+
strict_equality = True
17+
18+
# Other settings
19+
allow_redefinition = False
20+
disallow_any_explicit = False
21+
ignore_errors = False
22+
local_partial_types = True
23+
strict_optional = True
24+
warn_no_return = True
25+
warn_unreachable = True
26+
show_error_codes = True
27+
28+
files =
29+
vector_embedding_server

0 commit comments

Comments
 (0)