espressif / check-copyright Goto Github PK
View Code? Open in Web Editor NEWPre-commit/gitlab-ci script for checking and adding license SPDX headers
License: Apache License 2.0
Pre-commit/gitlab-ci script for checking and adding license SPDX headers
License: Apache License 2.0
Hi, i want to use your tool, but if i create a custom header, that do not have text "SPDX-FileCopyrightText" or "SPDX-License-Identifier" are failing to pass pre-commit check.
Is it possible to modify script and add config parameters so i can specify:
The check-copyright
works for me weeks ago, but currently we found the CI running always fail with:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/libo/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/check_copyright.py", line 722, in <module>
main()
File "/home/libo/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/check_copyright.py", line 684, in main
wrong_header_files, modified_files, must_be_updated = check_copyrights(args, config)
File "/home/libo/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/check_copyright.py", line 511, in check_copyrights
is_new_file = args.is_new_file[file_name]
KeyError: './examples/camera/video_recorder/components/avi_video_process/avi_def.h'
Run follow command in esp-iot-solution repo to reproduce the bug:
python -m check_copyright --verbose --dry-run --ignore tools/ci/ignore_list_copyright.txt --config tools/ci/check_copyright_config.yaml .
Please help to analyze the root of the problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.