-
Notifications
You must be signed in to change notification settings - Fork 90
/
pyproject.toml
95 lines (83 loc) · 2.31 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "kedro-docker"
authors = [
{name = "Kedro"}
]
description = "Kedro-Docker makes it easy to package Kedro projects with Docker."
requires-python = ">=3.8"
license = {text = "Apache Software License (Apache 2.0)"}
dependencies = [
"anyconfig~=0.10.0", # not directly required, pinned by Snyk to avoid a vulnerability
"kedro>=0.16.0",
"semver~=2.10", # Needs to be at least 2.10.0 to get VersionInfo.match
]
dynamic = ["readme", "version"]
[project.urls]
Source = "https://github.com/kedro-org/kedro-plugins/tree/main/kedro-docker"
Documentation = "https://github.com/kedro-org/kedro-plugins/blob/main/kedro-docker/README.md"
Tracker = "https://github.com/kedro-org/kedro-plugins/issues"
[project.optional-dependencies]
test = [
"bandit",
"behave",
"black~=22.0",
"docker",
"pre-commit>=2.9.2",
"psutil",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-xdist[psutil]~=2.2.1",
"PyYAML>=5.1, <7.0",
"trufflehog>=2.0.99, <3.0",
"ruff~=0.0.290",
"wheel==0.32.2"
]
[project.entry-points."kedro.project_commands"]
docker = "kedro_docker.plugin:commands"
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.packages.find]
include = ["kedro_docker*"]
namespaces = true # To include the template files
[tool.setuptools.package-data]
kedro_docker = [
"template/Dockerfile.*",
"template/.dockerignore",
"template/.dive-ci",
]
[tool.setuptools.dynamic]
readme = {file = "README.md", content-type = "text/markdown"}
version = {attr = "kedro_docker.__version__"}
[tool.pytest.ini_options]
addopts = """
--cov-report xml:coverage.xml
--cov-report term-missing
--cov kedro_docker
--cov tests
--no-cov-on-fail
-ra"""
[tool.coverage.report]
fail_under = 100
show_missing = true
omit = ["tests/*", "*/plugin.py"]
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
[tool.ruff]
line-length = 88
show-fixes = true
select = [
"F", # Pyflakes
"W", # pycodestyle
"E", # pycodestyle
"I", # isort
"UP", # pyupgrade
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Black takes care of line-too-long
[tool.ruff.per-file-ignores]
"{tests,features}/*" = ["T201", "PLW1510"]