Commit Graph

45 Commits

Author SHA1 Message Date
Jan Beran 706b1f555f fix: Bump up pre-commit hooks version 2024-02-26 10:35:06 +01:00
Fu Hanxi c40c612cf5 Merge branch 'ci/limit_idf_build_apps_to_1.x_5.0' into 'release/v5.0'
ci: limit idf-build-apps version to 1.x in pre-commit config file (5.0)

See merge request espressif/esp-idf!28829
2024-02-22 20:55:05 +08:00
Fu Hanxi e94615eade ci: limit idf-build-apps version to 1.x in pre-commit config file 2024-02-01 09:58:23 +01:00
Jan Beran 632620fa60 feat: Use python-reorder-imports instead of isort 2024-01-31 09:31:47 +01:00
Frantisek Hrbata b20cd8ccfa feat: use esp-idf-sbom pre-commit plugin
Currently sbom manifest is checked only in .gitmodules and
this check is done in pre-commit and also in CI. Meaning it's running
three times(pre-commit before push if user has it enabled, in CI
as there is the pre-commit run again and again with test in CI). Since
esp-idf-sbom contains a full manifest validation support and pre-commit
plugin for it, let's use it. This removes all the current sbom testing
and replaces it with a signle pre-commit plugin which validates all
manifests files(sbom.yml, idf_component.yml, .gitmodules and also
referenced manifests) in repository. Note that this checks all
manifests, not only ones which were modified. The check is reasonably
fast though, so it should not cause any problem. The reason for
validating all manifest files is that we want to make sure that the sbom
information in .gitmodules is updated too and that the hash
recorded in .gitmodules is up-to-date. Meaning submodule update
would not trigger this plugin, because no manifest was changed.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-19 12:55:35 +01:00
morris 3fba3425f1 Merge branch 'bugfix/fix_spi_flash_api_concurrency_issue_v5.0' into 'release/v5.0'
spi_flash: fix concurrency issue when concurrently calling esp_flash apis (v5.0)

See merge request espressif/esp-idf!24512
2023-07-25 11:04:57 +08:00
Fu Hanxi b4ee8b573a ci: requires serial processing for check-all-apps-readmes 2023-07-24 15:28:18 +08:00
Roland Dobai 3838862709 ci(pre-commit): Use the newest copyright checker 2023-07-19 15:04:02 +02:00
Frantisek Hrbata 4068c1d7b4 tools: bump check-copyright in .pre-commit-config.yaml
Newer check-copyright version 1.0.2 contains fixes for copyrights
with single year and also the proposed date update is applied only
if number of changed lines is greater or equal to a limit. The default
limit is 5 and can be changed with the --lines-changed option if needed.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-21 07:06:15 +02:00
Fu Hanxi d764b863f6 ci: fix isort py37 incompatible issue 2023-02-06 10:31:24 +08:00
Marius Vikhammer 92964f0733 precommit: update flake8 repo url to use github
Gitlab mirror repo has been deprecated.
2022-11-15 16:13:20 +08:00
morris 5d58c10c3e rgb_lcd: support yuv converter 2022-09-27 14:32:04 +08:00
Roland Dobai 1ae3768321 Tools: Fix flake8 version 5 warnings 2022-08-12 15:36:11 +02:00
Sergei Silnov 4f93db4f5a tools: Fix copyright check in pre-commit for windows 2022-07-28 15:16:53 +02:00
Roland Dobai b59309852a Merge branch 'features/check_SPDX_license' into 'master'
Add SPDX license check

Closes PACMAN-386

