-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
274 changed files
with
34,642 additions
and
1,550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
[run] | ||
omit = *tests*/*,*__init__.py | ||
omit = *tests*/*,*__init__.py,weaviate/proto/** | ||
|
||
|
||
[report] | ||
omit = *tests*/*,*__init__.py | ||
omit = *tests*/*,*__init__.py | ||
exclude_lines = | ||
pragma: not covered | ||
@overload | ||
@abstractmethod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
exclude = .git, venv, .venv, .pytest_cache, dist, .idea, docs/conf.py, weaviate/proto/**/*.py | ||
ignore = E203, E266, E501, E731, W503 | ||
exclude = .git, venv, .venv, .pytest_cache, dist, .idea, docs/conf.py, weaviate/collections/orm.py, weaviate/collections/classes/orm.py, weaviate/proto/**/*.py | ||
ignore = D100, D104, D105, D107, E203, E266, E501, E731, W503 | ||
|
||
# D100: Missing docstring in public module | ||
# D104: Missing docstring in public package | ||
# D105: Missing docstring in magic method | ||
# D107: Missing docstring in __init__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,10 @@ nohup.out | |
.coverage | ||
coverage.xml | ||
.pytest_cache | ||
.mypy_cache | ||
|
||
image.png | ||
.vscode/ | ||
scratch/ | ||
scratch/ | ||
|
||
*-test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,52 @@ | ||
exclude: ^proto/ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
name: linting | ||
additional_dependencies: [ | ||
'flake8-bugbear==22.10.27', | ||
'flake8-comprehensions==3.10.1', | ||
'flake8-builtins==2.0.1' | ||
] | ||
- id: flake8 | ||
name: docstrings | ||
additional_dependencies: [ | ||
'flake8-docstrings==1.7.0' | ||
] | ||
files: '^weaviate/collections' | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: ./run-mypy.sh | ||
language: python | ||
language_version: "3.11" | ||
# use require_serial so that script | ||
# is only called once per commit | ||
require_serial: true | ||
# Print the number of files as a sanity-check | ||
verbose: true | ||
verbose: true | ||
|
||
- repo: local | ||
hooks: | ||
- id: pyright | ||
name: pyright | ||
entry: pyright | ||
language: node | ||
pass_filenames: false | ||
types: [python] | ||
additional_dependencies: [[email protected]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.