From a1750b0e7bd2fb9e357d452bf66c309d8e3b6b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eigil=20Skj=C3=A6veland?= Date: Thu, 20 Jun 2024 14:38:25 +0200 Subject: [PATCH 1/2] python: Remove unused files --- python/zeroeventhub/.flake8 | 10 ---------- python/zeroeventhub/.pylintrc | 5 ----- python/zeroeventhub/pyproject.toml | 9 --------- 3 files changed, 24 deletions(-) delete mode 100644 python/zeroeventhub/.flake8 delete mode 100644 python/zeroeventhub/.pylintrc diff --git a/python/zeroeventhub/.flake8 b/python/zeroeventhub/.flake8 deleted file mode 100644 index 373de49..0000000 --- a/python/zeroeventhub/.flake8 +++ /dev/null @@ -1,10 +0,0 @@ -[flake8] -ignore = F401,W503 -# E203 is ignored for black compatibility, see -# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8 -# for more info -extend-ignore = E203 -max-line-length = 100 -exclude = - .venv - __pycache__ diff --git a/python/zeroeventhub/.pylintrc b/python/zeroeventhub/.pylintrc deleted file mode 100644 index 667e087..0000000 --- a/python/zeroeventhub/.pylintrc +++ /dev/null @@ -1,5 +0,0 @@ -[MAIN] -load-plugins=pylint.extensions.docparams - -[BASIC] -no-docstring-rgx=^$ diff --git a/python/zeroeventhub/pyproject.toml b/python/zeroeventhub/pyproject.toml index 79d0b1e..ecd0588 100644 --- a/python/zeroeventhub/pyproject.toml +++ b/python/zeroeventhub/pyproject.toml @@ -153,15 +153,6 @@ reportUnnecessaryTypeIgnoreComment = "error" reportMatchNotExhaustive = "warning" reportShadowedImports = true -[[tool.mypy.overrides]] -module = "tests.*" -# `disallow_untyped_defs` has to be explicitly disabled because it is enabled by -# `strict`, and just setting `check_untyped_defs` does not disable it, even -# though it is from the same option group as `check_untyped_defs`. With it -# enabled Mypy complains about test functions without type annotations. -disallow_untyped_defs = false -check_untyped_defs = true - [tool.pytest.ini_options] asyncio_mode = "auto" From a5cefc8bb625acf8427afa89ff292eb667625bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eigil=20Skj=C3=A6veland?= Date: Thu, 20 Jun 2024 14:38:58 +0200 Subject: [PATCH 2/2] python: Update docs --- python/zeroeventhub/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python/zeroeventhub/README.md b/python/zeroeventhub/README.md index e6f6554..86cfc59 100644 --- a/python/zeroeventhub/README.md +++ b/python/zeroeventhub/README.md @@ -114,7 +114,7 @@ This library makes it easy to setup a zeroeventhub feed endpoint with FastAPI. To run the test suite, assuming you already have Python 3.10 or later installed and on your `PATH`: ```sh -pip install poetry==1.5.1 +pip install poetry==1.8.3 poetry config virtualenvs.in-project true poetry install --sync poetry run coverage run --branch -m pytest @@ -126,8 +126,7 @@ Then, you can open the `htmlcov/index.html` file in your browser to look at the Also, to pass the CI checks, you may want to run the following before pushing your changes: ```sh -poetry run black tests/ zeroeventhub/ -poetry run pylint ./zeroeventhub/ -poetry run flake8 -poetry run mypy +poetry run ruff format +poetry run ruff check +poetry run pyright ```