Skip to content

Commit 52ff3ba

Browse files
committed
cargo: Lint with ruff
1 parent 0bcd816 commit 52ff3ba

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

cargo/flatpak-cargo-generator.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
#!/usr/bin/env python3
22

33
__license__ = "MIT"
4-
import json
5-
from urllib.parse import urlparse, ParseResult, parse_qs
6-
import os
4+
import argparse
5+
import asyncio
76
import contextlib
87
import copy
9-
import glob
10-
import subprocess
11-
import argparse
12-
import logging
138
import hashlib
14-
import asyncio
9+
import json
10+
import logging
11+
import os
12+
import subprocess
1513
from typing import (
14+
TYPE_CHECKING,
1615
Any,
1716
Dict,
1817
List,
1918
NamedTuple,
2019
Optional,
2120
Tuple,
2221
TypedDict,
23-
TYPE_CHECKING,
2422
)
23+
from urllib.parse import ParseResult, parse_qs, urlparse
2524

2625
import aiohttp
2726
import toml
@@ -162,7 +161,7 @@ def update_workspace_keys(pkg, workspace):
162161
update_workspace_keys(item, workspace.get("dependencies", None))
163162
continue
164163

165-
if not workspace or not key in workspace:
164+
if not workspace or key not in workspace:
166165
continue
167166

168167
workspace_item = workspace[key]

0 commit comments

Comments
 (0)