From 669e6d1deb4309c31619731acbb63ee283aa98e0 Mon Sep 17 00:00:00 2001 From: drc38 <20024196+drc38@users.noreply.github.com> Date: Mon, 9 Sep 2024 19:36:30 +1200 Subject: [PATCH] remove flake etc from workflow (#1315) * remove flake etc from workflow * remove flake etc from setup.cfg --- .github/workflows/tests.yaml | 2 +- setup.cfg | 36 ------------------------------------ 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2d6d6aa9..a502bc3a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -31,7 +31,7 @@ jobs: - name: Install Python modules run: | - pip install --constraint=.github/workflows/constraints.txt pre-commit black flake8 reorder-python-imports + pip install --constraint=.github/workflows/constraints.txt pre-commit - name: Run pre-commit on all files run: | diff --git a/setup.cfg b/setup.cfg index ab569cf7..3239665c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,39 +1,3 @@ -[flake8] -exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build -doctests = True -# To work with Black -max-line-length = 88 -# D210 No whitespaces allowed surrounding docstring text -# E501: line too long -# W503: Line break occurred before a binary operator -# E203: Whitespace before ':' -# D202 No blank lines allowed after function docstring -# W504 line break after binary operator -ignore = - D210, - E501, - W503, - E203, - D202, - W504 - -[isort] -# https://github.com/timothycrosley/isort -# https://github.com/timothycrosley/isort/wiki/isort-Settings -# splits long import on multiple lines indented by 4 spaces -multi_line_output = 3 -include_trailing_comma=True -force_grid_wrap=0 -use_parentheses=True -line_length=88 -indent = " " -# will group `import x` and `from x import` of the same module. -force_sort_within_sections = true -sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER -default_section = THIRDPARTY -known_first_party = custom_components.ocpp, tests -combine_as_imports = true - [tool:pytest] addopts = -qq --cov=custom_components.ocpp --allow-unix-socket --allow-hosts=127.0.0.1 console_output_style = count