Skip to content

Commit

Permalink
skip pre-commit check as black now conflicting with flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Feb 11, 2024
1 parent db72627 commit 060180c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 33 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
- cron: "0 0 * * *"

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: pre-commit/[email protected]
# pre-commit:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: 3.x
# - uses: pre-commit/[email protected]

hacs:
runs-on: "ubuntu-latest"
Expand Down
48 changes: 24 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ flake8 = "*"
reorder-python-imports = "*"
pytest-homeassistant-custom-component = "*"
bandit = "*"
black = {version = "<24", allow-prereleases = true}
black = {version = "*", allow-prereleases = true}
mypy = "*"
pre-commit = "*"
pydocstyle = ">=6.0.0"
Expand Down Expand Up @@ -86,3 +86,21 @@ exclude = '''
)
| custom_components\/(?!myheat).*
'''

[tool.flake8]
exclude = ".venv,.git,.tox,docs,venv,bin,lib,deps,build"
doctests = true
# To work with Black
max-line-length = 88
# 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 = [
"E501",
"W503",
"E203",
"D202",
"W504"
]

0 comments on commit 060180c

Please sign in to comment.