Signal-iOS/Scripts
Evan Hahn d7c33eb211 Speed up pre-commit script
On my machine, the `./precommit.py --all` took 344.15 seconds (more than
5 minutes). This change speeds it up so that it takes less than 10
seconds.

It primarily achieves this by running `swiftlint` twice instead of twice
per file. There are some other smaller changes, too:

- Use a `set` for common operations
- Avoid a needless call to `text.split`
- Use built-in `pathlib.Path().parts` instead of a home-rolled solution

Tested this by running `./precommit.py` with all flags.
2022-03-23 09:43:21 -05:00
..
git_hooks dedupe git hooks 2018-03-02 17:57:58 -05:00
sds_codegen Remove unnecessary coding: utf-8 heading from Python scripts 2022-03-21 14:43:45 -05:00
translation minor changes due to changed name of NSLocalizedStringFromAppBundle (now OWSLocalizedString) and new location of swift function and preprocessor definition 2022-03-11 14:08:26 +01:00
AuditStringH.py Remove unnecessary coding: utf-8 heading from Python scripts 2022-03-21 14:43:45 -05:00
bump_build_tag.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
ClearDerivedData.sh Respond to CR. 2018-02-09 10:31:29 -05:00
debug_log_upload.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
disableUniversalDeviceSupport Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
emoji_ranges.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
emoji-data.txt Respond to CR. 2017-10-30 12:11:42 -04:00
EmojiGenerator.swift Fix typos 2022-03-18 11:31:06 -07:00
enableUniversalDeviceSupport Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
feature_flags_beta.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
feature_flags_common.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
feature_flags_openPreview.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
feature_flags_production.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
feature_flags_qa.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
HardResetGit.sh Hard reset git script. 2017-01-31 13:58:13 -05:00
precommit.py Speed up pre-commit script 2022-03-23 09:43:21 -05:00
ProtoWrappers.py Remove unnecessary coding: utf-8 heading from Python scripts 2022-03-21 14:43:45 -05:00
reverse_integration_check.py Remove unnecessary coding: utf-8 heading from Python scripts 2022-03-21 14:43:45 -05:00
schema_dump Firm up database schema 2021-11-09 14:25:42 -08:00
set_release_notes Fix release notes 2021-05-02 11:51:36 -07:00
setup_private_pods Fix setup_private_pods script for newly-cloned repos 2022-01-28 10:04:00 -08:00
sqlclient PR Feedback, update schema_dump to support sqlclient updates 2020-08-20 13:07:23 -07:00
sqlclient-legacy sql client scripts 2019-04-05 10:50:45 -06:00
unused_strings.py Upgrade scripts to Python 3 2022-03-21 12:58:33 -05:00
update_plist_info.sh A couple small changes to improve visibility of build configuration 2021-10-05 20:43:42 -07:00
update_share_plist_info.sh PR Feedback 2019-05-28 13:07:34 -07:00
upload_metadata Manage app store metadata with transifex 2021-04-22 12:53:43 -07:00