Skip to content

Commit 9981f97

Browse files
committed
fix lint and type issues
1 parent fa4be6c commit 9981f97

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ jobs:
3030
python -m pip install flake8 pytest
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3232
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
33-
- name: Lint with flake8
34-
run: |
35-
# stop the build if there are Python syntax errors or undefined names
36-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33+
- name: Ruff
34+
uses: chartboost/ruff-action@v1
3935
- name: Test with pytest
4036
run: |
4137
pytest

custom_components/mikrotik_sms/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain":"mikrotik_sms",
33
"name":"Mikrotik SMS",
4-
"version":"0.9.0",
4+
"version":"0.9.1",
55
"requirements":[
66
"RouterOS-api==0.17.0",
77
"phonenumbers>=8.13.0"

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
name = "mikrotik_sms"
33
readme = "README.md"
44

5-
65
[tool.ruff]
76
line-length = 128
87
indent-width = 4
@@ -58,11 +57,9 @@ unfixable = ["B"]
5857
"**/{tests,docs}/*" = ["ANN201","ANN204","ANN001","ARG002","ARG001","ANN202","PT004","ARG001","SIM115"]
5958
"conftest.py" = ["ANN201","ANN204","ANN001","ARG002","ARG001","ANN202","PT004","ARG001","SIM115"]
6059

61-
6260
[tool.ruff.format]
6361
preview = true
6462

65-
6663
[tool.poetry.group.dev.dependencies]
6764
homeassistant-stubs = "2024.2.2"
6865

0 commit comments

Comments
 (0)