Skip to content

Commit

Permalink
Basic example for pytest
Browse files Browse the repository at this point in the history
Just an example. Not prescriptive.
  • Loading branch information
dvx76 committed Sep 20, 2024
1 parent 9820239 commit 8dd49c9
Show file tree
Hide file tree
Showing 5 changed files with 552 additions and 47 deletions.
143 changes: 109 additions & 34 deletions poetry.lock

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

29 changes: 16 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ authors = ["Frederick Gnodtke <frederick@gnodtke.net>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.12.0"
beautifulsoup4 = "^4"
aiohttp = "^3"
asyncclick = { version = "^8.1.7.2", optional = true }
asyncio = "^3"
asyncio-paho = "^0.6.0"
beautifulsoup4 = "^4"
coloredlogs = { version = "^15.0.1", optional = true }
paho-mqtt = "^1"
pydantic = "^1"
pyjwt = "^2"
python = ">=3.12.0"
pyyaml = "^6"
pydantic = "^1"
asyncio = "^3"
asyncclick = { version = "^8.1.7.2", optional = true }
termcolor = { version = "^2.4.0", optional = true }
paho-mqtt = "^1"
coloredlogs = {version = "^15.0.1", optional = true}
asyncio-paho = "^0.6.0"

[tool.poetry.group.dev.dependencies]
ruff = "^0.6.4"
pyright = "^1.1.379"
pytest = "^8"
pytest-asyncio = "^0"
ruff = "^0.6.4"

[tool.poetry.scripts]
myskoda = "myskoda.cli:cli"
Expand All @@ -30,26 +32,27 @@ myskoda = "myskoda.cli:cli"
cli = ["asyncclick", "coloredlogs", "termcolor"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]

[tool.ruff]
target-version = "py312"
line-length = 100
target-version = "py312"

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # missing-trailing-comma
"D101", # undocumented-public-class
"D103", # undocumented-public-function
"D203", # one-blank-line-before-class
"D211", # blank-line-before-class
"D213", # multi-line-summary-second-line
"FBT001", # boolean-type-hint-positional-argument
"FIX002", # line-contains-todo
"G004", # logging-f-string
"ISC001", # single-line-implicit-string-concatenation
"S101", # assert (used in tests)
"T201", # print
"TD003", # missing-todo-link
"FBT001", # boolean-type-hint-positional-argument
]
select = ["ALL"]
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Tests."""
Loading

0 comments on commit 8dd49c9

Please sign in to comment.