blender-dev-tools.git
6 days agoUpdate company contributions. master
Brecht Van Lommel [Fri, 3 Dec 2021 10:06:47 +0000 (11:06 +0100)]
Update company contributions.

4 weeks agocheck_spelling: accept opening brackets before quoted text
Campbell Barton [Mon, 8 Nov 2021 05:45:02 +0000 (16:45 +1100)]
check_spelling: accept opening brackets before quoted text

This allows (`interpret as code`) to be ignored as if there
were no surrounding brackets.

5 weeks agocheck_spelling_c: update dictionary
Campbell Barton [Wed, 3 Nov 2021 00:36:03 +0000 (11:36 +1100)]
check_spelling_c: update dictionary

6 weeks agoGitHub: add PR template, add probot stale config blender-v3.0-release v3.0.0
Ankit Meel [Sat, 23 Oct 2021 05:22:50 +0000 (10:52 +0530)]
GitHub: add PR template, add probot stale config
Differential Revision: https://developer.blender.org/D12890

7 weeks agocode_clean: fix regex matching an ambiguous number of brackets
Campbell Barton [Wed, 20 Oct 2021 01:32:35 +0000 (12:32 +1100)]
code_clean: fix regex matching an ambiguous number of brackets

`use_elem_macro` and `use_str_elem_macro` were matching all brackets,
this caused them to match unbalanced number of brackets,
creating invalid syntax.

7 weeks agocheck_spelling: add words
Campbell Barton [Tue, 19 Oct 2021 00:01:47 +0000 (11:01 +1100)]
check_spelling: add words

7 weeks agocheck_spelling: ignore common suffix's when hyphenated
Campbell Barton [Tue, 19 Oct 2021 00:01:29 +0000 (11:01 +1100)]
check_spelling: ignore common suffix's when hyphenated

Allow informal convention of adding -ish or -ness onto the end of any word.
This is done a handful of times and seems reasonable to support.

7 weeks agoCleanup: formatting
Campbell Barton [Mon, 18 Oct 2021 06:26:26 +0000 (17:26 +1100)]
Cleanup: formatting

7 weeks agoCleanup: spelling in comments
Campbell Barton [Mon, 18 Oct 2021 06:21:11 +0000 (17:21 +1100)]
Cleanup: spelling in comments

7 weeks agocheck_spelling: support ignoring files
Campbell Barton [Mon, 18 Oct 2021 01:19:11 +0000 (12:19 +1100)]
check_spelling: support ignoring files

7 weeks agocheck_spelling: add doxy `tparam` (template parameter)
Campbell Barton [Mon, 18 Oct 2021 01:17:06 +0000 (12:17 +1100)]
check_spelling: add doxy `tparam` (template parameter)

7 weeks agocheck_spelling: don't modify the users personal dictionary
Campbell Barton [Mon, 18 Oct 2021 01:16:13 +0000 (12:16 +1100)]
check_spelling: don't modify the users personal dictionary

8 weeks agocheck_spelling_c: update dictionary
Campbell Barton [Tue, 12 Oct 2021 00:45:51 +0000 (11:45 +1100)]
check_spelling_c: update dictionary

2 months agocheck_spelling_c: update dictionary
Campbell Barton [Wed, 6 Oct 2021 02:39:57 +0000 (13:39 +1100)]
check_spelling_c: update dictionary

2 months agoCleanup: pep8
Campbell Barton [Wed, 6 Oct 2021 02:18:44 +0000 (13:18 +1100)]
Cleanup: pep8

2 months agocheck_spelling: various improvements
Campbell Barton [Wed, 6 Oct 2021 02:06:49 +0000 (13:06 +1100)]
check_spelling: various improvements

- Use the custom dictionary when checking hyphenated words.
- Add the custom dictionary to the existing dictionary so
  suggestions will include words from the custom dictionary.
- Refactor spell checking functions into wrapper calls.

Removes over 200 false positives.

2 months agocheck_spelling_c: update dictionary
Campbell Barton [Tue, 5 Oct 2021 22:31:22 +0000 (09:31 +1100)]
check_spelling_c: update dictionary

