Skip to content

Commit

Permalink
Enable via pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy committed Jan 27, 2025
1 parent 1e31aae commit e5826b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
files: 'pyogrio\/'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.2"
hooks:
- id: ruff-format
- id: ruff
- id: ruff
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.6
hooks:
- id: cython-lint
- id: double-quote-cython-strings
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ PYOGRIO_PACKAGE_DATA = 1
GDAL_DATA = "$VCPKG_INSTALL/share/gdal"
PROJ_LIB = "$VCPKG_INSTALL/share/proj"

[tool.cython-lint]
ignore = ["E265", "E222"]

[tool.versioneer]
VCS = "git"
style = "pep440"
Expand All @@ -95,7 +98,7 @@ tag_prefix = "v"

[tool.ruff]
line-length = 88
extend-exclude = ["doc/*", "benchmarks/*", "pyogrio/_version.py"]
extend-exclude = ["doc/*", "benchmarks/*", "pyogrio/_version.py", "conf.py", "setup.py"]

[tool.ruff.lint]
select = [
Expand Down

0 comments on commit e5826b0

Please sign in to comment.