Skip to content

Commit 41697da

Browse files
authored
Configure ruff line length. NFC (#25731)
This avoids ruff re-formatting import lines until they reach 100 chars.
1 parent 55a50f3 commit 41697da

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

emcc.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@
4242
)
4343
from tools.cmdline import CLANG_FLAGS_WITH_ARGS, options
4444
from tools.response_file import substitute_response_files
45-
from tools.settings import (
46-
COMPILE_TIME_SETTINGS,
47-
default_setting,
48-
settings,
49-
user_settings,
50-
)
45+
from tools.settings import COMPILE_TIME_SETTINGS, default_setting, settings, user_settings
5146
from tools.shared import DEBUG, DYLIB_EXTENSIONS, in_temp
5247
from tools.toolchain_profiler import ToolchainProfiler
5348
from tools.utils import exit_with_error, get_file_suffix, read_file, unsuffixed_basename

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
requires-python = ">=3.8"
33

44
[tool.ruff]
5+
line-length = 100
56
exclude = [
67
"./cache/",
78
"./node_modules/",

tools/shared.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@
4343

4444
from . import cache, config, diagnostics, filelock, tempfiles, utils
4545
from .settings import settings
46-
from .utils import (
47-
bat_suffix,
48-
exit_with_error,
49-
memoize,
50-
path_from_root,
51-
safe_ensure_dirs,
52-
)
46+
from .utils import bat_suffix, exit_with_error, memoize, path_from_root, safe_ensure_dirs
5347

5448
DEBUG_SAVE = DEBUG or int(os.environ.get('EMCC_DEBUG_SAVE', '0'))
5549
PRINT_SUBPROCS = int(os.getenv('EMCC_VERBOSE', '0'))

0 commit comments

Comments
 (0)