diff --git a/Dockerfile.base b/base.Dockerfile similarity index 100% rename from Dockerfile.base rename to base.Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index fbbe87d..93847ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: base-image: image: yt-base-image build: - dockerfile: Dockerfile.base + dockerfile: base.Dockerfile deploy: mode: replicated replicas: 0 diff --git a/pyproject.toml b/pyproject.toml index 402e240..64c2af0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,8 @@ [tool.black] line-length = 88 skip-string-normalization = 1 + +[tool.ruff] +line-length = 88 +# Skip line length violations +ignore = ["E501"] diff --git a/yt_shared/yt_shared/rabbit/rabbit.py b/yt_shared/yt_shared/rabbit/rabbit.py index a009da4..1b32fda 100644 --- a/yt_shared/yt_shared/rabbit/rabbit.py +++ b/yt_shared/yt_shared/rabbit/rabbit.py @@ -48,8 +48,8 @@ class RabbitMQ: queue = await self.channel.declare_queue(**queue_data) queue_name = queue_data['name'] bindings = self._config['queue_bindings'][queue_name] - for settings in bindings: - await queue.bind(self.exchanges[settings['exchange_name']]) + for _settings in bindings: + await queue.bind(self.exchanges[_settings['exchange_name']]) self.queues[queue_name] = queue async def close(self) -> None: