diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index d490520a..835cd41e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -49,7 +49,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - config: + config: - name: x86 Mac runner: macos-13 - name: Arm Mac @@ -74,7 +74,7 @@ jobs: run: | pip install -e .[tests] pip install tantivy@git+https://github.com/quickwit-oss/tantivy-py#164adc87e1a033117001cf70e38c82a53014d985 - pip install pytest pytest-mock black + pip install pytest pytest-mock - name: Run tests run: pytest -m "not slow" -x -v --durations=30 tests pydantic1x: diff --git a/python/README.md b/python/README.md index faad44d4..290447cd 100644 --- a/python/README.md +++ b/python/README.md @@ -45,8 +45,8 @@ pytest To run linter and automatically fix all errors: ```bash -black . -isort . +ruff format python +ruff --fix python ``` If any packages are missing, install them with: @@ -82,4 +82,4 @@ pip install tantivy To run the unit tests: ```bash pytest -``` \ No newline at end of file +``` diff --git a/python/pyproject.toml b/python/pyproject.toml index 9b90f698..9a8bff72 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -49,7 +49,7 @@ repository = "https://github.com/lancedb/lancedb" [project.optional-dependencies] tests = ["aiohttp", "pandas>=1.4", "pytest", "pytest-mock", "pytest-asyncio", "duckdb", "pytz"] -dev = ["ruff", "pre-commit", "black"] +dev = ["ruff", "pre-commit"] docs = ["mkdocs", "mkdocs-jupyter", "mkdocs-material", "mkdocstrings[python]"] clip = ["torch", "pillow", "open-clip"] embeddings = ["openai>=1.6.1", "sentence-transformers", "torch", "pillow", "open-clip-torch", "cohere", "InstructorEmbedding"] @@ -61,9 +61,6 @@ lancedb = "lancedb.cli.cli:cli" requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" -[tool.isort] -profile = "black" - [tool.ruff] select = ["F", "E", "W", "I", "G", "TCH", "PERF"]