mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
Merge branch 'bugfix/check_copyright_assembly_files' into 'master'
tools: Check copyright now checks assembly files Closes IDF-4624 See merge request espressif/esp-idf!17025
This commit is contained in:
@@ -109,7 +109,7 @@ repos:
|
|||||||
- 'pyyaml == 5.4.1'
|
- 'pyyaml == 5.4.1'
|
||||||
- 'pathspec == 0.9.0'
|
- 'pathspec == 0.9.0'
|
||||||
language: python
|
language: python
|
||||||
files: \.(py|c|h|cpp|hpp|ld)$
|
files: \.(py|c|h|cpp|hpp|ld|s|S)$
|
||||||
require_serial: true
|
require_serial: true
|
||||||
- id: check-tools-files-patterns
|
- id: check-tools-files-patterns
|
||||||
name: Check tools dir files patterns
|
name: Check tools dir files patterns
|
||||||
|
@@ -188,7 +188,7 @@ def get_file_mime(fn: str) -> str:
|
|||||||
return MIME['python']
|
return MIME['python']
|
||||||
if fn.endswith(('.cpp', '.hpp')):
|
if fn.endswith(('.cpp', '.hpp')):
|
||||||
return MIME['cpp']
|
return MIME['cpp']
|
||||||
if fn.endswith(('.c', '.h', '.ld')):
|
if fn.endswith(('.c', '.h', '.ld', '.s', '.S')):
|
||||||
return MIME['c']
|
return MIME['c']
|
||||||
raise UnsupportedFileType(fn)
|
raise UnsupportedFileType(fn)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user