Skip to content

Commit

Permalink
ci: sync configs
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Apr 16, 2024
1 parent d172c46 commit 4f8a4b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion irclib/util/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f8a4b9

Please sign in to comment.