From 1bc04c3e902a7aac4ad97cc7ad145db0e555d975 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Mon, 27 May 2024 21:01:41 +0200 Subject: [PATCH] ci: more simple poetry config --- .github/workflows/general.yml | 6 --- poetry.lock | 28 +------------- pyproject.toml | 69 ++--------------------------------- 3 files changed, 4 insertions(+), 99 deletions(-) diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index e8137e8..2ee7f21 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -34,12 +34,6 @@ jobs: - name: Run install run: poetry install - # - name: Run format - # run: poetry run ruff format --check --diff ./gopad - - # - name: Run coding - # run: poetry run ruff check ./gopad - - name: Run test run: poetry run pytest diff --git a/poetry.lock b/poetry.lock index 10d5366..d61fd60 100644 --- a/poetry.lock +++ b/poetry.lock @@ -308,32 +308,6 @@ files = [ [package.dependencies] six = ">=1.5" -[[package]] -name = "ruff" -version = "0.4.5" -description = "An extremely fast Python linter and code formatter, written in Rust." -optional = false -python-versions = ">=3.7" -files = [ - {file = "ruff-0.4.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:8f58e615dec58b1a6b291769b559e12fdffb53cc4187160a2fc83250eaf54e96"}, - {file = "ruff-0.4.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:84dd157474e16e3a82745d2afa1016c17d27cb5d52b12e3d45d418bcc6d49264"}, - {file = "ruff-0.4.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25f483ad9d50b00e7fd577f6d0305aa18494c6af139bce7319c68a17180087f4"}, - {file = "ruff-0.4.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:63fde3bf6f3ad4e990357af1d30e8ba2730860a954ea9282c95fc0846f5f64af"}, - {file = "ruff-0.4.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78e3ba4620dee27f76bbcad97067766026c918ba0f2d035c2fc25cbdd04d9c97"}, - {file = "ruff-0.4.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:441dab55c568e38d02bbda68a926a3d0b54f5510095c9de7f95e47a39e0168aa"}, - {file = "ruff-0.4.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1169e47e9c4136c997f08f9857ae889d614c5035d87d38fda9b44b4338909cdf"}, - {file = "ruff-0.4.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:755ac9ac2598a941512fc36a9070a13c88d72ff874a9781493eb237ab02d75df"}, - {file = "ruff-0.4.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f4b02a65985be2b34b170025a8b92449088ce61e33e69956ce4d316c0fe7cce0"}, - {file = "ruff-0.4.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:75a426506a183d9201e7e5664de3f6b414ad3850d7625764106f7b6d0486f0a1"}, - {file = "ruff-0.4.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:6e1b139b45e2911419044237d90b60e472f57285950e1492c757dfc88259bb06"}, - {file = "ruff-0.4.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:a6f29a8221d2e3d85ff0c7b4371c0e37b39c87732c969b4d90f3dad2e721c5b1"}, - {file = "ruff-0.4.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:d6ef817124d72b54cc923f3444828ba24fa45c3164bc9e8f1813db2f3d3a8a11"}, - {file = "ruff-0.4.5-py3-none-win32.whl", hash = "sha256:aed8166c18b1a169a5d3ec28a49b43340949e400665555b51ee06f22813ef062"}, - {file = "ruff-0.4.5-py3-none-win_amd64.whl", hash = "sha256:b0b03c619d2b4350b4a27e34fd2ac64d0dabe1afbf43de57d0f9d8a05ecffa45"}, - {file = "ruff-0.4.5-py3-none-win_arm64.whl", hash = "sha256:9d15de3425f53161b3f5a5658d4522e4eee5ea002bf2ac7aa380743dd9ad5fba"}, - {file = "ruff-0.4.5.tar.gz", hash = "sha256:286eabd47e7d4d521d199cab84deca135557e6d1e0f0d01c29e757c3cb151b54"}, -] - [[package]] name = "six" version = "1.16.0" @@ -413,4 +387,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "4034d7126e31fdc5e2b4af335aad92b5fd39bcbeb460f6028eea57b8a11e619f" +content-hash = "99d0ff61ec39471c598b56d5b8017b9c1fd1eef7b021e2016a0d82de704142f6" diff --git a/pyproject.toml b/pyproject.toml index dce9625..1801c47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,15 +51,9 @@ pydantic = ">=2" typing-extensions = ">=4.7.1" [tool.poetry.group.dev.dependencies] -ruff = "0.4.5" pytest = ">=7.2.1" types-python-dateutil = ">=2.8.19.14" -build = "1.1.1" - -[tool.poetry-dynamic-versioning] -enable = true -style = "semver" -vcs = "git" +build = ">=1.1.1" [tool.pytest.ini_options] addopts = "test/" @@ -70,62 +64,5 @@ filterwarnings = [ ] [build-system] -build-backend = "poetry_dynamic_versioning.backend" -requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] - -[tool.ruff] -exclude = [ - ".direnv", - ".devenv", - ".git", - "__pycache__", - "build", - "dist", - "test", - "*.pyc", - "*.egg-info", - ".cache", - ".eggs", - "venv", -] - -line-length = 120 -indent-width = 4 - -[tool.ruff.lint] -ignore = [ - "D205", - "D400", - "D401", - "D415", -] - -select = [ - "D", - "E", - "F", - "Q", - "W", - "I", - "S", - "BLE", - "N", - "UP", - "B", - "A", - "C4", - "T20", - "SIM", - "RET", - "ARG", - "ERA", - "RUF", -] - -fixable = ["ALL"] -unfixable = [] - -[tool.ruff.format] -quote-style = "double" -indent-style = "space" -line-ending = "lf" +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api"