See merge request espressif/esp-idf!18664
2022-07-19 18:57:05 +08:00
Fu Hanxi 54f69d35a3 ci: add check job and pre-commit 2022-07-14 08:26:32 +08:00
Dmitry Bondarenko d79b09fda2 Add SPDX license check 2022-07-13 17:51:13 +03:00
Laukik Hase 1ee3ee6854 protobuf: Fix v4.21.0 (python) compatibility issue
- Added auto-generated protobuf files (proto-c and python to
  pre-commit hook ignore lists
2022-05-30 09:54:31 +05:30
Anton Maklakov 95da3330c7 Tools: fix PyYAML deps for pre-commit hook
Fix 'error: Library stubs not installed for "yaml" (or incompatiblewith Python 3.9)'
2022-05-23 14:09:42 +07:00
Roland Dobai 08cc2fd493 Tools: Fix the Python dependency checker by skipping not installed dependency sub-trees 2022-05-03 16:50:25 +02:00
Jacques Supcik 80f52017d4 bump version 2022-04-25 22:55:28 +02:00
Roland Dobai 9027c30237 Merge branch 'feat/python_reqs_directory' into 'master'
Tools: Make easier the detection of the list of Python features

See merge request espressif/esp-idf!17009
2022-02-14 16:06:36 +00:00
Roland Dobai fddc73759e Tools: Make easier the detection of the list of Python features 2022-02-03 19:02:14 +01:00
Darian Leung e49f56a96d tools: Check copyright now checks assembly files
This commit updates the pre-commit configuration and check copyright
script to check assembly files (extensions '.s' and '.S').
2022-02-03 20:50:52 +08:00
Marius Vikhammer c6d60615c6 build-system: include soc_caps defines into kconfig
Adds gen_soc_caps_kconfig.py which parses the soc caps (soc_caps.h) into
a format that can be included in kconfig.
2021-12-06 12:37:07 +08:00
Jan Brudný 228113a399 tools: make copyright check configurable 2021-12-03 10:29:35 +01:00
Fu Hanxi 3ae7e2a92f ci: always run check-codeowners 2021-11-11 16:59:54 +08:00
Roland Dobai 0c24913608 Tools: Permanently ignore some header files from header check 2021-10-19 14:41:50 +02:00
Fu Hanxi 0b7a0d7cbd ci: move check_tools_files_patterns to pre-commit 2021-10-13 09:13:33 +08:00
Jan Brudný 3ce35ae455 tools: precommit copyright check fails on windows 2021-09-23 22:47:56 +08:00
Jan Brudný 798a174686 Add copyright check to pre-commit-config 2021-09-20 17:50:55 +08:00
Michael (XIAO Xufeng) 7f2973f702 ci: put file sorter to the end of the pre-commit checking
So that the sorter will be done at the end of the checking flow, we don't need to run pre-commit hooks again if another hook also take effect.
2021-04-26 15:58:03 +08:00
Tomas Sebestik e408915ff0 Remove sorting of MYPY ignore list from py script
Add sorting of mypy ignore list to pre-cm hook 'file-contents-sorter'
2021-04-13 10:35:56 +02:00
No One 2e5a334831 ci: run c3 unit test when other unit test run
C3 unit test were only being ran by unit_test_esp32c3 label/title,
should also be trigger by unit_test label/title
2021-03-18 10:36:08 +08:00
Tomas Sebestik a22597a2d6 Add mypy check to pre-commit-config 2021-02-25 07:05:43 +00:00
Fu Hanxi 80e86e7939 ci(pre-commit): check if rules is updated and valid 2021-02-10 14:50:07 +08:00
Fu Hanxi f0ea7a505b style(editorconfig): add indent style for yaml 2021-02-10 14:48:51 +08:00
Fu Hanxi a4f2206d4c pre-commit: Add double-quote-string-fixer and isort for python files 2021-01-20 10:38:17 +08:00
Angus Gratton 19b4f2452c pre-commit: Rearrange the YAML file to avoid the warning
Having a root level key that existed only to make an anchor led to a warning,
instead create the anchor in the first place the key was used and then reference
it later on.
2020-11-13 14:22:18 +11:00
Angus Gratton e2614122d8 pre-commit: Exclude expected output files from whitespace fixes
These rely on exact whitespace in their content
2020-11-11 07:36:35 +00:00
Angus Gratton f7d58aa359 cmake: Disable cmakelint indentation checks temporarily 2020-11-09 13:59:43 +11:00
Angus Gratton 4fe78185b2 pre-commit: Use cmakelint 1.4.1 not older commit 2020-11-09 10:06:05 +11:00
Fu Hanxi 7ab18c7571 Fix windows error by upgrading pre-commit-hook version.
drop python 2.7 support. Now we only support python 3.6.1+
2020-11-04 10:24:42 +08:00
Fu Hanxi 47a97d2b52 check_kconfigs and check_deprecated_kconfigs now use files arguments 2020-11-02 15:49:13 +08:00
Fu Hanxi bcc8f2628c CI: Add pre-commit for esp-idf project.
add tools/ci/python_packages/idf_ci.py for some util functions used in
ci and needs multi-os solution
2020-11-02 15:49:13 +08:00