Skip to content

Commit cdc4e56

Browse files
committed
lint: fix trailing line endings
1 parent ed610ed commit cdc4e56

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ exclude =
1212
.pytest_cache
1313
.github
1414
_legacy
15-
_internal
15+
_internal

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ make update
1212
```
1313

1414
### gNMI Target Server
15-
You can use the [google/gnxi/gnmi_target](https://github.com/google/gnxi/tree/master/gnmi_target) to test the client
16-
code. You can set this up using the the following commands (assuming you have ``golang` and `GOPATH` configured
15+
You can use the [google/gnxi/gnmi_target](https://github.com/google/gnxi/tree/master/gnmi_target) to test the client
16+
code. You can set this up using the the following commands (assuming you have ``golang` and `GOPATH` configured
1717
correctly).
1818

1919
#### Installation
@@ -23,7 +23,7 @@ go install -v github.com/google/gnxi/gnmi_target
2323
```
2424

2525
#### Sample Configuration
26-
You can use the provided [sample configuration](tests/integration/fixtures/config.json). If you do not have a local copy
26+
You can use the provided [sample configuration](tests/integration/fixtures/config.json). If you do not have a local copy
2727
of the repository, fetch it using `curl`.
2828

2929
```sh

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@
77

88
This project aims to be a base building block for [gNMI](https://github.com/openconfig/gnmi) projects written in Python.
99

10-
The process of building pythonic libraries and applications using [gRPC](https://grpc.io/) and [Protocol Buffers](https://developers.google.com/protocol-buffers)
11-
have been fragmented. This often means that a developer needs to copy over `proto` files, generate Python source from
12-
these using `protoc` and use them in-tree for their project. There already exists several projects built in this fashion.
10+
The process of building pythonic libraries and applications using [gRPC](https://grpc.io/) and [Protocol Buffers](https://developers.google.com/protocol-buffers)
11+
have been fragmented. This often means that a developer needs to copy over `proto` files, generate Python source from
12+
these using `protoc` and use them in-tree for their project. There already exists several projects built in this fashion.
1313
While functional, these can be hard to reuse or maintain, often times resulting stale code and no versioning.
1414

15-
`gnmi-proto` builds on top of the improvement already done by [betterproto](https://pypi.org/project/betterproto/) and
16-
in turn by the [grpclib](https://pypi.org/project/grpclib/) library. Here, we make available, as versioned packages,
15+
`gnmi-proto` builds on top of the improvement already done by [betterproto](https://pypi.org/project/betterproto/) and
16+
in turn by the [grpclib](https://pypi.org/project/grpclib/) library. Here, we make available, as versioned packages,
1717
code generated from [gNMI protocol buffers](https://github.com/openconfig/gnmi/tree/master/proto).
1818

19-
The default implementation makes use of the [betterproto](https://pypi.org/project/betterproto/) `protoc` plugin to
20-
generate clean modern code. In addition, this also provides a `gnmi.proto.legacy` module exposing code generated by
19+
The default implementation makes use of the [betterproto](https://pypi.org/project/betterproto/) `protoc` plugin to
20+
generate clean modern code. In addition, this also provides a `gnmi.proto.legacy` module exposing code generated by
2121
`protoc` using the the in-built Python generator.
2222

2323
## Example Usage
2424
### Client
2525
The following code expects a server at `127.0.0.1:9339` with the [test configuration](https://github.com/python-gnxi/python-gnmi-proto/blob/master/tests/integration/fixtures/config.json). Refer to [gNMI Target Server](https://github.com/python-gnxi/python-gnmi-proto/blob/master/CONTRIBUTING.md#gnmi-target-server) section in [CONTRIBUTING.md](https://github.com/python-gnxi/python-gnmi-proto/blob/master/CONTRIBUTING.md) for information on how to set it up.
2626

2727
#### Using betterproto and grpclib
28-
```py
28+
```py
2929
import gnmi.proto
3030
import grpclib.client
3131

@@ -35,7 +35,7 @@ async def main():
3535
service = gnmi.proto.gNMIStub(
3636
channel, metadata={"username": "admin", "password": "secret"}
3737
)
38-
38+
3939
response = await service.capabilities()
4040
print(response.to_json(indent=2))
4141

0 commit comments

Comments
 (0)