2 months agocheck_spelling_c: update dictionary
Campbell Barton [Tue, 5 Oct 2021 01:17:02 +0000 (12:17 +1100)]
check_spelling_c: update dictionary

2 months agocheck_spelling: support '@' in tag contents
Campbell Barton [Tue, 5 Oct 2021 01:14:45 +0000 (12:14 +1100)]
check_spelling: support '@' in tag contents

Now `TODO(@name)` ignores the spelling of `name`.

2 months agocheck_spelling_c: add words
Campbell Barton [Thu, 23 Sep 2021 05:12:45 +0000 (15:12 +1000)]
check_spelling_c: add words

2 months agomake format: update clang-format to 12, the version in precompiled libraries
Brecht Van Lommel [Mon, 13 Sep 2021 11:15:29 +0000 (13:15 +0200)]
make format: update clang-format to 12, the version in precompiled libraries

3 months agoCredits: Update Eitan Traurig's last name studio-sprite-fright
Dalai Felinto [Wed, 1 Sep 2021 12:16:08 +0000 (14:16 +0200)]
Credits: Update Eitan Traurig's last name

3 months agoCredits: Fix some hardcoded unicodes
Dalai Felinto [Wed, 1 Sep 2021 11:17:57 +0000 (13:17 +0200)]
Credits: Fix some hardcoded unicodes

3 months agoCredits: Unify duplicated entries + author renames
Dalai Felinto [Wed, 1 Sep 2021 09:07:46 +0000 (11:07 +0200)]
Credits: Unify duplicated entries + author renames

This commit implements a lookup table that allow git authors to
be renamed. We had a few duplicated entries for the same author,
as well as at least one case where the contributor that changed name.

3 months agoCredits Generator: USD importer (NVidia)
Dalai Felinto [Tue, 24 Aug 2021 07:46:55 +0000 (09:46 +0200)]
Credits Generator: USD importer (NVidia)

3 months agocheck_spelling_c_config: update words
Campbell Barton [Wed, 11 Aug 2021 00:07:41 +0000 (10:07 +1000)]
check_spelling_c_config: update words

3 months agotrailing_space_clean: remove BOM as well as trailing space
Campbell Barton [Tue, 10 Aug 2021 23:54:01 +0000 (09:54 +1000)]
trailing_space_clean: remove BOM as well as trailing space

4 months agocheck_spelling: allow joining hyphenated words
Campbell Barton [Fri, 6 Aug 2021 03:37:44 +0000 (13:37 +1000)]
check_spelling: allow joining hyphenated words

Accept the spelling for hyphenated words
when the spelling of each individual word is correct.

This suppresses many terms that are better treated as false positives
such as user-defined, multi-input and edit-data.

4 months agocheck_spelling_c_config: add words
Campbell Barton [Fri, 6 Aug 2021 03:37:43 +0000 (13:37 +1000)]
check_spelling_c_config: add words

5 months agoCleanup: Move import to top of file
Aaron Carlisle [Tue, 22 Jun 2021 23:36:43 +0000 (19:36 -0400)]
Cleanup: Move import to top of file

5 months agoMerge branch 'master' of git.blender.org:blender-dev-tools
Aaron Carlisle [Tue, 22 Jun 2021 23:26:51 +0000 (19:26 -0400)]
Merge branch 'master' of git.blender.org:blender-dev-tools

5 months agoRNA Manual Reference: Update Langauges
Aaron Carlisle [Tue, 22 Jun 2021 23:26:47 +0000 (19:26 -0400)]
RNA Manual Reference: Update Langauges

Match with what is available on docs.blender.org

5 months agocheck_spelling_c_config: add words
Campbell Barton [Tue, 22 Jun 2021 06:12:19 +0000 (16:12 +1000)]
check_spelling_c_config: add words

6 months agoWeekly report: only report revisions that were worked on during the week
Philipp Oeser [Mon, 31 May 2021 14:27:57 +0000 (16:27 +0200)]
Weekly report: only report revisions that were worked on during the week

