Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove southern_company_hacs and change to ruff #87

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
github-token: ${{ secrets.mytoken }}
36 changes: 6 additions & 30 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
hooks:
- id: check-added-large-files
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: black
name: black
entry: black
language: system
types: [python]
require_serial: true
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
require_serial: true
- id: reorder-python-imports
name: Reorder python imports
entry: reorder-python-imports
language: system
types: [python]
args: [--application-directories=custom_components]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
hooks:
- id: prettier
- id: ruff
args:
- --fix
- id: ruff-format
1 change: 1 addition & 0 deletions custom_components/southern_company/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The Southern Company integration."""

from __future__ import annotations

from homeassistant.config_entries import ConfigEntry
Expand Down
1 change: 1 addition & 0 deletions custom_components/southern_company/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Southern Company integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/southern_company/coordinator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Coordinator to handle southern Company connections."""

import datetime
import logging
from datetime import timedelta
Expand Down
1 change: 1 addition & 0 deletions custom_components/southern_company/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Southern Company sensors."""

from __future__ import annotations

from collections.abc import Callable
Expand Down
37 changes: 0 additions & 37 deletions custom_components/southern_company_hacs/__init__.py

This file was deleted.

44 changes: 0 additions & 44 deletions custom_components/southern_company_hacs/config_flow.py

This file was deleted.

3 changes: 0 additions & 3 deletions custom_components/southern_company_hacs/const.py

This file was deleted.

12 changes: 0 additions & 12 deletions custom_components/southern_company_hacs/manifest.json

This file was deleted.

20 changes: 0 additions & 20 deletions custom_components/southern_company_hacs/strings.json

This file was deleted.

18 changes: 0 additions & 18 deletions custom_components/southern_company_hacs/translations/en.json

This file was deleted.

Loading