You've already forked godot
							
							
				mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 12:00:25 +00:00 
			
		
		
		
	Both the `app` and `lib` modules had custom source sets configuration originating from the early days of the project. This updates the configuration to match the default Android Studio configuration which will simplify the addition of unit tests and instrumented tests to the project. Note that for backcompat reasons, some folders (such as the `res` folder in the `app` module) are left as is.
		
			
				
	
	
		
			94 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			94 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
[tool.mypy]
 | 
						|
disallow_any_generics = true
 | 
						|
explicit_package_bases = true
 | 
						|
ignore_missing_imports = true
 | 
						|
namespace_packages = true
 | 
						|
no_implicit_optional = true
 | 
						|
pretty = true
 | 
						|
show_column_numbers = true
 | 
						|
warn_redundant_casts = true
 | 
						|
warn_return_any = true
 | 
						|
warn_unreachable = true
 | 
						|
exclude = ["thirdparty/"]
 | 
						|
python_version = "3.8"
 | 
						|
 | 
						|
[tool.ruff]
 | 
						|
extend-exclude = ["thirdparty"]
 | 
						|
extend-include = ["*SConstruct", "*SCsub"]
 | 
						|
line-length = 120
 | 
						|
target-version = "py38"
 | 
						|
 | 
						|
[tool.ruff.lint]
 | 
						|
extend-select = [
 | 
						|
	"I", # isort
 | 
						|
]
 | 
						|
 | 
						|
[tool.ruff.lint.per-file-ignores]
 | 
						|
"{SConstruct,SCsub}" = [
 | 
						|
	"E402", # Module level import not at top of file
 | 
						|
	"F403", # Undefined local with import star
 | 
						|
	"F405", # Undefined local with import star usage
 | 
						|
]
 | 
						|
 | 
						|
[tool.ruff.lint.isort]
 | 
						|
sections = { metadata = ["misc.utility.scons_hints"] }
 | 
						|
section-order = [
 | 
						|
	"future",
 | 
						|
	"metadata",
 | 
						|
	"standard-library",
 | 
						|
	"third-party",
 | 
						|
	"first-party",
 | 
						|
	"local-folder",
 | 
						|
]
 | 
						|
 | 
						|
[tool.codespell]
 | 
						|
enable-colors = true
 | 
						|
write-changes = true
 | 
						|
check-hidden = true
 | 
						|
quiet-level = 3
 | 
						|
builtin = ["clear", "rare", "en-GB_to_en-US"]
 | 
						|
skip = [
 | 
						|
	".mailmap",
 | 
						|
	"*.desktop",
 | 
						|
	"*.gitignore",
 | 
						|
	"*.po",
 | 
						|
	"*.pot",
 | 
						|
	"*.rc",
 | 
						|
	"AUTHORS.md",
 | 
						|
	"COPYRIGHT.txt",
 | 
						|
	"core/input/gamecontrollerdb.txt",
 | 
						|
	"core/string/locales.h",
 | 
						|
	"DONORS.md",
 | 
						|
	"editor/project_converter_3_to_4.cpp",
 | 
						|
	"platform/android/java/lib/src/main/java/com/*",
 | 
						|
	"platform/web/package-lock.json",
 | 
						|
]
 | 
						|
ignore-words-list = [
 | 
						|
	"breaked",
 | 
						|
	"cancelled",
 | 
						|
	"checkin",
 | 
						|
	"colour",
 | 
						|
	"curvelinear",
 | 
						|
	"doubleclick",
 | 
						|
	"expct",
 | 
						|
	"findn",
 | 
						|
	"gird",
 | 
						|
	"hel",
 | 
						|
	"inout",
 | 
						|
	"labelin",
 | 
						|
	"lod",
 | 
						|
	"masia",
 | 
						|
	"mis",
 | 
						|
	"nd",
 | 
						|
	"numer",
 | 
						|
	"ot",
 | 
						|
	"outin",
 | 
						|
	"parm",
 | 
						|
	"requestor",
 | 
						|
	"streamin",
 | 
						|
	"te",
 | 
						|
	"textin",
 | 
						|
	"thirdparty",
 | 
						|
	"vai",
 | 
						|
]
 |