<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildbot/requirements-dev.txt, branch v28</title>
<subtitle>LEDE buildbot configuration</subtitle>
<id>https://git.openwrt.org/buildbot/atom?h=v28</id>
<link rel='self' href='https://git.openwrt.org/buildbot/atom?h=v28'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/'/>
<updated>2026-11-01T10:06:32Z</updated>
<entry>
<title>ci: bump lint tools and use `ruff check`</title>
<updated>2026-11-01T10:06:32Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2026-10-28T05:42:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=652d6e6bfeaa6d9a96d1b23f223b6e8e844c0451'/>
<id>urn:sha1:652d6e6bfeaa6d9a96d1b23f223b6e8e844c0451</id>
<content type='text'>
Update requirements-dev.txt to the latest releases:

  black  23.12.1 -&gt; 26.10.1
  ruff   0.1.9   -&gt; 0.17.3
  flake8 6.1.0   -&gt; 7.4.1
  cram   0.7 (unchanged, already the latest)

Ruff 0.17 requires the `check` subcommand and expects the settings in
.ruff.toml under a `lint` table, so update both.

Ruff 0.17 also enables more rules by default and reports 58 style
findings in the master.cfg files, mostly percent-format to str.format
conversions. The configs have no tests, so rewriting them is not worth
the risk. Select the previous default rules (E4, E7, E9, F) explicitly
instead. flake8 needs no changes.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Link: https://github.com/openwrt/buildbot/pull/84
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>requirements-dev: use black 23.12.1 and ruff 0.1.9</title>
<updated>2024-04-13T04:17:49Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-12-23T06:43:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=e74dce3085f299c2d8b1a94b09687ae88876ef7c'/>
<id>urn:sha1:e74dce3085f299c2d8b1a94b09687ae88876ef7c</id>
<content type='text'>
Fix ruff's recommendation:

 phase2/master.cfg:328:16: E721 Do not compare types, use `isinstance()`

 "Unlike a direct type comparison, isinstance will also check if an
  object is an instance of a class or a subclass thereof."

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>Add linting with flake8 tool</title>
<updated>2024-04-13T04:17:49Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-12-23T06:13:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=815fc1af29a293c0095b7e6e0e6cba068fe081b9'/>
<id>urn:sha1:815fc1af29a293c0095b7e6e0e6cba068fe081b9</id>
<content type='text'>
flake8 is a Python tool that glues together pycodestyle, pyflakes,
mccabe, and third-party plugins to check the style and quality of some
Python code.

Currently we've issue in phase2 in checksum step:

 /bin/sh: 2: Syntax error: ")" unexpected

And it seems, that flake8 is able to spot places which might lead to
such issues during runtime:

 phase2/master.cfg:733:151: W605 invalid escape sequence '\('
 phase2/master.cfg:733:155: W605 invalid escape sequence '\)'
 phase2/master.cfg:733:158: W605 invalid escape sequence '\('
 phase2/master.cfg:733:162: W605 invalid escape sequence '\)'

So lets enable flake8 checking on the CI so we can spot similar places
in the future and address them before deployment.

We dont want to make current ongoing work on phase2 code harder, thus we
don't touch that part yet, so we whitelist most of the checks for now.

References: f0faed2970dd ("phase2: compute checksums")
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>ci: improve QA with cram based tests</title>
<updated>2023-12-22T10:58:33Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-12-22T09:46:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=f94c6dd611a4b8147c84f55e5b52677b6dc74a43'/>
<id>urn:sha1:f94c6dd611a4b8147c84f55e5b52677b6dc74a43</id>
<content type='text'>
Currently we've broken master container but we're not aware about it as
current tests are very lame, so lets improve it a bit with some more
reliable, extensible solution.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>ci: add basic config checking with ruff</title>
<updated>2023-05-16T14:52:33Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-05-16T10:57:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=bc489fdb40c64f899957a139fbe3e4049a9f80d2'/>
<id>urn:sha1:bc489fdb40c64f899957a139fbe3e4049a9f80d2</id>
<content type='text'>
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
