Campbell Barton
29c7be1516
Tools: fixes and updates to duplicate header checker
...
Since moving to "tools/" the suggested command would modify
headers *outside* Blender's source directory (now prevented).
Since "#pragma once" was used - the duplicate header check
needed to be moved from the end to the start of the header.
Other changes:
- Add type hints.
- Exclude headers intended to be included multiple times.
- Use `argparse` for argument parsing.
- Use str.format.
2024-04-29 09:39:43 +10:00
Campbell Barton
4ec93f73a5
Cleanup: spelling in comments
2024-04-29 09:09:44 +10:00
Campbell Barton
e5fb4ad03b
Cleanup: replace %-formatting with str.format in tools/ & release/
2024-04-27 16:06:53 +10:00
Campbell Barton
c0def6c93d
Cleanup: spelling in comments
2024-04-27 11:58:02 +10:00
Campbell Barton
019d3ef939
Cleanup: spelling in comments
2024-04-24 10:48:45 +10:00
Campbell Barton
06adfcaf38
Cleanup: unused imports
2024-04-19 16:09:30 +10:00
Campbell Barton
74a65d77cc
Cleanup: spelling in comments
2024-04-10 12:28:33 +10:00
Campbell Barton
573146518d
check_licenses: exclude ./lib/ from source code checks
2024-03-19 14:10:27 +11:00
Campbell Barton
f347706ecd
Cleanup: add "unreachable" message to "assert False" statements
...
Clarify that these blocks are unreachable so the intention is clear
if they're ever encountered.
2024-03-15 13:20:11 +11:00
Campbell Barton
e011c1ab9b
Cleanup: spelling in comments
2024-03-05 11:25:35 +11:00
Campbell Barton
79cf4e58e4
Cleanup: type check scripts in tools/triage
2024-02-28 11:02:51 +11:00
Campbell Barton
2119d271e0
Cleanup: remove "-noaudio" argument in background mode
...
This is no longer needed as background mode implies -noaudio.
2024-02-14 00:13:38 +11:00
Campbell Barton
836167f1c9
mypy: update checker config, report missing paths
2024-02-03 13:09:57 +11:00
Campbell Barton
be7f89a9f5
Cleanup: spelling in comments
2024-01-29 11:47:42 +11:00
Campbell Barton
e7b127f363
Cleanup: remove unused variables
2024-01-29 11:47:40 +11:00
Campbell Barton
8f4f4d62bc
Cleanup: include release/datafiles/ to "make check_mypy"
...
Also add type hints to some scripts.
2024-01-25 10:06:29 +11:00
Campbell Barton
a3b4078be3
Cleanup: spelling in comments
2024-01-18 10:39:24 +11:00
Campbell Barton
5dd91346e1
Cleanup: remove unused imports
2024-01-08 11:40:53 +11:00
Campbell Barton
0ba83fde1f
Cleanup: spelling in comments
2024-01-08 11:24:37 +11:00
Campbell Barton
482ba7806d
Cleanup: spelling correction: "adjacent" & spelling in comments
2023-12-19 09:54:53 +11:00
Campbell Barton
225fc6fca7
Cleanup: spelling in comments, correct outdated comment
2023-12-17 16:04:38 +11:00
Campbell Barton
9097f1c62d
Cleanup: unhyphenate track-pad & thumb-stick
...
Both are typically written without hyphenation, add to local dictionary.
2023-12-15 22:57:34 +11:00
Campbell Barton
a4af406b81
Clenaup: spelling in comments
2023-12-14 11:14:50 +11:00
Campbell Barton
27c660707d
Cleanup: spelling in comments, variables
2023-11-27 09:54:36 +11:00
Campbell Barton
58ea0e051f
Cleanup: spelling in comments
2023-11-09 09:54:28 +11:00
Campbell Barton
e7e4e63313
Cleanup: spelling in comments, white-space in comments
2023-10-19 18:53:16 +11:00
Campbell Barton
c5d01df691
Merge branch 'blender-v4.0-release'
2023-10-06 21:48:34 +11:00
Campbell Barton
8974ca8f24
Tools: set the number of jobs to the CPU count for various utilities
...
Previously this was the double the CPU count because:
- Modern CPU's from AMD & Intel support SMT/hyper-threading which
present twice as many cores, doubling again has little to no benefit.
- Using 2x or 4x the number of physical cores number can use a lot of
memory on systems with many cores which are becoming more common.
2023-10-06 21:47:03 +11:00
Campbell Barton
60b2b663cc
Merge branch 'blender-v4.0-release'
2023-10-05 13:16:20 +11:00
Campbell Barton
c9130e38e3
Cleanup: spelling in comments
2023-10-05 13:07:58 +11:00
Campbell Barton
9c018def3e
Cleanup: spelling in comments
2023-10-03 11:24:48 +11:00
Campbell Barton
5126677c6f
Tests: add batch blend file loading utility
...
Useful for finding regression in file reading as well as issues reported
by ASAN, including memory leaks.
2023-09-27 16:50:09 +10:00
Campbell Barton
46263a85ab
Cleanup: spelling in comments
2023-09-27 13:03:29 +10:00
Campbell Barton
6c91e1c205
Cleanup: spelling in comments
2023-09-25 15:25:43 +10:00
Campbell Barton
6a8fc659ba
Cleanup: spelling in comments
2023-09-22 10:02:05 +10:00
Campbell Barton
b7f3e0d84e
Cleanup: spelling & punctuation in comments
...
Also remove some unhelpful/redundant comments.
2023-09-14 13:25:24 +10:00
Campbell Barton
9e41eccc6e
Cleanup: spelling in comments
2023-09-08 17:12:29 +10:00
Campbell Barton
73057cfd22
check_spelling: include *.metal files
2023-09-07 20:44:33 +10:00
Campbell Barton
0c26c84704
Cleanup: spelling in comments
2023-09-05 11:04:27 +10:00
Campbell Barton
0cfa9dcec1
check_spelling: correct line numbers for Python extraction
2023-09-05 10:49:17 +10:00
Campbell Barton
0c11542708
Cleanup: rename check_spelling_c_config to check_spelling_config
...
This is used for GLSL/Python sources too.
2023-09-03 21:36:04 +10:00
Campbell Barton
e8c812a307
Cleanup: spelling in comments, update dictionary
2023-09-03 21:35:07 +10:00
Campbell Barton
9af2291541
check_spelling: rename check_spelling_osl -> check_spelling_shaders
...
- 'make check_spelling_shaders' now checks MSL & GLSL spelling.
- Add '--match' argument to 'check_spelling.py' for more configurable
checks without relying on picking directories that only contain the
desired file-type.
- Ignore spelling for scripts/addons & scripts/addons_contrib.
2023-09-03 21:35:07 +10:00
Campbell Barton
3d607be572
Cleanup: spelling in comments
2023-08-30 10:57:12 +10:00
Campbell Barton
3de8900ed6
Cleanup: spelling in comments
2023-08-25 09:40:42 +10:00
Campbell Barton
0148293520
License headers: add SPDX licenses for '*.glsl' files
...
When GLSL sources were first included in Blender they were treated as
data (like blend files) and had no license header.
Since then GLSL has been used for more sophisticated features
(EEVEE & real-time compositing)
where it makes sense to include licensing information.
Add SPDX copyright headers to *.glsl files, matching headers used for
C/C++, also include GLSL files in the license checking script.
As leading C-comments are now stripped,
added binary size of comments is no longer a concern.
Ref !111247
2023-08-24 10:57:03 +10:00
Campbell Barton
f66fa32ada
Cleanup: spelling in comments
2023-08-23 13:30:55 +10:00
Campbell Barton
33a05725be
Cleanup: spelling in comments
2023-08-21 10:05:45 +10:00
Campbell Barton
4f72240c1d
Cleanup: spelling (correct correction), update dictionary
2023-08-19 20:19:13 +10:00
Campbell Barton
04bf0f3eb6
License headers: add SPDX copyright entries for '*.msl' files
2023-08-19 17:41:14 +10:00