Loading .gitignore +1 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -15,3 +15,4 @@ requirements-dev.lock requirements.lock climax.spec .DS_Store uv.lock No newline at end of file .pre-commit-config.yaml +10 Changes for .pre-commit-config.yaml: 10 added lines, 0 removed lines. Original line number Diff line number Diff line repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.9.9 hooks: # Run the linter. - id: ruff args: [ --fix ] # Run the formatter. - id: ruff-format Makefile +6 −4 Changes for Makefile: 6 added lines, 4 removed lines. Original line number Diff line number Diff line install: ## Installation en développement, à n'exécuter qu'une fois rye sync uv sync uv run pre-commit install .PHONY:install locales: ## générer les fichiers de traductions Loading @@ -13,7 +14,7 @@ clean: .PHONY:clean build:locales ## construire le paquet rye run pyinstaller src/climax.py --strip --noconfirm --collect-submodules shellingham --collect-submodules urllib uv run pyinstaller src/climax.py --strip --noconfirm --collect-submodules shellingham --collect-submodules urllib mkdir dist/climax/_internal/climax mkdir dist/climax/_internal/climax/locales cp -r src/climax/locales/* dist/climax/_internal/climax/locales/ Loading @@ -23,11 +24,12 @@ build:locales ## construire le paquet .PHONY:build format: ## Formatage des sources avec Black rye run black ./src/ uv run ruff check --fix ./src/ uv run ruff format ./src/ .PHONY: format tests: ## Lancer les tests rye run python tests.py uv run python tests.py .PHONY: tests help: ## afficher l'aide Loading README.md +1 −1 Changes for README.md: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ climax is a CLI tool for MaX, Le Moteur d'Affichage XML. ## Prerequisite - Rye: `curl -sSf https://rye.astral.sh/get | bash` - uv: `curl -LsSf https://astral.sh/uv/install.sh | sh` - gettext ## Dev commands Loading pyproject.toml +21 −14 Changes for pyproject.toml: 21 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -2,21 +2,31 @@ name = "climax" version = "0.1.0" description = "CLI tool for MaX, Le Moteur d'Affichage XML." readme = "README.md" license = {text = "CECILL-C"} requires-python = ">= 3.12" authors = [ { name = "Mickaël Desfrênes", email = "mickael.desfrenes@unicaen.fr" } ] maintainers = [ { name = "Mickaël Desfrênes", email = "mickael.desfrenes@unicaen.fr" } ] dependencies = [ "typer>=0.12.3", "pyinstaller>=6.9.0", "typer>=0.15.1", "pyinstaller>=6.11.1", "requests>=2.32.3", "basexclient>=8.4.4", "beautifulsoup4>=4.12.3", "lxml>=5.3.0", "lxml-html-clean>=0.2.2", "geler-certic>=0.3.0", "lxml-html-clean>=0.4.1", "geler-certic>=0.4.1", ] [dependency-groups] dev = [ "pre-commit>=4.1.0", "ruff>=0.9.2", ] readme = "README.md" requires-python = ">= 3.12" [project.scripts] climax = 'climax.__main__:app' Loading @@ -25,14 +35,11 @@ climax = 'climax.__main__:app' requires = ["hatchling"] build-backend = "hatchling.build" [tool.rye] managed = true dev-dependencies = [ "black>=24.4.2", ] [tool.hatch.build.targets.wheel] packages = ["src/climax"] [tool.hatch.build.targets.src] packages = ["src/climax"] [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/climax"] Loading
.gitignore +1 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -15,3 +15,4 @@ requirements-dev.lock requirements.lock climax.spec .DS_Store uv.lock No newline at end of file
.pre-commit-config.yaml +10 Changes for .pre-commit-config.yaml: 10 added lines, 0 removed lines. Original line number Diff line number Diff line repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.9.9 hooks: # Run the linter. - id: ruff args: [ --fix ] # Run the formatter. - id: ruff-format
Makefile +6 −4 Changes for Makefile: 6 added lines, 4 removed lines. Original line number Diff line number Diff line install: ## Installation en développement, à n'exécuter qu'une fois rye sync uv sync uv run pre-commit install .PHONY:install locales: ## générer les fichiers de traductions Loading @@ -13,7 +14,7 @@ clean: .PHONY:clean build:locales ## construire le paquet rye run pyinstaller src/climax.py --strip --noconfirm --collect-submodules shellingham --collect-submodules urllib uv run pyinstaller src/climax.py --strip --noconfirm --collect-submodules shellingham --collect-submodules urllib mkdir dist/climax/_internal/climax mkdir dist/climax/_internal/climax/locales cp -r src/climax/locales/* dist/climax/_internal/climax/locales/ Loading @@ -23,11 +24,12 @@ build:locales ## construire le paquet .PHONY:build format: ## Formatage des sources avec Black rye run black ./src/ uv run ruff check --fix ./src/ uv run ruff format ./src/ .PHONY: format tests: ## Lancer les tests rye run python tests.py uv run python tests.py .PHONY: tests help: ## afficher l'aide Loading
README.md +1 −1 Changes for README.md: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ climax is a CLI tool for MaX, Le Moteur d'Affichage XML. ## Prerequisite - Rye: `curl -sSf https://rye.astral.sh/get | bash` - uv: `curl -LsSf https://astral.sh/uv/install.sh | sh` - gettext ## Dev commands Loading
pyproject.toml +21 −14 Changes for pyproject.toml: 21 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -2,21 +2,31 @@ name = "climax" version = "0.1.0" description = "CLI tool for MaX, Le Moteur d'Affichage XML." readme = "README.md" license = {text = "CECILL-C"} requires-python = ">= 3.12" authors = [ { name = "Mickaël Desfrênes", email = "mickael.desfrenes@unicaen.fr" } ] maintainers = [ { name = "Mickaël Desfrênes", email = "mickael.desfrenes@unicaen.fr" } ] dependencies = [ "typer>=0.12.3", "pyinstaller>=6.9.0", "typer>=0.15.1", "pyinstaller>=6.11.1", "requests>=2.32.3", "basexclient>=8.4.4", "beautifulsoup4>=4.12.3", "lxml>=5.3.0", "lxml-html-clean>=0.2.2", "geler-certic>=0.3.0", "lxml-html-clean>=0.4.1", "geler-certic>=0.4.1", ] [dependency-groups] dev = [ "pre-commit>=4.1.0", "ruff>=0.9.2", ] readme = "README.md" requires-python = ">= 3.12" [project.scripts] climax = 'climax.__main__:app' Loading @@ -25,14 +35,11 @@ climax = 'climax.__main__:app' requires = ["hatchling"] build-backend = "hatchling.build" [tool.rye] managed = true dev-dependencies = [ "black>=24.4.2", ] [tool.hatch.build.targets.wheel] packages = ["src/climax"] [tool.hatch.build.targets.src] packages = ["src/climax"] [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/climax"]