-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
136 lines (122 loc) · 3.6 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
[tool.poetry]
name = "compreq"
version = "0.1.0"
description = "A library for dynamically computing Python requirements, to keep them up-to-date."
authors = ["Jesper Nielsen <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/jesnie/compreq"
repository = "https://github.com/jesnie/compreq"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Typing :: Typed",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[tool.poetry.dependencies]
beautifulsoup4 = "<5,>=4.10.0"
packaging = "<25,>=23.2"
pip = "<25,>=23.3"
python = "<4,>=3.10"
python-dateutil = "<3,>=2.7.0"
requests = "<3,>=2.30.0"
tomlkit = "<0.14,>=0.11.0"
typing-extensions = "<5,>=4.9.0"
virtualenv = "<21,>=20.25.0"
[tool.poetry.group.dev.dependencies]
black = "<24.11,>=24.10"
isort = "<5.14,>=5.13"
mypy = "<1.15,>=1.14"
pylint = "<3.4,>=3.3"
pytest = "<8.4,>=8.3"
pytest-asyncio = "<0.25.1,>=0.25.0"
taskipy = "<1.15,>=1.14"
types-beautifulsoup4 = "<5,>=4.10"
types-python-dateutil = "<3,>=0.1.0"
types-requests = "<3,>=2.30"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
py_version = 310
profile = "black"
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.mypy]
python_version = "3.10"
show_error_codes = true
# First we turn on *all the checks*, and then we turn off those that are too annoying.
strict = true
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = [
"_pytest.*",
"exceptiongroup.*",
"pytest.*",
]
ignore_missing_imports = true
[tool.pylint.messages_control]
max-line-length = 100
disable = [
"duplicate-code",
"fixme",
"global-statement",
"invalid-name",
"invalid-str-returned",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-else-return",
"no-member",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-lines",
"too-many-locals",
"too-many-statements",
"unhashable-member",
"unused-argument",
"use-implicit-booleaness-not-comparison",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.taskipy.tasks]
isort = """
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX isort XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
isort compreq tests set_version.py requirements.py
"""
isort_check = """
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX isort XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
isort --check-only compreq tests set_version.py requirements.py
"""
black = """
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX black XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
black compreq tests set_version.py requirements.py
"""
black_check = """
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX black XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
black --check compreq tests set_version.py requirements.py
"""
mypy = """
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mypy XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
mypy compreq tests set_version.py requirements.py
"""
pylint = """
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX pylint XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
pylint compreq tests set_version.py requirements.py
"""
pytest = """
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX pytest XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
pytest tests
"""
format = "task isort && task black"
format_check = "task isort_check && task black_check"
lint = "task format_check && task mypy && task pylint"
test = "task lint && task pytest"
format_and_lint = "task format && task lint"
format_and_test = "task format && task test"