Skip to content

Commit

Permalink
Merge pull request #54 from wesky93/viridianforge/lint-and-format-all…
Browse files Browse the repository at this point in the history
…-the-things

Reformat all the things
  • Loading branch information
ViridianForge authored Dec 15, 2023
2 parents 5b03590 + f63cd03 commit 5dfae92
Show file tree
Hide file tree
Showing 14 changed files with 553 additions and 237 deletions.
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

0 comments on commit 5dfae92

Please sign in to comment.