Skip to content
Snippets Groups Projects
Commit eb76bff2 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

ci: move Python formatting parameters to pyproject.toml

parent 9e1b9668
No related branches found
No related tags found
1 merge request!61Add pre-commit hooks
......@@ -58,9 +58,8 @@ Check style:
# Include the template and the bilingual test_python.sh.in:
- python_files=$(find "${CI_PROJECT_DIR}" -name '*.py' -o -name '_mtime.py.in' -o -name 'test_python.sh.in')
- python_line_length='80'
- isort ${python_files} --profile black --skip-gitignore --line-length ${python_line_length}
- black ${python_files} --line-length ${python_line_length}
- isort ${python_files}
- black ${python_files}
- cmake_files=$(find "${CI_PROJECT_DIR}" -name '*.cmake' -o -name 'CMakeLists.txt' -o -name 'config.cmake.in')
- cmake-format -i ${cmake_files}
......@@ -80,7 +79,7 @@ Check style:
exit 1
} || rm -rf "${STYLE_PATCH}"
- flake8 ${python_files} --max-line-length ${python_line_length}
- pflake8 ${python_files}
- cmake-lint ${cmake_files}
artifacts:
paths:
......
# Copyright (c) 2013-2024 MPI-M, Luis Kornblueh, Rahul Sinha and DWD, Florian Prill. All rights reserved.
#
# SPDX-License-Identifier: CC0-1.0
#
[tool.isort]
profile = "black"
skip_gitignore = true
line_length = 80
[tool.black]
line-length = 80
[tool.flake8]
max-line-length = 80
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment