From 26d3cc909739393143e695e12610b044cd72f88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Andr=C3=A9?= Date: Tue, 28 Sep 2021 07:01:46 -0300 Subject: [PATCH] Enable code quality checks on linux only --- .editorconfig | 2 +- .flake8 | 2 +- .github/workflows/dev.yml | 3 ++- .isort.cfg | 2 +- .pre-commit-config.yaml | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index 96ebfd43a..d15f680ec 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,7 @@ root = true [*] indent_style = space indent_size = 4 -max_line_length = 88 +max_line_length = 120 trim_trailing_whitespace = true insert_final_newline = true charset = utf-8 diff --git a/.flake8 b/.flake8 index bab0bdff5..06536f94d 100644 --- a/.flake8 +++ b/.flake8 @@ -1,6 +1,6 @@ [flake8] # required by black, https://github.com/psf/black/blob/master/.flake8 -max-line-length = 88 +max-line-length = 120 max-complexity = 18 ignore = E203, E266, E501, E722, W503, F403, F401 select = B,C,E,F,W,T4,B9 diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index ed130f18b..0e89e5332 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -48,12 +48,13 @@ jobs: run: | pipenv install --deploy --dev - id: code-quality + if: matrix.os == 'ubuntu-latest' uses: ricardochaves/python-lint@v1.4.0 with: python-root-list: "taipy tests" use-pylint: false use-isort: false - extra-pycodestyle-options: "--max-line-length=88 --ignore=E203,E266,E501,E722,W503,F403,F401" + extra-pycodestyle-options: "--max-line-length=120 --ignore=E203,E266,E501,E722,W503,F403,F401" extra-mypy-options: "--ignore-missing-imports" - name: test with tox run: diff --git a/.isort.cfg b/.isort.cfg index 0b49bd009..30ccff7fa 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -4,6 +4,6 @@ include_trailing_comma = True force_grid_wrap = 0 use_parentheses = True ensure_newline_before_comments = True -line_length = 88 +line_length = 120 # you can skip files as below #skip_glob = docs/conf.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a3d9e1beb..8b3898bb3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,7 @@ repos: rev: 21.8b0 hooks: - id: black + args: [--line-length=120] language_version: python3.9 - repo: https://gitlab.com/pycqa/flake8 rev: 3.9.2