Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: Fix some docs and delete some unused files #49

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions python/zeroeventhub/.flake8

This file was deleted.

5 changes: 0 additions & 5 deletions python/zeroeventhub/.pylintrc

This file was deleted.

9 changes: 4 additions & 5 deletions python/zeroeventhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
9 changes: 0 additions & 9 deletions python/zeroeventhub/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading