Files
西风逍遥游 811eff1c3a ci(quality): warnings-as-errors gate, sanitizers, smoke, Python lint/tests
- EVENGINE_ENABLE_STRICT_WARNINGS option: MSVC /W4 /WX, GCC/Clang
  -Wall -Wextra -Werror, with documented noise suppressions and
  -isystem/-external:I for third-party headers; enabled on the
  Windows/Linux debug CI jobs.
- Fix warnings across engine, modules and tests exposed by the gate,
  including real bugs (incomplete-type deletes, Timespan microsecond
  overflow, overload hiding, enum switch gaps, dead code).
- Add Linux ASan+UBSan job, example smoke step, python-tools test
  job, ruff config (scripts+tools), weekly Linux coverage job and a
  CodeQL workflow.
2026-08-22 02:27:37 +08:00

17 lines
614 B
TOML

# Ruff configuration for EVEngine Python code (scripts/ + tools/).
# Conservative initial rule set: syntax errors, undefined names, unused
# imports/variables (pyflakes) and a few pycodestyle checks. Tighten the rule
# set over time as the legacy codebase is cleaned up.
line-length = 100
target-version = "py311"
[lint]
select = ["E4", "E7", "E9", "F"]
[lint.per-file-ignores]
# Test files intentionally patch sys.path before importing the package under
# test (module-import-not-at-top-of-file is by design there).
"scripts/tests/*.py" = ["E402"]
"tools/*/tests/*.py" = ["E402"]
"tools/*/test/*.py" = ["E402"]