|
| 1 | +[project] |
| 2 | +name = "sonar-migration" |
| 3 | +version = "0.6" |
| 4 | +description = "A tool for SonarQube Server to Cloud migration assistance" |
| 5 | +authors = [ |
| 6 | + { name = "Olivier Korach", email = "[email protected]"}, |
| 7 | +] |
| 8 | +maintainers = [ |
| 9 | + { name = "Olivier Korach", email = "[email protected]"}, |
| 10 | +] |
| 11 | + |
| 12 | +license = "LGPL-3.0-only" |
| 13 | + |
| 14 | +license-files = ["LICEN[CS]E*"] |
| 15 | + |
| 16 | +keywords = ["sonarqube", "sonar", "migration", "administration", "automation"] |
| 17 | + |
| 18 | +readme = "README.md" |
| 19 | +requires-python = ">= 3.9" |
| 20 | +dependencies = [ |
| 21 | + "argparse", |
| 22 | + "datetime", |
| 23 | + "python-dateutil (>=2.9.0)", |
| 24 | + "requests (>=2.32)", |
| 25 | + "jprops (>=2.0.2)", |
| 26 | + "levenshtein (>=0.27.1)", |
| 27 | + "PyYAML (>=6.0.2)", |
| 28 | +] |
| 29 | + |
| 30 | +classifiers = [ |
| 31 | + "Development Status :: 5 - Production/Stable", |
| 32 | + # Indicate who your project is intended for |
| 33 | + "Intended Audience :: Developers", |
| 34 | + "Topic :: Code Quality :: Utility Tools", |
| 35 | + # Specify the Python versions you support here. |
| 36 | + "Programming Language :: Python :: 3", |
| 37 | + "Programming Language :: Python :: 3.8", |
| 38 | + "Programming Language :: Python :: 3.9", |
| 39 | + "Programming Language :: Python :: 3.10", |
| 40 | + "Programming Language :: Python :: 3.11", |
| 41 | + "Programming Language :: Python :: 3.12", |
| 42 | + "Programming Language :: Python :: 3.13", |
| 43 | +] |
| 44 | + |
| 45 | +[project.urls] |
| 46 | +Homepage = "https://pypi.org/sonar-migration" |
| 47 | +Documentation = "https://github.com/okorach/migration/README.md" |
| 48 | +Repository = "https://github.com/okorach/sonar-tools.git" |
| 49 | +Issues = "https://github.com/okorach/sonar-tools/issues" |
| 50 | +Changelog = "https://github.com/okorach/sonar-tools/blob/master/doc/what-is-new.md" |
| 51 | + |
| 52 | +[project.scripts] |
| 53 | +sonar-migration = "migration.migration:main" |
| 54 | + |
| 55 | +[build-system] |
| 56 | +build-backend = "poetry.core.masonry.api" |
| 57 | +requires = [ |
| 58 | + "poetry-core>=2.0.0,<3.0.0", |
| 59 | + "wheel", |
| 60 | + "sphinx>=7.4.7", |
| 61 | + "sphinx_rtd_theme>=3.0.2", |
| 62 | + "sphinx-autodoc-typehints>=2.2.3", |
| 63 | + "twine", |
| 64 | + "get_pypi_latest_version", |
| 65 | +] |
| 66 | + |
| 67 | +[tool.poetry] |
| 68 | +packages = [{include = "sonar"}, {include = "migration"}] |
| 69 | + |
| 70 | +[dependency-groups] |
| 71 | +test = [ |
| 72 | + "pytest (>=8.1.1)", |
| 73 | + "coverage (>=7.4.4)", |
| 74 | +] |
| 75 | +lint = [ |
| 76 | + "ruff (>=0.5.2)", |
| 77 | + "pylint (>=3.1.0)", |
| 78 | + "flake8 (>=7.0.0)", |
| 79 | +] |
| 80 | +docs = [ |
| 81 | + "sphinx (>=7.3.7)", |
| 82 | + "sphinx-autodoc-typehints (>=2.1.0)", |
| 83 | + "sphinx-rtd-theme (>=2.0.0)", |
| 84 | +] |
| 85 | +dev = [ |
| 86 | + { include-group = "test" }, |
| 87 | + { include-group = "lint" }, |
| 88 | + { include-group = "docs" }, |
| 89 | +] |
| 90 | + |
| 91 | +[tool.ruff] |
| 92 | + |
| 93 | +# Set the maximum line length to 150. |
| 94 | +line-length = 150 |
| 95 | +target-version = "py39" |
| 96 | +indent-width = 4 |
| 97 | + |
| 98 | +[tool.ruff.format] |
| 99 | +# Like Black, use double quotes for strings. |
| 100 | +quote-style = "double" |
| 101 | +# Like Black, indent with spaces, rather than tabs. |
| 102 | +indent-style = "space" |
| 103 | +# Like Black, respect magic trailing commas. |
| 104 | +skip-magic-trailing-comma = false |
| 105 | +# Like Black, automatically detect the appropriate line ending. |
| 106 | +line-ending = "auto" |
| 107 | +# Enable auto-formatting of code examples in docstrings. Markdown, |
| 108 | +# reStructuredText code/literal blocks and doctests are all supported. |
| 109 | +# |
| 110 | +# This is currently disabled by default, but it is planned for this |
| 111 | +# to be opt-out in the future. |
| 112 | +docstring-code-format = true |
| 113 | + |
| 114 | +# Set the line length limit used when formatting code snippets in |
| 115 | +# docstrings. |
| 116 | +# |
| 117 | +# This only has an effect when the `docstring-code-format` setting is |
| 118 | +# enabled. |
| 119 | +docstring-code-line-length = "dynamic" |
| 120 | + |
| 121 | + |
| 122 | +[tool.ruff.lint] |
| 123 | +# Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that |
| 124 | +# overlap with the use of a formatter, like Black, but we can override this behavior by |
| 125 | +# explicitly adding the rule. |
| 126 | +# extend-select = ["E501"] |
| 127 | +# select = [ |
| 128 | +# # pycodestyle |
| 129 | +# "E", |
| 130 | +# # Pyflakes |
| 131 | +# "F", |
| 132 | +# # pyupgrade |
| 133 | +# # "UP", |
| 134 | +# # flake8-bugbear |
| 135 | +# "B", |
| 136 | +# # flake8-simplify |
| 137 | +# "SIM", |
| 138 | +# # isort |
| 139 | +# "I", |
| 140 | +#] |
| 141 | +select = [ "ALL" ] |
| 142 | +extend-ignore = [ |
| 143 | + "D403", |
| 144 | + "D415", |
| 145 | + "D400", |
| 146 | + "FBT002", |
| 147 | + "FBT001", |
| 148 | + "PTH123", # `open()` should be replaced by `Path.open()` |
| 149 | + "ISC001", |
| 150 | + "COM812", # Missing trailing comma in a dictionary or set literal |
| 151 | + "D211", |
| 152 | + "D213", |
| 153 | + "D203", |
| 154 | + "D401", |
| 155 | + "ERA001", |
| 156 | + "S101", |
| 157 | + "I001", |
| 158 | + "TRY003", |
| 159 | + "EM102", |
| 160 | +] |
| 161 | + |
| 162 | +exclude = [ |
| 163 | + ".eggs", |
| 164 | + ".git", |
| 165 | + ".mypy_cache", |
| 166 | + ".pyenv", |
| 167 | + ".pytest_cache", |
| 168 | + ".ruff_cache", |
| 169 | + ".svn", |
| 170 | + ".tox", |
| 171 | + ".venv", |
| 172 | + ".vscode", |
| 173 | + "__pypackages__", |
| 174 | + "_build", |
| 175 | + "build", |
| 176 | + "dist", |
| 177 | + "node_modules", |
| 178 | + "site-packages" |
| 179 | +] |
| 180 | + |
| 181 | +[tool.ruff.lint.pyupgrade] |
| 182 | +# Preserve types, even if a file imports `from __future__ import annotations`. |
| 183 | +keep-runtime-typing = true |
0 commit comments