osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/39399?usp=email )
Change subject: ruff.toml: new file
......................................................................
ruff.toml: new file
Add a ruff.toml config, so "ruff check" can be used in a local
pre-commit hook to find errors like the following. I'll fix them in
follow-up patches. Only checking gen_makefile.py for now as I plan to
modify that in follow-up patches.
gen_makefile.py:147:7: F841 Local variable `l` is assigned to but never used
|
145 | def extend_dict(self, d):
146 | for k,v in d.items():
147 | l = self.extend(k, v)
| ^ F841
148 |
149 | def read_projects_deps(path):
|
= help: Remove assignment to unused variable `l`
Change-Id: If045f3bfc12b333d3426e558294346da83521466
---
A .ruff.toml
1 file changed, 12 insertions(+), 0 deletions(-)
Approvals:
laforge: Looks good to me, but someone else must approve
pespin: Looks good to me, but someone else must approve
osmith: Looks good to me, approved; Verified
diff --git a/.ruff.toml b/.ruff.toml
new file mode 100644
index 0000000..64ca401
--- /dev/null
+++ b/.ruff.toml
@@ -0,0 +1,12 @@
+line-length = 120
+exclude = [
+ "cgit/osmo-commit-filter.py",
+ "net/fill_config.py",
+ "net/templates/freeswitch/python/dialplan-dgsm/__init__.py",
+ "osmo-cn-latest/provision-hlr.py",
+ "sysmobts-calib.py",
+]
+
+[lint]
+# E741: Ambiguous variable name: `l`
+ignore = ["E741"]
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/39399?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: If045f3bfc12b333d3426e558294346da83521466
Gerrit-Change-Number: 39399
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-dev/+/39403?usp=email )
Change subject: gen_makefile: modernize gen_make
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/39403?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I03350986c07226889b618869ec74a95be8712e3e
Gerrit-Change-Number: 39403
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Jan 2025 14:40:54 +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/osmo-dev/+/39402?usp=email )
Change subject: gen_makefile: modernize generator for "regen"
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/39402?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I345d2ae64a0afd5fe71d483c7dfe6a2ce2248c74
Gerrit-Change-Number: 39402
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Jan 2025 14:40:19 +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/osmo-dev/+/39401?usp=email )
Change subject: gen_makefile: fix f-string without placeholders
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/39401?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I77b38247fb38136f77f89d40669b2df378dca192
Gerrit-Change-Number: 39401
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Jan 2025 14:39:42 +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/osmo-dev/+/39400?usp=email )
Change subject: gen_makefile: fix variable assigned but never used
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/39400?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: Ib938d3336d395bfed3e5194dcf86ae5d56f99984
Gerrit-Change-Number: 39400
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Jan 2025 14:39:14 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: fixeria, lynxis lazus, pespin.
osmith has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39405?usp=email )
Change subject: testenv: run: add --autoreconf-in-src-copy arg
......................................................................
Patch Set 2:
(2 comments)
Commit Message:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39405/comment/b96e5fb7_a4e1… :
PS1, Line 9: Add a new argument that avoids the problem that ./configure refuses to
> FYI I have been having tons of problems with this lately since I'm using automake-1. […]
ACK - yeah then this should help with avoiding such problems.
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39405/comment/19854a66_4094… :
PS1, Line 15: Put the new logic behind am "experimental argument" for now. I think it
> an experiemental
Done
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39405?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I5c38ce69dc39823d12be574c74a654d2fa6ed8fb
Gerrit-Change-Number: 39405
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Thu, 23 Jan 2025 14:39:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>