For the weekly report, it is of less interest to see the history of
patches every week.

6 months agoWeekly report: update for recent status renamings
Philipp Oeser [Mon, 31 May 2021 13:56:27 +0000 (15:56 +0200)]
Weekly report: update for recent status renamings

- 'Invalid' > 'Archived'
- 'Needs Developer To Reproduce' > 'Needs Information from Developers'

6 months agocode_clean: support for using const-casts
Campbell Barton [Tue, 18 May 2021 04:22:15 +0000 (14:22 +1000)]
code_clean: support for using const-casts

7 months agoCleanup: use type hints for the spell checker blender-v2.93-release v2.93.0 v2.93.1 v2.93.2 v2.93.3 v2.93.4 v2.93.5 v2.93.6
Campbell Barton [Wed, 14 Apr 2021 14:51:39 +0000 (00:51 +1000)]
Cleanup: use type hints for the spell checker

3rd party modules cause this not to run without any errors.

7 months agocheck_mypy: include make_source_archive.py
Campbell Barton [Wed, 14 Apr 2021 01:53:04 +0000 (11:53 +1000)]
check_mypy: include make_source_archive.py

7 months agoAdd check_mypy utility
Campbell Barton [Wed, 14 Apr 2021 01:32:57 +0000 (11:32 +1000)]
Add check_mypy utility

7 months agoCleanup: use type hinting for batch_edit_text and it's users
Campbell Barton [Mon, 12 Apr 2021 12:46:38 +0000 (22:46 +1000)]
Cleanup: use type hinting for batch_edit_text and it's users

7 months agocode_clean: cleanup unused variables
Campbell Barton [Mon, 12 Apr 2021 01:42:39 +0000 (11:42 +1000)]
code_clean: cleanup unused variables

7 months agocode_clean: use type hints
Campbell Barton [Sun, 11 Apr 2021 04:34:01 +0000 (14:34 +1000)]
code_clean: use type hints

'mypy --strict' runs without errors, exposed 3x bugs.

7 months agoFix bugs in code_clean: utility
Campbell Barton [Sun, 11 Apr 2021 04:14:50 +0000 (14:14 +1000)]
Fix bugs in code_clean: utility

- Fix when running with 'make'.
- Add missing 'time' import.
- Correct return arguments passed to sys.exit(..).

8 months agoclang_format_paths: bump minimum clang-format version to 8.0
Campbell Barton [Thu, 1 Apr 2021 00:03:07 +0000 (11:03 +1100)]
clang_format_paths: bump minimum clang-format version to 8.0

This adds support for `StatementMacros` which is needed to properly
format Python structs.

9 months agoCredits: Fix duplicate credit users
Sebastián Barschkis [Tue, 9 Mar 2021 08:55:28 +0000 (09:55 +0100)]
Credits: Fix duplicate credit users

Normalization ensures correct grouping of names with special chars.

9 months agoEnable libmv for make-format
Sergey Sharybin [Fri, 5 Mar 2021 14:05:35 +0000 (15:05 +0100)]
Enable libmv for make-format

9 months agoMove Cycles synchronization point
Stefan Werner [Tue, 2 Mar 2021 14:11:01 +0000 (15:11 +0100)]
Move Cycles synchronization point

9 months agocheck_spelling_c_config: update dictionary
Campbell Barton [Mon, 1 Mar 2021 00:01:57 +0000 (11:01 +1100)]
check_spelling_c_config: update dictionary

9 months agoCleanup: spelling
Campbell Barton [Thu, 25 Feb 2021 05:36:32 +0000 (16:36 +1100)]
Cleanup: spelling

9 months agocheck_spelling_c_config: add words
Campbell Barton [Thu, 25 Feb 2021 05:36:07 +0000 (16:36 +1100)]
check_spelling_c_config: add words

9 months agoCleanup: use the assignment operator with list-comprehension
Campbell Barton [Fri, 12 Feb 2021 04:28:29 +0000 (15:28 +1100)]
Cleanup: use the assignment operator with list-comprehension

9 months agoCleanup: spelling
Campbell Barton [Tue, 9 Feb 2021 09:33:29 +0000 (20:33 +1100)]
Cleanup: spelling

9 months agocode_clean: rewrite header_clean.py, make it part of code_clean.py
Campbell Barton [Tue, 9 Feb 2021 01:43:31 +0000 (12:43 +1100)]
code_clean: rewrite header_clean.py, make it part of code_clean.py

9 months agocode_clean: use named tuple to store edits, add option build args
Campbell Barton [Tue, 9 Feb 2021 01:41:12 +0000 (12:41 +1100)]
code_clean: use named tuple to store edits, add option build args

This allows edits to add additional build arguments
for the compiler to use.

9 months agocode_clean: quiet each edit test by default
Campbell Barton [Tue, 9 Feb 2021 00:32:18 +0000 (11:32 +1100)]
code_clean: quiet each edit test by default

This was too noisy, and not so helpful.

9 months agocode_clean: include each edit types doc-string in the --help message
Campbell Barton [Tue, 9 Feb 2021 00:22:12 +0000 (11:22 +1100)]
code_clean: include each edit types doc-string in the --help message

9 months agocode_clean: rename shared data argument
Campbell Barton [Mon, 8 Feb 2021 23:50:45 +0000 (10:50 +1100)]
code_clean: rename shared data argument

9 months agoCorrect error in ed927886c3391482305eb4bc3a73fbba86631774
Campbell Barton [Mon, 8 Feb 2021 22:13:03 +0000 (09:13 +1100)]
Correct error in ed927886c3391482305eb4bc3a73fbba86631774

10 months agocode_clean: skip operating on generated source files
Campbell Barton [Sat, 6 Feb 2021 07:56:03 +0000 (18:56 +1100)]
code_clean: skip operating on generated source files

This caused cleaning to fail on generated source files.

10 months agocode_clean: move edits to a class, support setup/teardown functions
Campbell Barton [Sat, 6 Feb 2021 00:36:24 +0000 (11:36 +1100)]
code_clean: move edits to a class, support setup/teardown functions

10 months agocheck_spelling: fix for single lines which weren't checked
Campbell Barton [Fri, 5 Feb 2021 10:09:50 +0000 (21:09 +1100)]
check_spelling: fix for single lines which weren't checked

10 months agocheck_spelling: fix cache hashing (it wasn't working at all)
Campbell Barton [Fri, 5 Feb 2021 10:08:25 +0000 (21:08 +1100)]
check_spelling: fix cache hashing (it wasn't working at all)

10 months agocheck_spelling_c_config: add words
Campbell Barton [Fri, 5 Feb 2021 10:04:08 +0000 (21:04 +1100)]
check_spelling_c_config: add words

10 months agoRNA Manual Mappings: Make script more versatile
Aaron Carlisle [Tue, 26 Jan 2021 22:12:20 +0000 (17:12 -0500)]
RNA Manual Mappings: Make script more versatile

- Refactor to functions
- Write file to the release folder by default
- Add arg parser to specify url, local path, and output.

In the future we may want to add arguments for output url info (base,
langs and version)

11 months agocheck_spelling_c_config: remove gimble, use gimbal instead blender-v2.92-release v2.92.0
Campbell Barton [Mon, 4 Jan 2021 00:23:29 +0000 (11:23 +1100)]
check_spelling_c_config: remove gimble, use gimbal instead

11 months agoCleanup: comparisons with None
Campbell Barton [Mon, 4 Jan 2021 00:22:26 +0000 (11:22 +1100)]
Cleanup: comparisons with None

12 months agoWeekly Report: Fix errors on project edits
Aaron Carlisle [Mon, 30 Nov 2020 03:29:01 +0000 (22:29 -0500)]
Weekly Report: Fix errors on project edits

Previously, the script would fail for example
when adding members to a project.

12 months agoAdd GPL license block
Richard Antalik [Thu, 19 Nov 2020 13:51:24 +0000 (14:51 +0100)]
Add GPL license block

I have received concern about legality of modifying code without license.

I am not a lawyer, but I can add license that makes it clear that it is
OK to modify this file.

12 months agoCleanup: minor changes
Campbell Barton [Mon, 9 Nov 2020 07:16:17 +0000 (18:16 +1100)]
Cleanup: minor changes

- Make executable using shebang
- Use main function for body of the function.
- Remove unused imports
- Use 'count' in variable name instead of 'cnt'
  (unnecessary abbreviation).

12 months agoCleanup: pep8
Campbell Barton [Mon, 9 Nov 2020 07:07:05 +0000 (18:07 +1100)]
Cleanup: pep8

12 months agoFix 'code_clean' error in ELEM, STR_ELEM
Campbell Barton [Mon, 9 Nov 2020 07:01:42 +0000 (18:01 +1100)]
Fix 'code_clean' error in ELEM, STR_ELEM

These macros were being added into assert statements when testing with
release builds when they shouldn't have been.

13 months agoblender_theme_as_c: Support arrays
Nathan Craddock [Thu, 5 Nov 2020 22:05:54 +0000 (15:05 -0700)]
blender_theme_as_c: Support arrays

Update the blendfile module to support iteration through array theme
data. This removes the need to hard code the theme color values for bone
color sets and collection colors.

Differential Revision: https://developer.blender.org/D9482

13 months agocode_clean: add 'use_str_elem_macro' edit
Campbell Barton [Fri, 6 Nov 2020 07:12:07 +0000 (18:12 +1100)]
code_clean: add 'use_str_elem_macro' edit

13 months agoCleanup: unused import, variable name
Campbell Barton [Fri, 6 Nov 2020 04:43:26 +0000 (15:43 +1100)]
Cleanup: unused import, variable name

13 months agocode_clean: add 'use_elem_macro' edit
Campbell Barton [Fri, 6 Nov 2020 02:00:55 +0000 (13:00 +1100)]
code_clean: add 'use_elem_macro' edit

13 months agoRemove prints from last commit
Campbell Barton [Fri, 6 Nov 2020 00:39:41 +0000 (11:39 +1100)]
Remove prints from last commit

13 months agocode_clean: add 'use_zero_before_float_suffix' edit
Campbell Barton [Fri, 6 Nov 2020 00:34:00 +0000 (11:34 +1100)]
code_clean: add 'use_zero_before_float_suffix' edit

13 months agoAdd tool to generate weekly reports
Richard Antalik [Tue, 27 Oct 2020 10:39:21 +0000 (11:39 +0100)]
Add tool to generate weekly reports

14 months agoblender_theme_as_c: Add workaround for collection colors blender-v2.91-release v2.91.0 v2.91.2
Nathan Craddock [Fri, 9 Oct 2020 03:27:43 +0000 (14:27 +1100)]
blender_theme_as_c: Add workaround for collection colors

When running blender_theme_as_c.py after collection colors were added,
the generated default theme only had one collection color because array
themes are not supported yet.

This hard codes the collection colors into the script just like is done
for bone color sets.

Ref D9154

14 months agocheck_spelling_c_config.py: add resync
Campbell Barton [Fri, 2 Oct 2020 10:47:14 +0000 (20:47 +1000)]
check_spelling_c_config.py: add resync

Similar to remap, this is a useful abbreviation in code-comments.

14 months agocheck_spelling: ignore plurals of variables in the file
Campbell Barton [Wed, 30 Sep 2020 02:11:55 +0000 (12:11 +1000)]
check_spelling: ignore plurals of variables in the file

14 months agoclang_format_paths: remove non-existing 'intern/string'
Campbell Barton [Thu, 24 Sep 2020 10:05:48 +0000 (20:05 +1000)]
clang_format_paths: remove non-existing 'intern/string'

14 months agomake format: add option to format only edited files
Ankit Meel [Thu, 24 Sep 2020 07:21:44 +0000 (17:21 +1000)]
make format: add option to format only edited files

Ref D8991

14 months agoFix version checks for clang_format_paths
Campbell Barton [Wed, 23 Sep 2020 12:57:39 +0000 (22:57 +1000)]
Fix version checks for clang_format_paths

P1650 by @ankitm

14 months agocheck_spelling: allow TODO(name/other-name): , also add NOTE
Campbell Barton [Sat, 19 Sep 2020 07:35:16 +0000 (17:35 +1000)]
check_spelling: allow TODO(name/other-name): , also add NOTE

Note is only used in a few places, may as well support it.

14 months agocheck_spelling: improve email regex
Campbell Barton [Tue, 15 Sep 2020 00:25:53 +0000 (10:25 +1000)]
check_spelling: improve email regex

Some emails weren't included.

14 months agocheck_spelling_c_config: add words
Campbell Barton [Wed, 9 Sep 2020 23:50:56 +0000 (09:50 +1000)]
check_spelling_c_config: add words

15 months agocheck_spelling: allow +/- characters in TODO(...) comments
Campbell Barton [Mon, 7 Sep 2020 23:09:28 +0000 (09:09 +1000)]
check_spelling: allow +/- characters in TODO(...) comments

15 months agoFix error in last commit '\param foo[in,out]' was removed
Campbell Barton [Mon, 7 Sep 2020 06:57:16 +0000 (16:57 +1000)]
Fix error in last commit '\param foo[in,out]' was removed

15 months agocheck_spelling: ignore names in FIXME/TODO(name), more doxy commands
Campbell Barton [Mon, 7 Sep 2020 06:24:30 +0000 (16:24 +1000)]
check_spelling: ignore names in FIXME/TODO(name), more doxy commands

15 months agocheck_spelling: use regex for extraction, optionally cache results
Campbell Barton [Sat, 5 Sep 2020 08:01:08 +0000 (18:01 +1000)]
check_spelling: use regex for extraction, optionally cache results

- Use argparse for argument parsing.
- Report the exact column:line of the word.
- Remove qt-creator task file support as using
  file.ext:line:col: is generally supported.

15 months agoAdd blender_menu_search_coverage utility
Campbell Barton [Wed, 2 Sep 2020 08:33:48 +0000 (18:33 +1000)]
Add blender_menu_search_coverage utility

This reports operators that aren't yet available when searching menus.

15 months agocheck_spelling_c: update dictionary
Campbell Barton [Wed, 2 Sep 2020 08:32:57 +0000 (18:32 +1000)]
check_spelling_c: update dictionary

15 months agoCleanup: use term 'edit' instead of 'fix'.
Campbell Barton [Thu, 20 Aug 2020 12:41:01 +0000 (22:41 +1000)]
Cleanup: use term 'edit' instead of 'fix'.

15 months agoInitial code-clean utility
Campbell Barton [Wed, 19 Aug 2020 04:58:45 +0000 (14:58 +1000)]
Initial code-clean utility

Perform automated edits to source files which are validated to produce
identical binary output.

Currently this has only been tested to work with GCC on Linux.

15 months agocheck_spelling_c_config: Add words
Campbell Barton [Wed, 19 Aug 2020 04:01:54 +0000 (14:01 +1000)]
check_spelling_c_config: Add words

15 months agoCleanup: comments, spelling
Campbell Barton [Wed, 19 Aug 2020 03:55:59 +0000 (13:55 +1000)]
Cleanup: comments, spelling

16 months agocheck_spelling_c_config: add words
Campbell Barton [Fri, 7 Aug 2020 07:10:38 +0000 (17:10 +1000)]
check_spelling_c_config: add words

16 months ago`use_override_library` was removed. blender-v2.90-release v2.90.0 v2.90.1
Bastien Montagne [Tue, 14 Jul 2020 14:05:06 +0000 (16:05 +0200)]
`use_override_library` was removed.

16 months agocheck_spelling: add support for checking strings
Campbell Barton [Fri, 10 Jul 2020 05:54:35 +0000 (15:54 +1000)]
check_spelling: add support for checking strings