Skip to content

Commit

Permalink
chore: add taplo config
Browse files Browse the repository at this point in the history
  • Loading branch information
zen-xu committed Aug 9, 2024
1 parent 0be9264 commit 529ad58
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint

on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize

jobs:
taplo-lint:
name: taplo lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: uncenter/setup-taplo@v1
with:
version: "0.9.3"
- run: taplo fmt --check
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,30 @@ classifiers = [
requires-python = ">=3.8,<4"

[project.urls]
homepage = "https://github.com/zen-xu/pyarrow-stubs"
homepage = "https://github.com/zen-xu/pyarrow-stubs"
repository = "https://github.com/zen-xu/pyarrow-stubs.git"
issues = "https://github.com/zen-xu/pyarrow-stubs/issues"
issues = "https://github.com/zen-xu/pyarrow-stubs/issues"

[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
requires = ["hatchling"]

[tool.hatch.build.targets.wheel]
packages = ["pyarrow-stubs"]

[tool.pixi.project]
channels = ["conda-forge"]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]

[tool.pixi.pypi-dependencies]
pyarrow-stubs = { path = ".", editable = true }
pre-commit = "*"
mypy = ">=1.11"
ruff = ">=0.5"
pre-commit = "*"
mypy = ">=1.11"
ruff = ">=0.5"

[tool.ruff]
fix = true
line-length = 99
fix = true
line-length = 99
target-version = "py38"

[tool.ruff.lint]
Expand All @@ -52,7 +52,7 @@ select = [
]

[tool.ruff.lint.isort]
force-single-line = true
force-single-line = true
lines-after-imports = 2
lines-between-types = 1

Expand All @@ -61,6 +61,6 @@ docstring-code-format = true

[tool.mypy]
explicit_package_bases = true
files = "pyarrow-stubs"
namespace_packages = true
show_error_codes = true
files = "pyarrow-stubs"
namespace_packages = true
show_error_codes = true
5 changes: 5 additions & 0 deletions taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include = ["*.toml"]

[formatting]
align_entries = true
inline_table_expand = false

0 comments on commit 529ad58

Please sign in to comment.