From 4c4d8ee4c374b5ba20d31e150f2be8c782f6bde4 Mon Sep 17 00:00:00 2001 From: aandres3 Date: Wed, 30 Oct 2024 13:55:05 +0000 Subject: [PATCH] Add toml format --- .pre-commit-config.yaml | 7 +++++ CHANGELOG.md | 1 + pyproject.toml | 69 ++++++++++++++++++++--------------------- 3 files changed, 42 insertions(+), 35 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f58e06c..cd11a80 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,3 +21,10 @@ repos: additional_dependencies: - ".[toml]" args: [--config=pyproject.toml] + - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks + rev: v2.14.0 + hooks: + - id: pretty-format-toml + files: "^.*.toml" + args: + - "--autofix" diff --git a/CHANGELOG.md b/CHANGELOG.md index c605e3e..384b617 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added +- Add toml format ([a8d573f](https://github.com/tradewelltech/protarrow/commit/a8d573f1d15c64490a3de2cb2c89bc762ef0b7c3) by aandres3). - Add ignore for type check ([08f591f](https://github.com/tradewelltech/protarrow/commit/08f591f5625f0cf3bd43ba2f61cb3c0a1795c0e2) by aandres3). ## [v0.7.0](https://github.com/tradewelltech/protarrow/releases/tag/v0.7.0) - 2024-10-14 diff --git a/pyproject.toml b/pyproject.toml index ceba631..b601a4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,27 +1,43 @@ +[build-system] +build-backend = "poetry_dynamic_versioning.backend" +requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] + +[tool.bandit] +skips = ["B101", "B311"] + +[tool.black] +exclude = "venv/|tox/|protarrow_protos/.*" +target-version = ["py39"] + +[tool.isort] +known_first_party = ["protarrow", "protarrow_protos"] +profile = "black" +skip = [".gitignore"] +src_paths = ["protarrow", "tests"] [tool.poetry] -name = "protarrow" -version = "0.0.0" -description = "Convert from protobuf to arrow and back" authors = ["Tradewell Tech "] +classifiers = [ + "Development Status :: 4 - Beta", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12" +] +description = "Convert from protobuf to arrow and back" +documentation = "https://protarrow.readthedocs.io/en/latest/" +keywords = ["apache-arrow", "protobuf", "data"] +license = "Apache-2.0" maintainers = ["0x26res <0x26res@gmail.com>"] +name = "protarrow" packages = [ - { include = "protarrow" } + {include = "protarrow"} ] readme = "README.md" -license = "Apache-2.0" repository = "https://github.com/tradewelltech/protarrow" -documentation = "https://protarrow.readthedocs.io/en/latest/" -classifiers = [ - "Development Status :: 4 - Beta", - "License :: OSI Approved :: Apache Software License", - "Natural Language :: English", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", -] -keywords = ["apache-arrow", "protobuf", "data"] +version = "0.0.0" [tool.poetry.dependencies] googleapis-common-protos = ">=1.53.0" @@ -40,7 +56,7 @@ inflection = ">=0.5.1" isort = ">=5.10.1" mkdocs = ">=1.4.2" mkdocs-material = ">=9.0.3" -mkdocstrings = { version = ">=0.21.2", extras = ["python"] } +mkdocstrings = {version = ">=0.21.2", extras = ["python"]} pip-tools = ">=6.12.1" pre-commit = ">=2.20.0" pylint = ">=2.15.0" @@ -48,29 +64,12 @@ pytest = ">=7.2.0" pytest-benchmark = ">=4.0.0" pytest-xdist = ">=3.1.0" -[build-system] -requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] -build-backend = "poetry_dynamic_versioning.backend" - -[tool.black] -target-version = ["py39"] -exclude = "venv/|tox/|protarrow_protos/.*" - -[tool.isort] -profile = "black" -src_paths = ["protarrow", "tests"] -known_first_party = ["protarrow", "protarrow_protos" ] -skip = [".gitignore"] - -[tool.bandit] -skips = ["B101", "B311"] - [tool.poetry-dynamic-versioning] enable = true [tool.poetry-dynamic-versioning.substitution] files = ["*/__init__.py"] -folders = [ {path = "protarrow"}] +folders = [{path = "protarrow"}] [tool.ruff] line-length = 88