From 668011b91810166d8081f28c146209d94d0ca75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yolan=20Honor=C3=A9-Roug=C3=A9?= Date: Tue, 19 Dec 2023 17:29:18 +0100 Subject: [PATCH] :fire: :wrench: Migrate pytest, bump-my-version and flake8 from setup.cfg to pyproject.toml --- pyproject.toml | 21 +++++++++++++++++++++ setup.cfg | 22 ---------------------- setup.py | 2 +- 3 files changed, 22 insertions(+), 23 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index f01fb44c..c68a2583 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ +[tool.pytest.ini_options] +addopts = "--cov=kedro_mlflow --cov-report=html tests/" + [tool.ruff] select = [ "F", # Pyflakes @@ -9,3 +12,21 @@ select = [ ] ignore = ["E501", "PLR0913"] # Black take care off line-too-long exclude = ["/template/"] + +[tool.bumpversion] +current_version = "0.11.10" + +[[tool.bumpversion.files]] +filename = "setup.py" + +[[tool.bumpversion.files]] +filename = "kedro_mlflow/__init__.py" + +[[tool.bumpversion.files]] +filename = "README.md" + +[[tool.bumpversion.files]] +filename = "docs/source/02_installation/01_installation.md" + +[[tool.bumpversion.files]] +filename = "docs/source/03_getting_started/01_example_project.md" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index b6f7e093..00000000 --- a/setup.cfg +++ /dev/null @@ -1,22 +0,0 @@ -[bumpversion] -current_version = 0.11.10 - -[tool:pytest] -addopts = --cov=kedro_mlflow --cov-report=html tests/ - -[flake8] -ignore = E203, E266, E501, W503 -max-line-length = 88 -max-complexity = 18 -select = B,C,E,F,W,T4,B9 -per-file-ignores = **/__init__.py:F401 - -[bumpversion:file:setup.py] - -[bumpversion:file:kedro_mlflow/__init__.py] - -[bumpversion:file:README.md] - -[bumpversion:file:docs/source/02_installation/01_installation.md] - -[bumpversion:file:docs/source/03_getting_started/01_example_project.md] diff --git a/setup.py b/setup.py index 95d4712f..ed5955ae 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def _parse_requirements(path, encoding="utf-8"): setup( name=NAME, - version="0.11.10", # this will be bumped automatically by bump2version + version="0.11.10", # this will be bumped automatically by bump-my-version description="A kedro-plugin to use mlflow in your kedro projects", license="Apache Software License (Apache 2.0)", long_description=README,