Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3aecf2b5df | |||
| 0cdb8b171f | |||
| 027f8cceb3 | |||
| 1162fcdd0d | |||
| f609a92952 | |||
| cba0639f92 | |||
| 6af9b114ed | |||
| d800b6535e | |||
| b8f2131d97 |
@@ -30,13 +30,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pytest tests/ -v --tb=short
|
python -m pytest tests/ -v --tb=short
|
||||||
|
|
||||||
- name: Upload coverage
|
|
||||||
if: matrix.python-version == '3.12'
|
|
||||||
uses: codecov/codecov-action@v4
|
|
||||||
with:
|
|
||||||
files: ./coverage.xml
|
|
||||||
fail_ci_if_error: false
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -82,4 +75,3 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install dist/i18n_guardian-1.0.0-py3-none-any.whl
|
pip install dist/i18n_guardian-1.0.0-py3-none-any.whl
|
||||||
python -c "import i18n_guardian; print('Package imported successfully')"
|
python -c "import i18n_guardian; print('Package imported successfully')"
|
||||||
i18n-guardian --version
|
|
||||||
|
|||||||
57
app/pyproject.toml
Normal file
57
app/pyproject.toml
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61.0", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "i18n-guardian"
|
||||||
|
version = "1.0.0"
|
||||||
|
description = "A CLI tool that scans codebases for internationalization issues"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.10"
|
||||||
|
license = {text = "MIT"}
|
||||||
|
authors = [
|
||||||
|
{name = "i18n-guardian Team"}
|
||||||
|
]
|
||||||
|
keywords = ["i18n", "internationalization", "cli", "l10n", "localization"]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12"
|
||||||
|
]
|
||||||
|
dynamic = []
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
"click>=8.1.8",
|
||||||
|
"pyyaml>=6.0.3",
|
||||||
|
"rich>=14.3.2",
|
||||||
|
"pathspec>=1.0.4",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = [
|
||||||
|
"pytest>=9.0.2",
|
||||||
|
"pytest-cov>=6.1.2",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
i18n-guardian = "i18n_guardian.cli:main"
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
where = ["."]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
testpaths = ["tests"]
|
||||||
|
python_files = ["test_*.py"]
|
||||||
|
python_classes = ["Test*"]
|
||||||
|
python_functions = ["test_*"]
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
source = ["i18n_guardian"]
|
||||||
|
omit = ["tests/*"]
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
exclude_lines = ["pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError"]
|
||||||
6
app/requirements.txt
Normal file
6
app/requirements.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
click==8.1.8
|
||||||
|
pyyaml==6.0.3
|
||||||
|
rich==14.3.2
|
||||||
|
pathspec==1.0.4
|
||||||
|
pytest==9.0.2
|
||||||
|
pytest-cov==6.1.2
|
||||||
25
app/setup.py
Normal file
25
app/setup.py
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="i18n-guardian",
|
||||||
|
version="1.0.0",
|
||||||
|
packages=find_packages(),
|
||||||
|
install_requires=[
|
||||||
|
"click>=8.1.8",
|
||||||
|
"pyyaml>=6.0.3",
|
||||||
|
"rich>=14.3.2",
|
||||||
|
"pathspec>=1.0.4",
|
||||||
|
],
|
||||||
|
extras_require={
|
||||||
|
"dev": [
|
||||||
|
"pytest>=9.0.2",
|
||||||
|
"pytest-cov>=6.1.2",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
entry_points={
|
||||||
|
"console_scripts": [
|
||||||
|
"i18n-guardian=i18n_guardian.cli:main",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
python_requires=">=3.10",
|
||||||
|
)
|
||||||
@@ -25,7 +25,6 @@ classifiers = [
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"click>=8.1.8",
|
"click>=8.1.8",
|
||||||
"tree-sitter>=0.25.2",
|
|
||||||
"pyyaml>=6.0.3",
|
"pyyaml>=6.0.3",
|
||||||
"rich>=14.3.2",
|
"rich>=14.3.2",
|
||||||
"pathspec>=1.0.4",
|
"pathspec>=1.0.4",
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
click==8.1.8
|
click==8.1.8
|
||||||
tree-sitter==0.25.2
|
|
||||||
tree-sitter-python==0.25.0
|
|
||||||
tree-sitter-javascript==0.25.0
|
|
||||||
tree-sitter-typescript==0.23.2
|
|
||||||
pyyaml==6.0.3
|
pyyaml==6.0.3
|
||||||
rich==14.3.2
|
rich==14.3.2
|
||||||
pathspec==1.0.4
|
pathspec==1.0.4
|
||||||
|
|||||||
Reference in New Issue
Block a user