Skip to content

Commit 95bc751

Browse files
committed
Add comprehensive tests for ArcadeDB Python bindings
- Implement Gremlin query and traversal tests in `test_gremlin.py` - Add data import tests for CSV, JSON, and JSONL formats in `test_importer.py` - Create server-related tests including server creation, database operations, and custom configurations in `test_server.py` - Introduce tests for server access patterns and thread safety in `test_server_patterns.py` - Add a script to write version information to `_version.py` during build Add GitHub Actions workflow for deploying MkDocs to GitHub Pages Remove GitHub Actions workflow for deploying MkDocs to GitHub Pages feat: add support for Python-specific patch versioning in version extraction fix: update permissions for GitHub Actions and enhance version extraction regex Add Python example for ArcadeDB usage and update documentation - Created a new example script `basic.py` demonstrating database creation, schema definition, data insertion, and querying using ArcadeDB Python bindings. - Added a `.gitignore` file in the examples directory to exclude test databases. - Updated `mkdocs.yml` to reflect changes in the documentation structure and added links to new testing documentation. - Revised the README in the tests directory to provide a concise overview of the test suite, including quick stats, test categories, and running instructions. feat: enhance Python release workflows with tag validation and testing Fix python docs Refactor Docker build process for Python bindings and enhance version extraction Enhance Python test suite for ArcadeDB bindings - Updated README.md to reflect the addition of new tests, increasing total from 41 to 42. - Improved temporary directory creation in conftest.py with a new factory fixture for better cleanup management. - Refactored cleanup_db fixture in test_concurrency.py to create temporary databases with unique prefixes. - Enhanced server and studio tests in test_server.py with detailed comments on Java API usage and server operations. - Expanded test_server_patterns.py to include HTTP API access pattern tests, demonstrating remote access capabilities and performance comparisons with Java API. - Increased the complexity of performance tests in test_embedded_performance_comparison.py by adding more realistic data and queries. Update Python bindings test workflow and improve server documentation formatting Refactor descriptions in Dockerfile and pyproject.toml to use "bindings" terminology; update module docstring for consistency Update GitHub Actions to use latest action versions for Python and Docker setup Update GitHub Actions to use specific commit version for PyPI publish action Clean up whitespace in write_version.py for improved readability Refactor test files to remove unnecessary whitespace and improve readability - Cleaned up whitespace in test_gremlin.py, test_importer.py, test_server.py, and test_server_patterns.py. - Ensured consistent formatting across test files for better maintainability. - No functional changes were made; only formatting adjustments to enhance code clarity. Fix formatting inconsistencies and ensure newline at end of files in documentation and test package Ensure newline at end of file in .gitignore for consistency Remove trailing whitespace from documentation and test files for improved consistency and readability Clean up whitespace in build-all.sh for improved readability
1 parent ffbeaf7 commit 95bc751

22 files changed

Lines changed: 664 additions & 677 deletions

.pre-commit-config.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,37 @@ repos:
2121
exclude: ^(k8s/|bindings/python/mkdocs\.yml$)
2222
- id: check-json
2323
- id: check-xml
24+
- repo: https://github.com/psf/black
25+
rev: 24.10.0
26+
hooks:
27+
- id: black
28+
language_version: python3
29+
files: ^bindings/python/.*\.py$
30+
- repo: https://github.com/pycqa/isort
31+
rev: 5.13.2
32+
hooks:
33+
- id: isort
34+
args: ["--profile", "black"]
35+
files: ^bindings/python/.*\.py$
36+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
37+
rev: v2.14.0
38+
hooks:
39+
- id: pretty-format-yaml
40+
args:
41+
- --autofix
42+
- --indent=2
43+
files: ^bindings/python/.*\.ya?ml$
44+
- repo: https://github.com/scop/pre-commit-shfmt
45+
rev: v3.10.0-1
46+
hooks:
47+
- id: shfmt
48+
args: ["-i", "4", "-ci", "-sr", "-w"]
49+
files: ^bindings/python/.*\.sh$
2450
- repo: https://github.com/pre-commit/mirrors-prettier
2551
rev: v3.1.0
2652
hooks:
2753
- id: prettier
28-
types: [ java, xml ]
54+
types: [ java, xml, markdown ]
2955
additional_dependencies:
3056
- prettier@3.1.0
3157
- prettier-plugin-java@2.4.0
@@ -34,3 +60,4 @@ repos:
3460
- --write
3561
- --list-different
3662
- --ignore-unknown
63+
exclude: ^bindings/python/

bindings/python/build-all.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fi
159159
echo ""
160160
echo -e "${CYAN}📦 Built packages:${NC}"
161161
if [ -d "dist" ]; then
162-
ls -lh dist/*.whl 2>/dev/null | awk '{print " " $9 " (" $5 ")"}'
162+
ls -lh dist/*.whl 2> /dev/null | awk '{print " " $9 " (" $5 ")"}'
163163
fi
164164

165165
echo ""

0 commit comments

Comments
 (0)