-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
173 lines (148 loc) · 3.91 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[build-system]
requires = ["setuptools>=61", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "conan-check-updates"
version = "0.3.0"
description = "Check for updates of your conanfile.txt/conanfile.py requirements."
authors = [{ name = "Lukas Berbuer", email = "[email protected]" }]
readme = "README.md"
license = { text = "MIT License" }
requires-python = ">=3.7"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: C++",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
]
keywords = ["conan", "update", "upgrade", "package", "requirements", "node-check-updates"]
dependencies = [
"importlib_metadata; python_version<'3.8'",
"typing_extensions; python_version<'3.10'",
]
[project.optional-dependencies]
tests = [
"conan>=1.5", # for e2e tests, >=1.5 due to new [tool_requires] section in conanfile
"coverage[toml]>=5", # pyproject.toml support
"pytest>=6", # pyproject.toml support
"pytest-asyncio",
"pytest-rerunfailures",
]
tools = [
"cogapp>=3",
"mypy>=0.9", # pyproject.toml support
"pre-commit",
"ruff",
"tox>=3.4", # pyproject.toml support
]
dev = [
"conan-check-updates[tests,tools]", # recursive dependency since pip 21.2
]
[project.scripts]
conan-check-updates = "conan_check_updates.cli:main"
[project.urls]
Changelog = "https://github.com/lukasberbuer/conan-check-updates/blob/master/CHANGELOG.md"
Source = "https://github.com/lukasberbuer/conan-check-updates"
Issues = "https://github.com/lukasberbuer/conan-check-updates/issues"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
lint.select = [
"F", # pyflakes
"E", "W", # pycodestyle
"I", # isort
"N", # pep8 naming
"B", # flake8 bugbear
"A", # flake8 builtins
"C4", # flake8 comprehensions
"G", # flake8 logging format
"PIE", # flake8 pie
"RET", # flake8 return
"SIM", # flake8 simplify
"PT", # flake8 pytest style
"PL", # pylint
"RUF", # ruff specific rules
]
lint.ignore = [
"PLR0911", # too many return statements
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"PLR0913", # too many arguments
"PLR2004", # magic value
]
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q" # test summary for (a)ll except passed
testpaths = ["tests"]
log_cli = true
log_cli_level = "WARNING"
[tool.coverage.run]
branch = true
source = ["conan_check_updates"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
ruff-format
ruff
mypy
py{37, 38, 39, 310, 311, 312}-{v1, v2}
coverage-report
[testenv:ruff-format]
skip_install = true
deps = ruff
commands =
ruff format --diff .
ruff format --check .
[testenv:ruff]
skip_install = true
deps = ruff
commands =
ruff check .
[testenv:mypy]
skip_install = true
deps = mypy>=0.9
commands =
mypy ./src/
[testenv]
extras = tests
deps =
v1: conan<2.0.0
v2: conan>=2.0.0
commands =
coverage run --parallel -m pytest
[testenv:coverage-report]
skip_install = true
deps = coverage[toml]>=5
commands =
- coverage combine
coverage report
[testenv:coveralls]
skip_install = true
deps = coveralls
passenv = GITHUB_*
commands =
- coverage combine
coverage report
coveralls --service=github
"""