diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 75a6ba5..34ae6c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,46 +1,48 @@ -# Copyright (c) 2023, NVIDIA CORPORATION. -# -# 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. - -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 'v4.4.0' - hooks: - - id: end-of-file-fixer - - id: trailing-whitespace - - id: check-builtin-literals - - id: check-executables-have-shebangs - - id: check-json - - id: check-yaml - - id: debug-statements - - id: requirements-txt-fixer - - repo: https://github.com/asottile/pyupgrade - rev: 'v3.3.1' - hooks: - - id: pyupgrade - args: - - --py38-plus - - repo: https://github.com/PyCQA/isort - rev: '5.12.0' - hooks: - - id: isort - - repo: https://github.com/psf/black - rev: '23.1.0' - hooks: - - id: black - - repo: https://github.com/PyCQA/flake8 - rev: '6.0.0' - hooks: - - id: flake8 - args: - - --show-source +# Copyright (c) 2023, NVIDIA CORPORATION. +# +# 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. + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: 'v4.4.0' + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-builtin-literals + - id: check-executables-have-shebangs + - id: check-json + - id: check-yaml + - id: debug-statements + - id: requirements-txt-fixer + - id: mixed-line-ending + args: [--fix=lf] + - repo: https://github.com/asottile/pyupgrade + rev: 'v3.3.1' + hooks: + - id: pyupgrade + args: + - --py38-plus + - repo: https://github.com/PyCQA/isort + rev: '5.12.0' + hooks: + - id: isort + - repo: https://github.com/psf/black + rev: '23.1.0' + hooks: + - id: black + - repo: https://github.com/PyCQA/flake8 + rev: '6.0.0' + hooks: + - id: flake8 + args: + - --show-source