diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1109e3d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,58 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "i18n-key-sync" +version = "1.0.0" +description = "A CLI tool that scans source code to extract, validate, and manage i18n translation keys" +readme = "README.md" +license = {text = "MIT"} +requires-python = ">=3.9" +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +keywords = ["i18n", "internationalization", "translation", "cli", "localization"] +authors = [ + {name = "i18n-key-sync", email = "dev@example.com"} +] +dependencies = [ + "click>=8.0", + "pyyaml>=6.0", + "rich>=12.0", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.0", + "pytest-cov>=4.0", + "ruff>=0.1.0", +] + +[project.scripts] +i18n-key-sync = "i18n_key_sync.cli:main" + +[tool.setuptools.packages.find] +include = ["i18n_key_sync*"] + +[tool.ruff] +line-length = 100 +target-version = "py39" + +[tool.ruff.lint] +select = ["E", "F", "W", "I", "D", "UP", "B", "C90", "N", "YTT", "ASYNC", "PIE", "T20", "SIM", "ARG", "PTH", "PL", "TRY", "PERF", "FURB"] +ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short"