Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 4, 2023
1 parent a4ef991 commit 3450d72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
3 changes: 1 addition & 2 deletions em/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,11 @@ def cli() -> None:

# Search mode.
if args.search:

# Lookup the search term.
found = do_find(lookup, names[0])

# print them to the screen.
for (name, emoji) in found:
for name, emoji in found:
# Some registered emoji have no value.
try:
# Copy the results (and say so!) to the clipboard.
Expand Down
27 changes: 12 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires = [
]

[project]
name = "em_keyboard"
name = "em-keyboard"
description = "The CLI Emoji Keyboard"
readme = "README.md"
keywords = [
Expand All @@ -19,14 +19,6 @@ license = {text = "ISC"}
maintainers = [{name = "Hugo van Kemenade"}]
authors = [{name = "Kenneth Reitz", email = "me@kennethreitz.org"}]
requires-python = ">=3.7"
dependencies = [
'importlib-metadata; python_version < "3.8"',
'pyperclip; platform_system == "Darwin"',
'pyperclip; platform_system == "Windows"',
]
dynamic = [
"version",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand All @@ -44,24 +36,26 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = [
"version",
]
dependencies = [
'importlib-metadata; python_version < "3.8"',
'pyperclip; platform_system == "Darwin"',
'pyperclip; platform_system == "Windows"',
]
[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
]

[project.urls]
Changelog = "https://github.com/hugovk/em-keyboard/releases"
Homepage = "https://github.com/hugovk/em-keyboard"
Source = "https://github.com/hugovk/em-keyboard"

[project.scripts]
em = "em:cli"


[tool.black]
target_version = ["py37"]

[tool.hatch]
version.source = "vcs"

Expand All @@ -71,6 +65,9 @@ version.source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[tool.black]
target_version = ["py37"]

[tool.isort]
profile = "black"

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ commands =
em -s test

[testenv:lint]
passenv =
PRE_COMMIT_COLOR
skip_install = true
deps =
pre-commit
passenv =
PRE_COMMIT_COLOR
commands =
pre-commit run --all-files --show-diff-on-failure

Expand Down

0 comments on commit 3450d72

Please sign in to comment.