diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09e92a667596baba74ec7680bfab6bee2926c0b0..e3cc36e0094aa4f1c9c6bba529b0dcdfa9cbb2b8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,13 +50,13 @@ repos: entry: bash .pre-commit-hooks/clang-format.hook -i language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$ - exclude: (?=speechx/speechx/kaldi|speechx/patch).*(\.cpp|\.cc|\.h|\.py)$ + exclude: (?=speechx/speechx/kaldi|speechx/patch|speechx/tools/fstbin|speechx/tools/lmbin).*(\.cpp|\.cc|\.h|\.py)$ - id: copyright_checker name: copyright_checker entry: python .pre-commit-hooks/copyright-check.hook language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$ - exclude: (?=third_party|pypinyin|speechx/speechx/kaldi|speechx/patch).*(\.cpp|\.cc|\.h|\.py)$ + exclude: (?=third_party|pypinyin|speechx/speechx/kaldi|speechx/patch|speechx/tools/fstbin|speechx/tools/lmbin).*(\.cpp|\.cc|\.h|\.py)$ - repo: https://github.com/asottile/reorder_python_imports rev: v2.4.0 hooks: diff --git a/speechx/tools/fstbin/fstaddselfloops.cc b/speechx/tools/fstbin/fstaddselfloops.cc index 61ef33776cefe4fc93e5b38070e1b3b75e27b01e..a014bfbc868b24623dd6af8715c0a9258ebb0913 100644 --- a/speechx/tools/fstbin/fstaddselfloops.cc +++ b/speechx/tools/fstbin/fstaddselfloops.cc @@ -1,17 +1,3 @@ -// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // fstbin/fstaddselfloops.cc // Copyright 2009-2011 Microsoft Corporation diff --git a/speechx/tools/fstbin/fstdeterminizestar.cc b/speechx/tools/fstbin/fstdeterminizestar.cc index d7019cb66d4592664ab64e98d7d12c163c6bb8f8..4e55929b7988cba3ea7aab0d6230c3e3b07d1961 100644 --- a/speechx/tools/fstbin/fstdeterminizestar.cc +++ b/speechx/tools/fstbin/fstdeterminizestar.cc @@ -1,17 +1,3 @@ -// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // fstbin/fstdeterminizestar.cc // Copyright 2009-2011 Microsoft Corporation diff --git a/speechx/tools/fstbin/fstisstochastic.cc b/speechx/tools/fstbin/fstisstochastic.cc index 8e7eb9620ecab2ca1b95789f13a034dc1e768510..df37b8b33fc65da8d03a51a4aeb7e6101ed220f6 100644 --- a/speechx/tools/fstbin/fstisstochastic.cc +++ b/speechx/tools/fstbin/fstisstochastic.cc @@ -1,17 +1,3 @@ -// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // fstbin/fstisstochastic.cc // Copyright 2009-2011 Microsoft Corporation diff --git a/speechx/tools/fstbin/fstminimizeencoded.cc b/speechx/tools/fstbin/fstminimizeencoded.cc index d48c437e7ec0312431b7b30038d105ebe89797af..4e3301e1237499c2266e77e22d1ceb01fc6bc127 100644 --- a/speechx/tools/fstbin/fstminimizeencoded.cc +++ b/speechx/tools/fstbin/fstminimizeencoded.cc @@ -1,17 +1,3 @@ -// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // fstbin/fstminimizeencoded.cc // Copyright 2009-2011 Microsoft Corporation diff --git a/speechx/tools/fstbin/fsttablecompose.cc b/speechx/tools/fstbin/fsttablecompose.cc index 5f7e774190de1d80dca4e4ac5c99613743b95a2c..0ba3e681dee3a470ae4a86135e5e1b1ad7e85908 100644 --- a/speechx/tools/fstbin/fsttablecompose.cc +++ b/speechx/tools/fstbin/fsttablecompose.cc @@ -1,17 +1,3 @@ -// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // fstbin/fsttablecompose.cc // Copyright 2009-2011 Microsoft Corporation diff --git a/speechx/tools/lmbin/arpa2fst.cc b/speechx/tools/lmbin/arpa2fst.cc index 477160855b5d7ab497d63b3d2d1193db13cc5631..659a60a4d865fe6781c3a7eaed5dbec5a0ed65f7 100644 --- a/speechx/tools/lmbin/arpa2fst.cc +++ b/speechx/tools/lmbin/arpa2fst.cc @@ -1,17 +1,3 @@ -// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // bin/arpa2fst.cc // // Copyright 2009-2011 Gilles Boulianne.