diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9ee838..9572560 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,11 +18,11 @@ jobs: - uses: actions/setup-python@v6.2.0 with: - python-version: "3.12" + python-version: "3.10" - run: pip install ".[dev]" - - run: ruff check . --fix && ruff format . && mypy pyfragment + - run: ruff check . && ruff format --check . && mypy pyfragment test: name: Tests (Python ${{ matrix.python-version }}) diff --git a/pyproject.toml b/pyproject.toml index a70d674..32a72c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,38 +9,51 @@ description = "Async Python client for the Fragment API — a unified toolkit to readme = "README.md" license = { text = "MIT" } requires-python = ">=3.10" -authors = [{ name = "bohd4nx", url = "https://github.com/bohd4nx" }] -keywords = ["fragment", "telegram", "ton", "stars", "premium", "crypto", "blockchain"] +authors = [{ name = "bohd4nx" }] +keywords = [ + "fragment", + "fragment-api", + "telegram", + "telegram-stars", + "telegram-premium", + "ton", + "tonkeeper", + "tonapi", + "crypto", + "blockchain", + "web3", + "giveaway", + "anonymous-number", + "username", + "nft", + "async", + "asyncio", +] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", + "Intended Audience :: Financial and Insurance Industry", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", + "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Framework :: AsyncIO", + "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Internet", + "Topic :: Internet :: WWW/HTTP", "Topic :: Office/Business :: Financial", + "Topic :: Office/Business :: Financial :: Investment", "Typing :: Typed", ] -dependencies = [ - "httpx>=0.25", - "rookiepy>=0.5.6", - "tonutils>=2.0.1", -] +dependencies = ["httpx>=0.25", "rookiepy>=0.5.6", "tonutils>=2.0.1"] [project.optional-dependencies] -dev = [ - "pytest", - "pytest-asyncio", - "pytest-mock", - "mypy", - "ruff", -] +dev = ["pytest", "pytest-asyncio", "pytest-mock", "mypy", "ruff"] [project.urls] Homepage = "https://github.com/bohd4nx/pyfragment" @@ -52,10 +65,10 @@ Changelog = "https://github.com/bohd4nx/pyfragment/blob/master/CHANGELOG.md" packages = ["pyfragment"] [tool.pytest.ini_options] -testpaths = ["tests"] +testpaths = ["tests"] python_files = ["[0-9][0-9][0-9]_test_*.py"] asyncio_mode = "auto" -addopts = "-v --tb=short" +addopts = "-v --tb=short" [tool.ruff] line-length = 128 @@ -69,9 +82,10 @@ select = ["E", "F", "W", "I", "UP"] ignore = ["E501", "UP017"] [tool.ruff.lint.per-file-ignores] -"tests/*" = ["E402"] +"tests/*" = ["E402"] "systests/*" = ["E402"] [tool.mypy] python_version = "3.10" strict = true +exclude = ["^systests/", "^examples/"]