0ad/source/tools
Dunedan 0ea6d32fa5
Enable various ruff rules
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)
2024-09-21 20:54:30 +02:00
..
atlas Don't use std::shared_ptr to store m_ScriptContext and m_ScriptInterface in the CGUIManager 2024-06-27 19:09:30 +00:00
cmpgraph Add executable bits for files with shebangs 2024-08-26 07:46:38 +02:00
dist Add EditorConfig options for Python 2024-09-17 11:03:15 +02:00
entdocs Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
entgraph Fix line endings of all files in source/ except source/third_party/. 2016-07-25 09:07:45 +00:00
entity Specify the Python target version in ruff.toml 2024-09-21 20:54:24 +02:00
fontbuilder2 Enable various ruff rules 2024-09-21 20:54:30 +02:00
i18n Enable various ruff rules 2024-09-21 20:54:30 +02:00
mapcompatibility Fix variable naming for map compatibility file 2024-09-13 11:04:05 +02:00
openlogsfolder Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
profiler2 Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
replayprofile Add executable bits for files with shebangs 2024-08-26 07:46:38 +02:00
rlclient/python Specify the Python target version in ruff.toml 2024-09-21 20:54:24 +02:00
spirv Enable various ruff rules 2024-09-21 20:54:30 +02:00
springimport Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
templatesanalyzer Add EditorConfig options for Python 2024-09-17 11:03:15 +02:00
templatessorter templatessorter.sh: move to posix shell 2024-08-29 12:55:26 +02:00
tracelogger Fix issues pointed out by shellcheck 2024-08-28 18:23:18 +02:00
webservices Add executable bits for files with shebangs 2024-08-26 07:46:38 +02:00
xmlvalidator Enable various ruff rules 2024-09-21 20:54:30 +02:00
LICENSE.txt Use PEP 8 naming conventions for fontbuilder2 2024-09-03 14:01:47 +02:00