-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (101 loc) · 2.23 KB
/
pyproject.toml
File metadata and controls
115 lines (101 loc) · 2.23 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "pythainer"
version = "0.0.7"
authors = [
{ name="Antonio Paolillo", email="antonio@paolillo.be" },
]
description = "A pythonic toolkit for composing, managing, and deploying Docker images and containers."
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"black>=26",
"click>=8",
"isort>=7",
]
[project.urls]
Homepage = "https://github.com/apaolillo/pythainer"
Issues = "https://github.com/apaolillo/pythainer/issues"
[project.scripts]
pythainer = "pythainer.cli:main"
[project.optional-dependencies]
test = [
"pytest>=8",
"pytest-cov>=4",
]
dev = [
"ruff<=0.13.0",
"mypy<=1.18.1",
"types-click<=7.1.8",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
exclude = [
"/.venv*",
"/venv*",
"/env*",
"/__pycache__",
"*.pyc",
"/.git",
"/.github",
]
[tool.hatch.build.targets.sdist]
exclude = [
"/.venv*",
"/venv*",
"/env*",
]
[tool.hatch.build.targets.wheel]
exclude = [
"/.venv*",
"/venv*",
"/env*",
]
[tool.black]
line-length = 100
target-version = ['py310']
exclude = '''venv'''
[tool.isort]
profile = "black"
skip = [
"venv"
]
skip_glob = ["**/venv/**/*"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
# E/W = pycodestyle (incl. trailing whitespace W291/W293)
# F = pyflakes
# I = import sorting (isort)
# B = bugbear
# UP = pyupgrade
# SIM = simplify
# C4 = comprehensions
# RET = return-related
# A = builtins shadowing
# TID = tidy-imports
# ERA = commented-out code
# S = security (bandit)
# TODO enable the following when ready
# select = ["E", "W", "F", "I", "B", "UP", "SIM", "C4", "RET", "A", "TID", "ERA", "S"]
[tool.ruff.lint.per-file-ignores]
# Tests often use assert and subprocess; relax noisy bandit checks here.
# TODO enable the following when ready
# "tests/**" = ["S101", "S603", "S607"]
[tool.mypy]
python_version = "3.10"
packages = ["pythainer"]
# TODO enable the following when ready
#disallow_untyped_defs = true
#no_implicit_optional = true
#warn_return_any = true
#warn_unused_ignores = true
#strict_equality = true
#pretty = true