-
Notifications
You must be signed in to change notification settings - Fork 42
/
pyproject.toml
112 lines (98 loc) · 3.08 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
[tool.poetry]
name = "codemagic-cli-tools"
version = "0.55.0"
description = "CLI tools used in Codemagic builds"
readme = "README.md"
authors = [
"Priit Lätt <[email protected]>"
]
license = "GPL-3.0-or-later"
packages = [
{ include = "codemagic", from = "src" },
]
include = [
{ path = "tests", format = "sdist" },
]
homepage = "https://github.com/codemagic-ci-cd/cli-tools"
repository = "https://github.com/codemagic-ci-cd/cli-tools"
documentation = "https://github.com/codemagic-ci-cd/cli-tools/tree/master/docs#cli-tools"
[tool.poetry.urls]
"Issue Tracker" = "https://github.com/codemagic-ci-cd/cli-tools/issues"
"Changelog" = "https://github.com/codemagic-ci-cd/cli-tools/blob/master/CHANGELOG.md"
[tool.poetry.scripts]
android-app-bundle = "codemagic.tools:AndroidAppBundle.invoke_cli"
android-keystore = "codemagic.tools:AndroidKeystore.invoke_cli"
app-store-connect = "codemagic.tools:AppStoreConnect.invoke_cli"
codemagic-cli-tools = "codemagic.tools:CodemagicCliTools.invoke_cli"
firebase-app-distribution = "codemagic.tools:FirebaseAppDistribution.invoke_cli"
git-changelog = "codemagic.tools:GitChangelog.invoke_cli"
google-play = "codemagic.tools:GooglePlay.invoke_cli"
keychain = "codemagic.tools:Keychain.invoke_cli"
universal-apk = "codemagic.tools:UniversalApkGenerator.invoke_cli"
xcode-project = "codemagic.tools:XcodeProject.invoke_cli"
[tool.poetry.dependencies]
python = "^3.8"
cryptography = ">= 38.0.0"
google-api-python-client = ">= 2.84.0"
httplib2 = ">= 0.19.0"
oauth2client = ">= 4.1.3"
packaging = ">=22.0"
psutil = ">= 5.8.0"
pyjwt = "^2.4.0"
requests = ">= 2.25"
[tool.poetry.group.dev.dependencies]
black = "*"
google-api-python-client-stubs = "*"
ipdb = "*"
mdutils = "*"
mypy = "*"
pytest = "*"
pytest-cov = "*"
ruff = "*"
types-requests = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
target-version = "py37"
exclude = [".venv", "stubs"]
[tool.ruff.lint]
select = [
"F", # https://beta.ruff.rs/docs/rules/#pyflakes-f
"E", # https://beta.ruff.rs/docs/rules/#error-e
"W", # https://beta.ruff.rs/docs/rules/#warning-w
"I", # https://beta.ruff.rs/docs/rules/#isort-i
"N", # https://beta.ruff.rs/docs/rules/#pep8-naming-n
"COM", # https://beta.ruff.rs/docs/rules/#flake8-commas-com
"ISC", # https://beta.ruff.rs/docs/rules/#flake8-implicit-str-concat-isc
"ASYNC", # https://beta.ruff.rs/docs/rules/#flake8-async-async
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"doc.py" = ["E402"]
"src/codemagic/apple/resources/*.py" = ["N815"]
"src/codemagic/google/resources/*.py" = ["N815"]
"src/codemagic/google_play/resources/*.py" = ["N815"]
"src/codemagic/models/export_options.py" = ["N815"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.mypy]
mypy_path = "stubs"
pretty = true
error_summary = true
show_error_context = true
exclude = [
"tests/",
"doc.py",
]
[[tool.mypy.overrides]]
module = [
"mdutils.mdutils",
"mdutils.tools.Table",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
pythonpath = ["src"]