Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Maintenance (#49)
Browse files Browse the repository at this point in the history
* Small changes

* Bump version

* Fix mypy errors

* Add configuration for pytest

* Add empty line
  • Loading branch information
bieniu authored May 13, 2022
1 parent 2c65b1a commit 8969a4c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.32.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
args:
Expand Down Expand Up @@ -36,7 +36,7 @@ repos:
- mccabe==0.6.1
files: ^(zadnegoale|tests)/.+\.py$
- repo: https://github.com/PyCQA/bandit
rev: 1.7.2
rev: 1.7.4
hooks:
- id: bandit
args:
Expand All @@ -47,7 +47,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.2.0
hooks:
- id: no-commit-to-branch
args:
Expand Down
2 changes: 2 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Example of usage."""
import asyncio
import logging

Expand All @@ -11,6 +12,7 @@


async def main():
"""Main function."""
async with ClientSession() as websession:
try:
zadnegoale = ZadnegoAle(websession, REGION, debug=False)
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ no_implicit_optional = true
strict_equality = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
warn_unused_ignores = true

[tool:pytest]
asyncio_mode = strict
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

PROJECT_DIR = Path(__file__).parent.resolve()
README_FILE = PROJECT_DIR / "README.md"
VERSION = "0.6.2"
VERSION = "0.6.3"

setup(
name="zadnegoale",
Expand Down

0 comments on commit 8969a4c

Please sign in to comment.