Skip to content

Commit

Permalink
ci: Добавлен запуск pre-commit и проверки для HACS
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Apr 22, 2024
1 parent 86bc724 commit b8b1fb8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- '*'
tags-ignore:
- 'v*'
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- uses: pre-commit/action@v3.0.1

validate:
name: Validate for HACS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: HACS validation
uses: hacs/action@main
with:
category: integration
ignore: brands
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ known_first_party = [
skip_glob= [".venv*/*"]

[tool.ruff]
target-version = "py310"
target-version = "py311"
line-length = 120
select = ["E", "F", "W", "T20", "Q"]

[tool.ruff.flake8-quotes]
inline-quotes = "single"

0 comments on commit b8b1fb8

Please sign in to comment.