From 4f8a4b99f2d317b70defc86aa708e0b2bff2ee21 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Tue, 16 Apr 2024 20:51:35 +0000 Subject: [PATCH] ci: sync configs --- README.md | 7 +++---- irclib/util/commands.py | 3 ++- pyproject.toml | 6 +++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ee82e26..d8b28a5 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,9 @@ A Python library for working with the IRC protocol [![CD - Build](https://github.com/TotallyNotRobots/py-irclib/actions/workflows/python-publish.yml/badge.svg)](https://github.com/TotallyNotRobots/py-irclib/actions/workflows/python-publish.yml) [![codecov](https://codecov.io/gh/TotallyNotRobots/py-irclib/graph/badge.svg?token=BMp9fmX55x)](https://codecov.io/gh/TotallyNotRobots/py-irclib) - -[![PyPI - Version](https://img.shields.io/pypi/v/py-irclib.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/py-irclib/) -[![PyPI - Downloads](https://img.shields.io/pypi/dm/py-irclib.svg?color=blue&label=Downloads&logo=pypi&logoColor=gold)](https://pypi.org/project/py-irclib/) -[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py-irclib.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/py-irclib/) +[![PyPI - Version](https://img.shields.io/pypi/v/py-irclib.svg)](https://pypi.org/project/py-irclib/) +[![PyPI - Downloads](https://img.shields.io/pypi/dm/py-irclib.svg)](https://pypi.org/project/py-irclib/) +[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py-irclib.svg)](https://pypi.org/project/py-irclib/) [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy) diff --git a/irclib/util/commands.py b/irclib/util/commands.py index 2c03e74..43c0b47 100644 --- a/irclib/util/commands.py +++ b/irclib/util/commands.py @@ -34,7 +34,8 @@ def parse(cls, s: str) -> "CommandArgument": elif start_end == "[]": required = False else: - raise ValueError("Unable to parse argument: " + s) + msg = f"Unable to parse argument: {s}" + raise ValueError(msg) return cls(name, required) diff --git a/pyproject.toml b/pyproject.toml index 3ab7bfe..48a683f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,13 +140,17 @@ split-on-trailing-comma = false [tool.ruff.lint.pydocstyle] convention = "pep257" +[tool.flynt] +aggressive = true +transform-joins = true +transform-concats = true + [tool.mypy] namespace_packages = true python_version = "3.8" warn_unused_configs = true strict = true strict_optional = true -ignore_missing_imports = true check_untyped_defs = true show_error_codes = true warn_unused_ignores = true