Closed
Description
A new version (0.9.4) of ruff
was just pushed to the latest/candidate
channel in the snap store. The following revisions are available.
CPU Architecture | Revision |
---|---|
amd64 | 1258 |
arm64 | 1259 |
armhf | 1260 |
ppc64el | 1261 |
riscv64 | 1262 |
s390x | 1263 |
Automated testing
If configured, the snap will be installed in a VM, and any test results or screenshots will be posted to this issue as a comment shortly.
How to test it manually
- Stop the application if it was already running
- Upgrade to this version by running
snap refresh ruff --channel latest/candidate
- Start the app and test it out.
- Finally, add a comment below explaining whether this app is working, and include the output of the following command.
snap version; lscpu | grep Architecture; snap info ruff | grep installed
How to release it
Maintainers can promote this to stable by commenting /promote <rev>[,<rev>] latest/stable [done]
.
For example
- To promote a single revision, run
/promote <rev> latest/stable
- To promote multiple revisions, run
/promote <rev>,<rev> latest/stable
- To promote a revision and close the issue, run
/promote <rev>,<rev> latest/stable done
You can promote all revisions that were just built with:
/promote 1258,1259,1260,1261,1262,1263 latest/stable done
Activity
github-actions commentedon Jan 31, 2025
Automated testing success.
Full logs are available at https://github.com/snapcrafters/ruff/actions/runs/13062654869. The first 100, and last 100 lines of the log are displayed in the Summary below.
Logs
Use instead:
airflow-dag-no-schedule-argument (AIR301)
Derived from the Airflow linter.
This rule is in preview and is not stable. The
--preview
flag is required for use.What it does
Checks for a
DAG()
class or@dag()
decorator without an explicitschedule
parameter.Why is this bad?
The default
schedule
value on Airflow 2 istimedelta(days=1)
, which isalmost never what a user is looking for. Airflow 3 changes this the default
to None, and would break existing DAGs using the implicit default.
If your DAG does not have an explicit
schedule
argument, Airflow 2schedules a run for it every day (at the time determined by
start_date
).Such a DAG will no longer be scheduled on Airflow 3 at all, without any
exceptions or other messages visible to the user.
Example
(Logs truncated. See full logs at: https://github.com/snapcrafters/ruff/actions/runs/13062654869)
docs_src/dependencies/tutorial003_an_py39.py:11:1: B903 Class could be dataclass or namedtuple
|
11 | / class CommonQueryParams:
12 | | def init(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
13 | | self.q = q
14 | | self.skip = skip
15 | | self.limit = limit
| |__________________________^ B903
|
docs_src/dependencies/tutorial003_py310.py:9:1: B903 Class could be dataclass or namedtuple
|
9 | / class CommonQueryParams:
10 | | def init(self, q: str | None = None, skip: int = 0, limit: int = 100):
11 | | self.q = q
12 | | self.skip = skip
13 | | self.limit = limit
| |__________________________^ B903
|
docs_src/dependencies/tutorial004.py:11:1: B903 Class could be dataclass or namedtuple
|
11 | / class CommonQueryParams:
12 | | def init(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
13 | | self.q = q
14 | | self.skip = skip
15 | | self.limit = limit
| |__________________________^ B903
|
docs_src/dependencies/tutorial004_an.py:12:1: B903 Class could be dataclass or namedtuple
|
12 | / class CommonQueryParams:
13 | | def init(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
14 | | self.q = q
15 | | self.skip = skip
16 | | self.limit = limit
| |__________________________^ B903
|
docs_src/dependencies/tutorial004_an_py310.py:11:1: B903 Class could be dataclass or namedtuple
|
11 | / class CommonQueryParams:
12 | | def init(self, q: str | None = None, skip: int = 0, limit: int = 100):
13 | | self.q = q
14 | | self.skip = skip
15 | | self.limit = limit
| |__________________________^ B903
|
docs_src/dependencies/tutorial004_an_py39.py:11:1: B903 Class could be dataclass or namedtuple
|
11 | / class CommonQueryParams:
12 | | def init(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
13 | | self.q = q
14 | | self.skip = skip
15 | | self.limit = limit
| |__________________________^ B903
|
docs_src/dependencies/tutorial004_py310.py:9:1: B903 Class could be dataclass or namedtuple
|
9 | / class CommonQueryParams:
10 | | def init(self, q: str | None = None, skip: int = 0, limit: int = 100):
11 | | self.q = q
12 | | self.skip = skip
13 | | self.limit = limit
| |__________________________^ B903
|
docs_src/python_types/tutorial010.py:1:1: B903 Class could be dataclass or namedtuple
|
1 | / class Person:
2 | | def init(self, name: str):
3 | | self.name = name
| |________________________^ B903
|
tests/test_jsonable_encoder.py:17:1: B903 Class could be dataclass or namedtuple
|
17 | / class Person:
18 | | def init(self, name: str):
19 | | self.name = name
| |________________________^ B903
|
tests/test_jsonable_encoder.py:22:1: B903 Class could be dataclass or namedtuple
|
22 | / class Pet:
23 | | def init(self, owner: Person, name: str):
24 | | self.owner = owner
25 | | self.name = name
| |________________________^ B903
|
Found 21 errors (3 fixed, 18 remaining).
11 files reformatted, 1140 files left unchanged
106 files reformatted, 1045 files left unchanged
::endgroup::
lengau commentedon Jan 31, 2025
/promote 1258,1259,1260,1261,1262,1263 latest/stable done
github-actions commentedon Jan 31, 2025
The following revisions were released to the
latest/stable
channel:1258,1259,1260,1261,1262,1263
.