Skip to content

Commit

Permalink
Stable release (#24)
Browse files Browse the repository at this point in the history
* Stable release

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
qexat and pre-commit-ci[bot] authored Jul 14, 2023
1 parent ab3034e commit fb33e31
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
[project]
name = "Coquille"
version = "0.1.4"
authors = [{name = "Qexat"}]
version = "1.0.1"
authors = [{ name = "Qexat" }]
description = "Coquille is a library that wraps terminal escape sequences as convenient functions."
readme = "README.md"
requires-python = ">=3.9"
license = {text = "MIT"}
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
keywords = ["terminal", "escape sequences"]

[project.urls]
homepage = "https://github.com/qexat/Coquille"
repository = "https://github.com/qexat/Coquille"

[project.optional-dependencies]
dev = ["pytest", "coverage", "build", "twine"]

[build-system]
requires = ["setuptools", "setuptools-scm"]
Expand Down
4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

6 changes: 5 additions & 1 deletion src/coquille/coquille.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyright: reportUnusedCallResult = false
from __future__ import annotations

import sys
Expand Down Expand Up @@ -84,7 +85,7 @@ def apply(

string: EscapeSequence = prepare(sequence, *args, **kwargs)
target = file or sys.stdout
target.write(string) # type: ignore[unused]
target.write(string)


class _ContextCoquille:
Expand Down Expand Up @@ -247,3 +248,6 @@ def __exit__(self, *_) -> None:
"""

apply(soft_reset, self.file)


write = Coquille.write

0 comments on commit fb33e31

Please sign in to comment.