Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat all the things #54

Merged
merged 3 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- name: Lint with flake8
- name: Lint and check formatting with ruff
run: |
flake8 . --count --show-source --statistics
ruff check src/grpc_requests/*.py src/tests/*.py --statistics
ruff format src/grpc_requests/*.py src/tests/*.py --check
- name: Test with pytest
run: |
pytest --cov-report=xml --cov=src/grpc_requests
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# grpc_requests

[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https:/astral-sh/ruff)
[![PyPI](https://img.shields.io/pypi/v/grpc-requests?style=flat-square)](https://pypi.org/project/grpc-requests)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/grpc-requests?style=flat-square)](https://pypi.org/project/grpc-requests)
[![PyPI download month](https://img.shields.io/pypi/dm/grpc-requests?style=flat-square)](https://pypi.org/project/grpc-requests)
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pytest-cov>=4.0.0
pytest-asyncio>=0.15.1
aiounittest>=1.4.2
grpc-interceptor>=0.15.4
ruff>=0.1.7
8 changes: 7 additions & 1 deletion src/grpc_requests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from .aio import AsyncClient, ReflectionAsyncClient, StubAsyncClient, get_by_endpoint as async_get_by_endpoint
# ruff: noqa: F401
from .aio import (
AsyncClient,
ReflectionAsyncClient,
StubAsyncClient,
get_by_endpoint as async_get_by_endpoint,
)
from .client import Client, ReflectionClient, StubClient, get_by_endpoint

__version__ = "0.1.13"
Loading