Skip to content

Commit e5e9f7b

Browse files
authored
[Feature] Code style and CI process updates (apache#39)
* style: update something * docs: update README.md * docs: update PR template * docs: update samples
1 parent 9bab773 commit e5e9f7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+570
-666
lines changed

.flake8

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## What is the purpose of the change
22

3+
<!-- Please provide the Issue number and link corresponding to the PR. -->
4+
ISSUE: [#issue_number](issue_link)
35

46

57
## Brief changelog
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: License Template Check
2+
3+
on: [push, pull_request]
4+
5+
6+
jobs:
7+
license-check:
8+
runs-on: ubuntu-latest
9+
permissions: write-all
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Set up Java
14+
uses: actions/setup-java@v4
15+
with:
16+
distribution: 'temurin'
17+
java-version: '11'
18+
- name: Check License Header
19+
run: bash ./scripts/check_license.sh

.github/workflows/python-lint-and-license-check.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/python-lint.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint Python Code
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Install Python
9+
uses: actions/setup-python@v5
10+
with:
11+
python-version: "3.11"
12+
- name: Install dependencies
13+
run: |
14+
python -m pip install --upgrade pip
15+
pip install -r requirements.txt
16+
pip install ruff
17+
- name: Run Ruff
18+
run: ruff check --output-format=github . --config=pyproject.toml

.github/workflows/unittest.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.license-ignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file is used to ignore files and directories from the license scan
2+
# Note: these patterns are applied to single files or directories, not full paths
3+
4+
# file extensions
5+
.*md
6+
.*proto
7+
8+
# files
9+
.asf.yaml
10+
LICENSE
11+
NOTICE
12+
README.md
13+
requirements.txt
14+
rat-report.txt
15+
16+
# directories
17+
.vscode
18+
.idea
19+
.github
20+
.gitignore
21+
.license-ignore
22+
./samples/proto/*
23+
24+

.licenserc.yaml

Lines changed: 0 additions & 71 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Apache Dubbo for python
1+
# Apache Dubbo for Python
22

33
![License](https://img.shields.io/github/license/apache/dubbo-python)
4+
![GitHub last commit](https://img.shields.io/github/last-commit/apache/dubbo-python)
5+
![GitHub branch check runs](https://img.shields.io/github/check-runs/apache/dubbo-python/main)
46

57
---
68

@@ -21,7 +23,7 @@ Visit [the official website](https://dubbo.apache.org/) for more information.
2123
## Features
2224

2325
- **Service Discovery**: Zookeeper
24-
- **Load Balance**: Random
26+
- **Load Balance**: Random, CPU
2527
- **RPC Protocols**: Triple(gRPC compatible and HTTP-friendly)
2628
- **Transport**: asyncio(uvloop)
2729
- **Serialization**: Customizable(protobuf, json...)

dubbo/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@
1717
from .bootstrap import Dubbo
1818
from .client import Client
1919
from .server import Server
20-
from .__version__ import __version__
2120

2221
__all__ = ["Dubbo", "Client", "Server"]

0 commit comments

Comments
 (0)