You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2025/05/06 08:19:14 UTC
(skywalking-python) branch master updated: chore: fix linting error (#370)
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-python.git
The following commit(s) were added to refs/heads/master by this push:
new 1f091ee chore: fix linting error (#370)
1f091ee is described below
commit 1f091ee33f51fff91dd53e2bb65a15d932a12f89
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue May 6 16:19:10 2025 +0800
chore: fix linting error (#370)
---
.github/workflows/CI.yaml | 3 +--
tests/plugin/data/sw_psycopg/services/provider.py | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index ccc5fb5..a6c5e5b 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -48,8 +48,7 @@ jobs:
python-version: 3.8
- name: Lint codes
run: |
- make poetry
- poetry install --only lint
+ make env
make lint
# Check if the plugin doc is generated correctly
diff --git a/tests/plugin/data/sw_psycopg/services/provider.py b/tests/plugin/data/sw_psycopg/services/provider.py
index 29e0325..5614596 100644
--- a/tests/plugin/data/sw_psycopg/services/provider.py
+++ b/tests/plugin/data/sw_psycopg/services/provider.py
@@ -27,7 +27,7 @@ if __name__ == '__main__':
@app.route('/users', methods=['POST', 'GET'])
def application():
time.sleep(0.5)
- connection = psycopg.connect(host='postgres', user='root', password='root', dbname='admin', port=5432)
+ connection: psycopg.Connection = psycopg.connect(host='postgres', user='root', password='root', dbname='admin', port=5432) # type: psycopg.Connection
with connection.cursor() as cursor:
sql = 'select * from user where user = %s'
cursor.execute(sql, ('root',))