mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-05 07:47:33 +00:00
c3b99feb60
This enables ruff rules which check for code which can be simplified to improve readability. The additionally rules getting enabled by this are: - remove unnecessary nesting of if-statements (SIM102) - use contextlib.suppress() for no-op exception handling (SIM105) - use enumerate() for counting in loops (SIM113) - use context managers for opening files (SIM115)