mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-21 07:43:59 -07:00
This commit enables a bunch of unrelated ruff rules, which only require minimal changes to the code base to enable them. The rules enabled by this commit are: - check the use of datetime objects without timezone (DTZ005) - check the performance of try-except in loops (PERF203) - check the number of function arguments (PLR0913) - check for mutable class defaults (RUF012) - check for the use of secure hashing algorithms (S324) - check for raising base exceptions (TRY002) - check for raising other exceptions where TypeErrors should be raised (TRY004) |
||
|---|---|---|
| .. | ||
| compile.py | ||
| get-nightly-shaders.sh | ||
| README.md | ||
| requirements.txt | ||
Instructions
Install python 3 and the python dependencies
pip install -r requirements.txt
Install glslc and spirv-tools 2023+ (the easiest way is to install Vulkan SDK)
Run the compile.py script
python compile.py path-to-folder-with-input-mods mod-output-path rules-path