From 473ad2be231ad0fc64d8a36ba98be3fb30fe483c Mon Sep 17 00:00:00 2001 From: Joppe Vos Date: Mon, 4 Dec 2023 15:16:04 +0100 Subject: [PATCH] remove linting related changes --- .pre-commit-config.yaml | 6 ++++++ pyproject.toml | 9 ++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8672ec92c..c46e31634 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -76,6 +76,12 @@ repos: name: mypy-python additional_dependencies: [types-PyYAML, types-attrs, attrs, types-requests, types-python-dateutil, apache-airflow] files: ^cosmos + - repo: https://github.com/pycqa/flake8 + rev: 6.1.0 + hooks: + - id: flake8 + entry: pflake8 + additional_dependencies: [pyproject-flake8] ci: autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks diff --git a/pyproject.toml b/pyproject.toml index 78a946e57..ea26e73de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -248,11 +248,10 @@ no_warn_unused_ignores = true [tool.ruff] line-length = 120 -[tool.ruff.lint] -select = ["C901"] -[tool.ruff.lint.mccabe] -max-complexity = 8 - [tool.distutils.bdist_wheel] universal = true + +[tool.flake8] +max-complexity = 8 +select = "C"