Skip to content

Commit

Permalink
CI fixes: update precommit | lock grpcio, protobuf versions (#259)
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Coble <[email protected]>
  • Loading branch information
MScatolin and Kyle Coble authored Nov 12, 2024
1 parent 5118d5e commit c430439
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down Expand Up @@ -88,8 +88,12 @@ repos:
- id: ruff
exclude: (thirdparty|cpp/sophus)/.*$
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5

# TODO: Set ``rev: v1.7.6`` once the release is available.
# See: https://github.com/PyCQA/docformatter/issues/293
- repo: https://github.com/myint/docformatter
# rev: v1.7.6
rev: "eb1df347edd128b30cd3368dddc3aa65edcfac38"
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=115, --wrap-descriptions=120]
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
requires = [
"setuptools",
"farm-ng-package",
"pybind11"
"pybind11",
"wheel",
"grpcio==1.64.1",
"grpcio-tools==1.64.1",
]
build-backend = "setuptools.build_meta"
31 changes: 11 additions & 20 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,43 +21,34 @@ classifiers =

[options]
python_requires = >=3.8
setup_requires =
wheel
install_requires =
farm_ng_package
protobuf
grpcio
protobuf==5.27.2
grpcio==1.64.1
psutil
numpy

tests_require =
pytest
pytest-runner
pytest-mypy
pylint-protobuf
types-protobuf
anyio

test_suite = tests

package_dir =
= py
packages =
farm_ng
farm_ng.core

[options.extras_require]
dev =
test =
pytest
pytest-mypy
pytest-runner
pylint-protobuf
anyio
types-protobuf
grpcio-tools==1.64.1

dev =
%(test)s
pre-commit
mypy
types-protobuf
pylint
grpcio-tools
mypy-protobuf
pylint-protobuf
anyio

[mypy]
files = py/farm_ng, py/tests
Expand Down

0 comments on commit c430439

Please sign in to comment.