-
-
Save MartinWallgren/65ffceae6b597698602afdcdae927d7f to your computer and use it in GitHub Desktop.
pyproject.toml lcs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build-system] [19/1978] | |
requires = ["poetry_core>=1.0.0"] | |
build-backend = "poetry.core.masonry.api" | |
[[tool.poetry.source]] | |
name = "axis" | |
url = "https://artifacts.se.axis.com/artifactory/api/pypi/all-pypi/simple/" | |
default = true | |
[tool.poetry] | |
# Don't commit version number changes. Version will be set based on git tag for | |
# each release (poe release). | |
version = "0.0.0" | |
name = "layer_change" | |
description = "A Service that creates and updates layer changes." | |
license = "Proprietary" | |
authors = ["RnD Tools PlatformCI <obfuscated@examples.com>"] | |
packages = [{ include = "layer_change", from = "src" }] | |
classifiers = [ | |
"Intended Audience :: Developers", | |
"Natural Language :: English", | |
"Programming Language :: Python :: 3", | |
"Programming Language :: Python :: 3.7", | |
] | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
axis-artifact2bb = ">=0.2.26,<1" | |
axis-json-log-formatter = "^0.1.0" | |
axis-platformci-common = ">=5.18.4,<6" | |
commit-message-parser = ">=0.2.0,<1" | |
gitpython = "^3.1.14" | |
requests = "^2.25.1" | |
retry = "^0.9.2" | |
"ruamel.yaml" = "0.16.5" | |
freezegun = "^1.1.0" | |
pytest = "^6.2.2" | |
[tool.poetry.dev-dependencies] | |
black = "^20.8b1" | |
coverage = { extras = ["toml"], version = "^5.3.1" } | |
dunamai = "^1.5.2" | |
freezegun = "^1.1.0" | |
isort = "^5.6.4" | |
mypy = "^0.812" | |
poethepoet = "^0.9.0" | |
pydocstyle = "^5.1.1" | |
pylint = "^2.6.0" | |
pytest = "^6.2.2" | |
[tool.poe.tasks] | |
black = "black src tests" | |
black_check = "black --check --diff src tests" | |
coverage = "coverage report" | |
format = ["black", "isort"] | |
isort = "isort src tests" | |
isort_check = "isort --check-only --diff src tests" | |
lint = ["black_check", "isort_check", "mypy", "pylint"] | |
mypy = "mypy --ignore-missing-imports src" | |
pydocstyle = "pydocstyle src" | |
pylint = "pylint --reports=n src tests" | |
pytest = "coverage run -m pytest --junitxml=.reports/${PYTHON_VERSION}testresults.xml" | |
test = ["lint", "pytest"] | |
[tool.pylint.messages_control] | |
disable = "C0301, C0103, C0330, C0326, R0801" | |
extension-pkg-whitelist=["pydantic"] | |
max-line-length = 88 | |
[tool.black] | |
line-length = 79 | |
[tool.isort] | |
force_single_line = true | |
known_first_party = ["layer_change"] | |
line_length = 79 | |
profile = "black" | |
[tool.coverage.run] | |
branch = true | |
source = ["src"] | |
omit = [ | |
"src/main.py", | |
"src/layer_change/core.py", | |
"src/layer_change/message_handlers.py" | |
] | |
[tool.coverage.report] | |
fail_under = 100 | |
show_missing = true | |
skip_covered = true | |
sort = "Cover" | |
[tool.pytest.ini_options] | |
testpaths = ["tests"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment