Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/41384?usp=email )
Change subject: Fix lint errors: don't use star imports
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/41384?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: I0ca76a40d47f72635682de9303ff73e9b2197266
Gerrit-Change-Number: 41384
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 07 Nov 2025 15:20:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/41383?usp=email )
Change subject: Fix lint errors: do not use bare except
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/41383?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: Ia5fe852b6d990ad728fc3dedc7012c8fced92e13
Gerrit-Change-Number: 41383
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 07 Nov 2025 15:19:44 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/41387?usp=email )
Change subject: lint/lint_diff: test_ruff: add pyosmocom
......................................................................
lint/lint_diff: test_ruff: add pyosmocom
Ruff is very fast and detects some additional things that pylint (which
is already used with pyosmocom) does not.
Depends: pyosmocom I2ca3135f1ce38dcc06dc95c38f4b6258a60121cd
Change-Id: I2fdb36c79efbd0f0fb4bdce3cd0045bb35d4cf64
---
M lint/lint_diff.sh
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/87/41387/1
diff --git a/lint/lint_diff.sh b/lint/lint_diff.sh
index d76d951..6d8c64b 100755
--- a/lint/lint_diff.sh
+++ b/lint/lint_diff.sh
@@ -85,6 +85,7 @@
osmo-ci
osmo-dev
osmo-ttcn3-hacks
+ pyosmocom
"
local format_projects="
osmo-ttcn3-hacks
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/41387?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I2fdb36c79efbd0f0fb4bdce3cd0045bb35d4cf64
Gerrit-Change-Number: 41387
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/41381?usp=email )
Change subject: Fix lint errors: unused imports
......................................................................
Fix lint errors: unused imports
This is the first patch in a series to address everything found with
"ruff check", so we can run it in CI (additionally to pylint) and
locally as pre-commit hook.
Change-Id: Ie71039d05e9a7cc8b65543c9475b35adcb458f7e
---
M src/osmocom/construct.py
M src/osmocom/gsmtap.py
M src/osmocom/gsup/message.py
3 files changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/python/pyosmocom refs/changes/81/41381/1
diff --git a/src/osmocom/construct.py b/src/osmocom/construct.py
index 5e062c3..a7e5f41 100644
--- a/src/osmocom/construct.py
+++ b/src/osmocom/construct.py
@@ -4,7 +4,6 @@
import codecs
import ipaddress
-import gsm0338
# pylint: disable=import-error,no-name-in-module
diff --git a/src/osmocom/gsmtap.py b/src/osmocom/gsmtap.py
index f21ba03..60d7ee4 100644
--- a/src/osmocom/gsmtap.py
+++ b/src/osmocom/gsmtap.py
@@ -23,7 +23,6 @@
#
import socket
-from construct import Optional as COptional
from construct import Int8ub, Int8sb, Int32ub, BitStruct, Enum, GreedyBytes, Struct, Switch
from construct import this, PaddedString, Flag, BitsInteger, Bytes
from osmocom.construct import *
diff --git a/src/osmocom/gsup/message.py b/src/osmocom/gsup/message.py
index e48cd54..31fab2c 100644
--- a/src/osmocom/gsup/message.py
+++ b/src/osmocom/gsup/message.py
@@ -30,7 +30,7 @@
from construct import Optional as COptional
from osmocom.tlv import TLV_IE, TLV_IE_Collection
-from osmocom.construct import TonNpi, Rpad, OsmoRatType
+from osmocom.construct import TonNpi, OsmoRatType
from osmocom.construct import PaddedBcdAdapter, DnsAdapter, Ipv4Adapter, Ipv6Adapter
class GSUP_TLV_IE(TLV_IE):
--
To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/41381?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: Ie71039d05e9a7cc8b65543c9475b35adcb458f7e
Gerrit-Change-Number: 41381
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>