Skip to content

Commit

Permalink
bumping to 0.1.6 for dependencies, replacing pylint with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
yaleman committed Mar 20, 2023
1 parent f7f8de0 commit e329347
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
run: |
python -m pip install --quiet --no-cache-dir --upgrade poetry
poetry install
poetry run pylint $(basename $(pwd) | sed -E 's/-/_/g')
poetry run pylint tests/
poetry run ruff $(basename $(pwd) | sed -E 's/-/_/g')
poetry run ruff tests/
2 changes: 1 addition & 1 deletion examples/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from config import args
from pygoodwe import API

def main():
def main() -> None:
""" dumps the raw data """
goodwe = API(
system_id=args.get('gw_station_id', '1'),
Expand Down
1 change: 0 additions & 1 deletion pygoodwe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from datetime import date, datetime
import json
from json.decoder import JSONDecodeError
import logging
import os
from pathlib import Path
Expand Down
28 changes: 15 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pygoodwe"
version = "0.1.5"
version = "0.1.6"
description = "A command line tool and python library to query the GOODWE SEMS Portal APIs."
authors = ["James Hodgkinson <james@terminaloutcomes.com>"]
license = "MIT"
Expand All @@ -20,6 +20,17 @@ keywords = [
]
readme = "README.md"

[tool.poetry.group.dev.dependencies]
ruff = "^0.0.257"
types-requests = "^2.28.11"
pytest = "^7.1.3"
mypy = "^1.0"
black = "^23.1.0"
pylint-pytest = "^1.1.2"
mkdocs = "^1.4.2"
mkdocs-material = "^9.0.2"
mkdocstrings = "^0.20.0"
mkdocstrings-python = "^0.8.0"

[project.urls]
documentation = "https://yaleman.github.io/pygoodwe/"
Expand All @@ -31,18 +42,6 @@ repository = "https://github.com/yaleman/pygoodwe"
python = "^3.8"
requests = "^2.28.1"

[tool.poetry.dev-dependencies]
types-requests = "^2.28.11"
pylint = "^2.15.5"
pytest = "^7.1.3"
mypy = "^1.0"
black = "^23.1.0"
pylint-pytest = "^1.1.2"
mkdocs = "^1.4.2"
mkdocs-material = "^9.0.2"
mkdocstrings = "^0.20.0"
mkdocstrings-python = "^0.8.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand All @@ -51,3 +50,6 @@ build-backend = "poetry.core.masonry.api"
disable="W0511"
max-line-length=150
load-plugins="pylint_pytest"

[tool.ruff]
line-length=150

0 comments on commit e329347

Please sign in to comment.