Просмотр исходного кода

Merge pull request #466 from Kosmorro/chore/poetry-check

chore: validate Poetry configuration
pull/467/head
Deuchnord 2 недель назад
committed by GitHub
Родитель
Сommit
bfb7c60922
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
3 измененных файлов: 32 добавлений и 15 удалений
  1. +15
    -1
      .github/workflows/black.yml
  2. +1
    -1
      poetry.lock
  3. +16
    -13
      pyproject.toml

+ 15
- 1
.github/workflows/black.yml Просмотреть файл

@@ -1,4 +1,4 @@
name: Code style
name: Checks


on: on:
push: push:
@@ -17,3 +17,17 @@ jobs:
with: with:
python-version: '3.x' python-version: '3.x'
- uses: psf/black@stable - uses: psf/black@stable

poetry-check:
runs-on: ubuntu-latest

name: Poetry
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: '3.x'
- run: |
pip install -U pip poetry
poetry install
- run: poetry check --strict

+ 1
- 1
poetry.lock Просмотреть файл

@@ -613,4 +613,4 @@ tests = ["pytest", "pytest-cov"]
[metadata] [metadata]
lock-version = "2.1" lock-version = "2.1"
python-versions = "^3.12" python-versions = "^3.12"
content-hash = "961efffd4b8b692c1f6b5ab9a3d1626f9fbeeee7e4868b2d876d324cd60f3f1f"
content-hash = "8fbdf8d0016b2de7b23bfbaad5b1ce04f92072696c50c621113943eb80108a53"

+ 16
- 13
pyproject.toml Просмотреть файл

@@ -1,29 +1,32 @@
[tool.poetry]
[project]
name = "kosmorro" name = "kosmorro"
version = "1.0.2" version = "1.0.2"
description = "A program to compute the ephemerides." description = "A program to compute the ephemerides."
authors = ["Jérôme Deuchnord <jerome@deuchnord.fr>"]
authors = [
{ "name" = "Jérôme Deuchnord", "email" = "jerome@deuchnord.fr>" }
]
license = "AGPL-3.0-or-later" license = "AGPL-3.0-or-later"
readme = "README.md" readme = "README.md"


requires-python = "^3.12"
dependencies = [
"tabulate (>=0.8,<0.11)",
"termcolor (>=3.0,<4.0)",
"kosmorrolib (>=1.0,<2.0)",
"python-dateutil (>=2.8,<3.0)",
"Babel (>=2.9,<3.0)",
"pytz (>=2025.2,<2027.0)",
"argcomplete (>=3.6.2,<4.0)",
]

include = [ include = [
{ path = "kosmorro/locales/**/*.mo", format=["sdist", "wheel"] }, { path = "kosmorro/locales/**/*.mo", format=["sdist", "wheel"] },
{ path = "kosmorro/assets", format=["sdist", "wheel"] }, { path = "kosmorro/assets", format=["sdist", "wheel"] },
] ]


[tool.poetry.scripts]
[project.scripts]
kosmorro = 'kosmorro.__main__:main' kosmorro = 'kosmorro.__main__:main'


[tool.poetry.dependencies]
python = "^3.12"
tabulate = ">=0.8,<0.11"
termcolor = "^3.0"
kosmorrolib = "^1.0"
python-dateutil = "^2.8"
Babel = "^2.9"
pytz = ">=2025.2,<2027.0"
argcomplete = "^3.6.2"

[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
black = ">=24.8,<27.0" black = ">=24.8,<27.0"
pytest = ">=8.3,<10.0" pytest = ">=8.3,<10.0"


Загрузка…
Отмена
Сохранить