Go to file
Rob Mohr a19b9fd3a8 pw_presubmit: Allow customizing black
Allow customizing the executable used for black. Also, explicitly
specify a config file for black if one is present in a couple locations.
It now looks at the following locations, in order:

* $PW_PROJECT_ROOT/.black.toml
* $PW_PROJECT_ROOT/pyproject.toml
* $PW_ROOT/.black.toml
* $PW_ROOT/pyproject.toml

Bug: b/264578594
Change-Id: Ic1ea174ca286b6f7ffd262da3dea4d83bff27c99
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126211
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
2023-01-26 04:18:30 +00:00
.allstar Silence Allstar warnings about Binary Artifacts 2022-09-06 18:51:11 +00:00
.vscode all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
build_overrides third_party/pico-sdk: Pi Pico GN build 2022-03-27 16:29:40 +00:00
docker Docker: Remove deprecated environment variable 2022-11-29 18:41:50 +00:00
docs docs: Consolidate references to supported Python versions 2022-12-07 22:48:32 +00:00
pw_allocator pw_allocator/cmake: Add CMake support 2023-01-20 22:13:54 +00:00
pw_analog all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_android_toolchain all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_arduino_build pw_{arduino_build,bloat}: Remove "yapf: enable" 2022-12-01 23:24:12 +00:00
pw_assert pw_{assert,cpu_exception_cortex_m}: Remove references to pwbug/17 2023-01-09 20:04:38 +00:00
pw_assert_basic pw_{assert,cpu_exception_cortex_m}: Remove references to pwbug/17 2023-01-09 20:04:38 +00:00
pw_assert_log pw_log: Add the log module name to PW_HANDLE_LOG() 2022-12-22 20:50:05 +00:00
pw_assert_tokenized pw_log: Add the log module name to PW_HANDLE_LOG() 2022-12-22 20:50:05 +00:00
pw_assert_zephyr pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_async pw_async: Add module with Task and basic & test Dispatchers 2023-01-13 22:01:30 +00:00
pw_base64 pw_base64/cmake: Migrate away from pw_auto_add_simple_module 2022-11-16 20:33:03 +00:00
pw_bloat pw_bloat: Fully specify data sources instead of appending 2023-01-25 23:08:46 +00:00
pw_blob_store pw_random: Make RandomGenerator infallible 2022-12-08 20:32:40 +00:00
pw_bluetooth pw_bluetooth: Add CharacteristicPropertyBits operators 2022-12-01 23:11:09 +00:00
pw_bluetooth_hci all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_boot all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_boot_cortex_m all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_build pw_build: Parallel worker support 2023-01-25 23:00:15 +00:00
pw_build_info pw_build_info: Format with black 2022-11-30 22:09:39 +00:00
pw_build_mcuxpresso pw_build_mcuxpresso: Format with black 2022-11-30 22:26:25 +00:00
pw_bytes build: Update Android.bp 2022-11-18 01:41:03 +00:00
pw_checksum pw_perf_test: Support overloaded functions in the simple macro 2023-01-17 19:45:02 +00:00
pw_chrono bazel: Upgrade to bazel 6.0.0 2023-01-23 20:58:44 +00:00
pw_chrono_embos all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_chrono_freertos pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_chrono_stl pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_chrono_threadx all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_chrono_zephyr pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_cli pw_cli: Log time format options 2023-01-25 00:34:45 +00:00
pw_compilation_testing *: Add missing OWNERS files 2022-12-29 17:29:10 +00:00
pw_console pw_console: Ensure filtered logs appear on startup 2022-12-08 23:27:55 +00:00
pw_containers pw_vector: Add missing modifier member functions 2023-01-20 07:06:16 +00:00
pw_cpu_exception pw_build/cmake: Migrate pw_add_module_facade -> pw_add_facade 2022-11-15 18:16:52 +00:00
pw_cpu_exception_cortex_m bazel: Upgrade to bazel 6.0.0 2023-01-23 20:58:44 +00:00
pw_crypto pw_crypto: Fix Bazel build 2022-11-30 20:33:56 +00:00
pw_digital_io pw_digital_io: Fix small typo in the docs 2023-01-10 21:18:18 +00:00
pw_docgen pw_docgen: Format with black 2022-11-30 22:09:28 +00:00
pw_doctor docs: Consolidate references to supported Python versions 2022-12-07 22:48:32 +00:00
pw_env_setup bazel: Upgrade to bazel 6.0.0 2023-01-23 20:58:44 +00:00
pw_file pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_function pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_fuzzer all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_hdlc targets/docs: Build with C++20 2023-01-25 20:27:56 +00:00
pw_hex_dump pw_hex_dump: Fix output for short single line 2022-11-30 16:49:03 +00:00
pw_i2c all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_i2c_mcuxpresso pw_i2c_mcuxpresso: Tag target as manual 2022-11-15 22:49:11 +00:00
pw_ide python: Remove "yapf: disable" 2022-11-30 23:48:59 +00:00
pw_interrupt pw_build/cmake: Migrate pw_add_module_facade -> pw_add_facade 2022-11-15 18:16:52 +00:00
pw_interrupt_cortex_m pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_interrupt_zephyr zephyr: Add missing facade dependencies 2022-11-17 22:09:40 +00:00
pw_intrusive_ptr rp2040: Update pico_sdk to 1.4.0 2022-11-29 03:30:20 +00:00
pw_kvs pw_kvs: Fix missing pw_span include in span_traits.h 2022-12-13 21:03:42 +00:00
pw_libc all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_log pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_log_android *: Add missing OWNERS files 2022-12-29 17:29:10 +00:00
pw_log_basic pw_log: Add the log module name to PW_HANDLE_LOG() 2022-12-22 20:50:05 +00:00
pw_log_null pw_log: Add the log module name to PW_HANDLE_LOG() 2022-12-22 20:50:05 +00:00
pw_log_rpc pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_log_string pw_log: Add the log module name to PW_HANDLE_LOG() 2022-12-22 20:50:05 +00:00
pw_log_tokenized pw_log: Add the log module name to PW_HANDLE_LOG() 2022-12-22 20:50:05 +00:00
pw_log_zephyr pw_log: Add the log module name to PW_HANDLE_LOG() 2022-12-22 20:50:05 +00:00
pw_malloc all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_malloc_freelist all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_metric pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_minimal_cpp_stdlib pw_minimal_cpp_stdlib: Fix missing deps on tests 2022-12-14 15:49:33 +00:00
pw_module pw_module: Format with black 2022-11-30 22:08:14 +00:00
pw_multisink pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_package pw_env_setup: Update mypy to 0.991 and mypy-protobuf to 3.3.0 2023-01-11 23:43:00 +00:00
pw_perf_test pw_perf_test: Support overloaded functions in the simple macro 2023-01-17 19:45:02 +00:00
pw_persistent_ram pw_random: Make RandomGenerator infallible 2022-12-08 20:32:40 +00:00
pw_polyfill pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_preprocessor cmake: Update all pw_add_library to use PUBLIC_INCLUDES 2022-11-16 16:33:56 +00:00
pw_presubmit pw_presubmit: Allow customizing black 2023-01-26 04:18:30 +00:00
pw_protobuf pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_protobuf_compiler pw_protobuf: Codegen kConstantCase field enums 2023-01-25 05:24:06 +00:00
pw_random pw_random: Fix implicit conversions in RandomGenerator 2023-01-13 18:55:56 +00:00
pw_result pw_result: Fix death tests that expected specific error msg 2022-12-20 19:30:45 +00:00
pw_ring_buffer pw_ring_buffer: Correct documentation 2023-01-10 22:01:00 +00:00
pw_router pw_router/cmake: Clean up CMake support 2022-11-16 16:31:59 +00:00
pw_rpc pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_rust *: Add missing OWNERS files 2022-12-29 17:29:10 +00:00
pw_snapshot pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_software_update pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_span pw_span: Remove pw_polyfill dependency 2023-01-19 06:33:27 +00:00
pw_spi pw_spi: Remove deprecated constructor 2023-01-11 18:24:18 +00:00
pw_status build: Update Android.bp for pw_rpc 2022-12-09 00:03:22 +00:00
pw_stm32cube_build pw_stm32cube_build: Format with black 2022-11-30 22:08:49 +00:00
pw_stream pw_stream: Fix missing <cstring> include in test code 2022-12-15 21:44:53 +00:00
pw_string pw_string: Fix missing <cstring> include in test code 2022-12-15 21:45:47 +00:00
pw_symbolizer pw_symbolizer: Format with black 2022-11-30 22:10:31 +00:00
pw_sync pw_sync: Add const operators 2023-01-10 21:37:44 +00:00
pw_sync_baremetal pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_sync_embos all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_sync_freertos pw_thread_freertos/thread: Require INCLUDE_xTaskGetSchedulerState == 1 2023-01-06 15:47:27 +00:00
pw_sync_stl pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_sync_threadx all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_sync_zephyr pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_sys_io pw_build/cmake: Migrate pw_add_module_facade -> pw_add_facade 2022-11-15 18:16:52 +00:00
pw_sys_io_arduino targets/arduino: Added arduino dependencies, need arduino_sys_io 2022-11-29 08:06:54 +00:00
pw_sys_io_baremetal_lm3s6965evb all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_sys_io_baremetal_stm32f429 targets/docs: Build with C++20 2023-01-25 20:27:56 +00:00
pw_sys_io_emcraft_sf2 *: Add missing OWNERS files 2022-12-29 17:29:10 +00:00
pw_sys_io_mcuxpresso pw_sys_io_{arduino,mcuxpresso,stm32cube}: Tag targets as manual 2022-11-15 17:17:40 +00:00
pw_sys_io_pico *: Add missing OWNERS files 2022-12-29 17:29:10 +00:00
pw_sys_io_stdio pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_sys_io_stm32cube pw_sys_io_{arduino,mcuxpresso,stm32cube}: Tag targets as manual 2022-11-15 17:17:40 +00:00
pw_sys_io_zephyr zephyr: Fix Zephyr include warning 2022-12-12 18:58:51 +00:00
pw_system pw_system: Move STL main() to toolchain 2022-12-07 19:35:47 +00:00
pw_target_runner all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_thread pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_thread_embos pw_thread_embos: Fix wildcard build 2022-11-29 04:46:19 +00:00
pw_thread_freertos pw_thread_freertos/thread: Require INCLUDE_xTaskGetSchedulerState == 1 2023-01-06 15:47:27 +00:00
pw_thread_stl pw_build/cmake: Migrate pw_add_module_library -> pw_add_library 2022-11-15 02:09:30 +00:00
pw_thread_threadx all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_tls_client pw_tls_client: Don't update time in every build 2023-01-19 23:45:51 +00:00
pw_tls_client_boringssl pw_tls_client_boringssl: Fix bazel wildcard build 2022-11-08 00:28:05 +00:00
pw_tls_client_mbedtls pw_tls_client_mbedtls: Fix bazel wildcard build 2022-11-08 01:29:01 +00:00
pw_tokenizer bazel: Upgrade to bazel 6.0.0 2023-01-23 20:58:44 +00:00
pw_tool all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
pw_toolchain pw_toolchain: Clarify docs for static analysis 2023-01-25 00:15:41 +00:00
pw_trace pw_trace: timestamp_us should be a float 2023-01-11 17:16:17 +00:00
pw_trace_tokenized pw_trace_tokenized: Add new OWNERS 2023-01-24 19:27:00 +00:00
pw_transfer pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_unit_test pw_protobuf: Migrate all field ID users 2023-01-26 01:26:36 +00:00
pw_varint pw_span: Remove pw_polyfill dependency 2023-01-19 06:33:27 +00:00
pw_watch pw_build: Parallel worker support 2023-01-25 23:00:15 +00:00
pw_web *: Add missing OWNERS files 2022-12-29 17:29:10 +00:00
pw_work_queue pw_work_queue: Fix bazel build 2022-12-06 01:29:16 +00:00
seed SEED: Write 0002-template 2022-12-15 01:27:43 +00:00
targets targets/docs: Build with C++20 2023-01-25 20:27:56 +00:00
third_party third_party/fuchsia: Add stdcompat/functional.h 2023-01-20 21:54:46 +00:00
ts pw_web: Add Device helper for calling ServerStreamingMethodStub RPCs 2022-09-08 19:39:20 +00:00
zephyr all_modules: Update OWNERS files to match styling 2022-11-06 22:58:43 +00:00
.bazelignore .bazelignore: Ignore out and node_modules 2022-06-02 16:42:33 +00:00
.bazelrc bazel: Reduce log spam by suppressing DEBUG msg 2022-12-07 20:27:38 +00:00
.black.toml pw_presubmit: Allow customizing black 2023-01-26 04:18:30 +00:00
.clang-format Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
.clang-tidy all: Pass clang-tidy modernize-unary-static-assert check 2022-08-10 20:09:28 +00:00
.dockerignore docker: use build context 2020-07-21 18:46:22 +00:00
.eslintrc.json pw_web_ui: Add linting with eslint and prettier 2020-06-25 20:51:30 +00:00
.git-blame-ignore-revs git: Add .git-blame-ignore-revs file 2022-12-01 02:23:56 +00:00
.gitattributes git: Add "* text=auto" to .gitattributes 2020-11-09 18:05:42 +00:00
.gitignore pw_ide: Ignore .vscode better in .gitignore 2022-11-10 01:36:04 +00:00
.gn pw_span: Add flag to enable asserts 2022-09-09 23:48:57 +00:00
.mypy.ini python: Start enforcing mypy --no-implicit-optional 2022-10-20 21:03:29 +00:00
.prettierrc.js pw_web_ui: Add linting with eslint and prettier 2020-06-25 20:51:30 +00:00
.pw_ide.yaml pw_ide: Embed GN and Ninja 2022-10-20 07:51:25 +00:00
.pylintrc python: Change pylint "whitelist" to "allowlist" 2021-10-08 19:24:20 +00:00
activate.bat pw_env_setup: add warning when using *.bat on Linux 2020-04-17 11:50:47 -07:00
activate.sh Move bootstrap.sh to root 2020-03-10 18:45:09 +00:00
Android.bp pw_rpc: Add Android.bp files for the Java client 2021-12-15 20:10:16 +00:00
AUTHORS Initial commit for Pigweed 2019-10-31 13:26:45 -07:00
bootstrap.bat bootstrap: Use correct environment dir downstream 2022-11-11 20:11:39 +00:00
bootstrap.sh bootstrap: Ensure git config is run within git dir 2022-12-09 20:58:51 +00:00
BUILD.bazel pw_presubmit: Run bazel_lint on the WORKSPACE file 2022-08-12 19:27:27 +00:00
BUILD.gn build: Build the pigweed_default target in C++20 2023-01-12 22:17:43 +00:00
BUILDCONFIG.gn pw_build: Configurable Python and proto toolchains 2021-04-29 20:30:56 +00:00
CMakeLists.txt pw_allocator/cmake: Add CMake support 2023-01-20 22:13:54 +00:00
jest.config.ts pw_web_ui: Replace '@pigweed' and 'pigweed' imports with 'pigweedjs' 2022-07-25 21:46:54 +00:00
Kconfig.zephyr pw_tokenizer: add Zephyr support 2022-09-08 20:39:11 +00:00
LICENSE Initial commit for Pigweed 2019-10-31 13:26:45 -07:00
modules.gni pw_build: Check in the modules lists .gni 2022-02-28 20:36:20 +00:00
OWNERS OWNERS: Remove non-active users 2022-11-11 20:49:03 +00:00
package-lock.json pw_web: Add a Device helper class to make RPC calls easier 2022-08-30 17:44:33 +00:00
package.json pw_web: Bump npm version to 0.0.7 2022-11-21 18:54:19 +00:00
PIGWEED_MODULES pw_async: Add module with Task and basic & test Dispatchers 2023-01-13 22:01:30 +00:00
PW_PLUGINS pw_software_update: Register a skeleton CLI 2022-10-20 17:59:05 +00:00
README.md docs: Update bug tracker links 2022-11-07 17:36:12 +00:00
rollup.config.js pw_web: Fix type definition errors by keeping them unbundled instead 2022-08-31 17:43:07 +00:00
tsconfig.json pw_web_ui: Replace '@pigweed' and 'pigweed' imports with 'pigweedjs' 2022-07-25 21:46:54 +00:00
WORKSPACE WORKSPACE: Update rules_cc_toolchain 2023-01-23 22:34:09 +00:00

Pigweed

Pigweed is an open source collection of embedded-targeted librariesor as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.

For more information please see our website: https://pigweed.dev/.