Skip to content

Commit

Permalink
update to template
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstenBreuer committed Oct 7, 2023
1 parent 2d42898 commit bd2d996
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 256 deletions.
240 changes: 0 additions & 240 deletions migrate_v3.py

This file was deleted.

15 changes: 3 additions & 12 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --all-extras --generate-hashes --output-file=/workspace/requirements-dev.txt /tmp/tmp1hnr822i/pyproject.toml /workspace/requirements-dev.in
# pip-compile --all-extras --generate-hashes --output-file=/workspace/requirements-dev.txt /tmp/tmpx46hbaou/pyproject.toml /workspace/requirements-dev.in
#
aiokafka==0.8.1 \
--hash=sha256:1e24839088fd6d3ff481cc09a48ea487b997328df11630bc0a1b88255edbcfe9 \
Expand Down Expand Up @@ -320,9 +320,7 @@ dependency-injector==4.41.0 \
--hash=sha256:e3229d83e99e255451605d5276604386e06ad948e3d60f31ddd796781c77f76f \
--hash=sha256:f2842e15bae664a9f69932e922b02afa055c91efec959cb1896f6c499bf68180 \
--hash=sha256:f89a507e389b7e4d4892dd9a6f5f4da25849e24f73275478634ac594d621ab3f
# via
# hexkit
# hexkit (pyproject.toml)
# via hexkit (pyproject.toml)
deprecation==2.1.0 \
--hash=sha256:72b3bde64e5d778694b0cf68178aed03d15e15477116add3fb773e581f9518ff \
--hash=sha256:a10811591210e1fb0e768a8c25517cabeabcba6f0bf96564f8ff45189f90b14a
Expand Down Expand Up @@ -357,10 +355,6 @@ h11==0.14.0 \
--hash=sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d \
--hash=sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761
# via httpcore
hexkit[test-all]==0.3.1 \
--hash=sha256:4c344c34548ff5fd7ca0050ffa21de82eb3c51c207b9fbde6ce9b808fa834f15 \
--hash=sha256:525ca0e91f58e088104efb99724a93758e041546c9a0b52b88aa3b59b089896d
# via -r /workspace/requirements-dev.in
httpcore==0.18.0 \
--hash=sha256:13b5e5cd1dca1a6636a6aaea212b19f4f85cd88c366a2b82304181b769aab3c9 \
--hash=sha256:adc5398ee0a476567bf87467063ee63584a8bce86078bf748e48754f60202ced
Expand Down Expand Up @@ -527,9 +521,7 @@ pydantic==1.10.13 \
--hash=sha256:efff03cc7a4f29d9009d1c96ceb1e7a70a65cfe86e89d34e4a5f2ab1e5693737 \
--hash=sha256:f59ef915cac80275245824e9d771ee939133be38215555e9dc90c6cb148aaeb5 \
--hash=sha256:f8e81fc5fb17dae698f52bdd1c4f18b6ca674d7068242b2aff075f588301bbb0
# via
# hexkit
# hexkit (pyproject.toml)
# via hexkit (pyproject.toml)
pymongo==4.5.0 \
--hash=sha256:076afa0a4a96ca9f77fec0e4a0d241200b3b3a1766f8d7be9a905ecf59a7416b \
--hash=sha256:08819da7864f9b8d4a95729b2bea5fffed08b63d3b9c15b4fea47de655766cf5 \
Expand Down Expand Up @@ -700,7 +692,6 @@ pyyaml==6.0.1 \
--hash=sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d \
--hash=sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f
# via
# hexkit
# hexkit (pyproject.toml)
# jsonschema2md
# pre-commit
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --all-extras --constraint=/workspace/requirements-dev.txt --generate-hashes --output-file=/workspace/requirements.txt /tmp/tmp1hnr822i/pyproject.toml
# pip-compile --all-extras --constraint=/workspace/requirements-dev.txt --generate-hashes --output-file=/workspace/requirements.txt /tmp/tmpx46hbaou/pyproject.toml
#
aiokafka==0.8.1 \
--hash=sha256:1e24839088fd6d3ff481cc09a48ea487b997328df11630bc0a1b88255edbcfe9 \
Expand Down
2 changes: 1 addition & 1 deletion src/hexkit/providers/akafka/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def generate_ssl_context(config: KafkaConfig) -> Optional[ssl.SSLContext]:
class KafkaProducerCompatible(Protocol):
"""A python duck type protocol describing an AIOKafkaProducer or equivalent."""

def __init__(
def __init__( # noqa: PLR0913
self,
*,
bootstrap_servers: str,
Expand Down
2 changes: 1 addition & 1 deletion src/hexkit/providers/akafka/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ async def kafka_fixture_function() -> AsyncGenerator[KafkaFixture, None]:
"""
with KafkaContainer(image="confluentinc/cp-kafka:5.4.9-1-deb8") as kafka:
kafka_servers = [kafka.get_bootstrap_server()]
config = KafkaConfig(
config = KafkaConfig( # type: ignore
service_name="test_publisher",
service_instance_id="001",
kafka_servers=kafka_servers,
Expand Down
4 changes: 3 additions & 1 deletion src/hexkit/providers/mongodb/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ async def get_by_id(self, id_: str) -> Dto:
Raises:
ResourceNotFoundError: when resource with the specified id_ was not found
"""
document = await self._collection.find_one({"_id": id_}, session=self._session)
document = await self._collection.find_one( # type: ignore
{"_id": id_}, session=self._session
)

if document is None:
raise ResourceNotFoundError(id_=id_)
Expand Down

0 comments on commit bd2d996

Please sign in to comment.