-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
123 lines (112 loc) · 3.3 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "ci_cd"
[project]
name = "ci-cd"
authors = [
{name = "Casper Welzel Andersen", email = "casper.w.andersen@sintef.no"},
]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Natural Language :: English",
"Operating System :: OS Independent",
"Private :: Do Not Upload",
]
keywords = ["ci", "cd", "pre-commit"]
requires-python = "~=3.7"
dynamic = ["version", "description"]
dependencies = [
"invoke ~=2.2",
"packaging ~=24.0",
"tomlkit ~=0.12.5",
"typing-extensions ~=4.7; python_version < '3.8'",
"typing-extensions ~=4.12; python_version >= '3.8'",
]
[project.optional-dependencies]
docs = [
"mike ~=2.1",
"mkdocs ~=1.5",
"mkdocs-awesome-pages-plugin ~=2.9",
"mkdocs-material ~=9.2; python_version < '3.8'",
"mkdocs-material ~=9.5; python_version >= '3.8'",
"mkdocstrings[python-legacy] ~=0.22.0; python_version < '3.8'",
"mkdocstrings[python-legacy] ~=0.26.1; python_version >= '3.8'",
]
testing = [
"pytest ~=7.4",
"pytest-cov ~=4.1",
]
dev = [
"pre-commit ~=2.21; python_version < '3.8'",
"pre-commit ~=3.5; python_version >= '3.8'",
"ci-cd[docs,testing]",
]
[project.urls]
Home = "https://github.com/SINTEF/ci-cd"
Documentation = "https://SINTEF.github.io/ci-cd"
Source = "https://github.com/SINTEF/ci-cd"
"Issue Tracker" = "https://github.com/SINTEF/ci-cd/issues"
Changelog = "https://SINTEF.github.io/ci-cd/latest/CHANGELOG"
[project.scripts]
"ci-cd" = "ci_cd.main:program.run"
[tool.mypy]
python_version = "3.7"
ignore_missing_imports = true
scripts_are_modules = true
warn_unused_configs = true
show_error_codes = true
allow_redefinition = true
check_untyped_defs = true
[tool.pytest.ini_options]
minversion = "7.4"
addopts = ["-rs", "--cov=ci_cd", "--cov-report=term-missing:skip-covered"]
filterwarnings = ["error"]
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle
"F", # Pyflakes
"B", # flake8-bugbear
"I", # isort
"BLE", # flake8-blind-except
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"YTT", # flake8-2020
"EXE", # flake8-executable
"PYI", # flake8-pyi
]
ignore = [
"PLR", # Design related pylint codes
"PLW0127", # pylint: Self-assignment of variables
]
# Import __future__.annotations for all Python files.
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"BLE", # flake8-blind-except
]
".github/**" = [
"BLE", # flake8-blind-except
]