-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
117 lines (107 loc) · 2.53 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
[tool.poetry]
name = "inst-api"
version = "0.3.0"
description = "InstAPI - comfortable and easy to use Python's library for interaction with Instagram"
authors = ["Yurii Karabas <1998uriyyo@gmail.com>"]
packages = [
{ include = "instapi" }
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/uriyyo/instapi"
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
]
[tool.poetry.dependencies]
python = "^3.10"
instagram-private-api = "^1.6.0"
httpx = "^0.27.0"
pillow = "^10.2.0"
pydantic = "^2.6.4"
typing-extensions = "^4.10.0"
[tool.poetry.dev-dependencies]
pytest = "^7.4.0"
pre-commit = "^2.21.0"
pytest-mock = "^3.11.1"
pytest-cov = "^4.1.0"
ruff = "^0.3.4"
mypy = "^1.9.0"
types-requests = "^2.31.0.20240311"
[tool.poetry.extras]
pillow = [
"pillow",
]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"S", # flake8-bandit
"G", # flake8-logging-format
"PIE", # flake8-pie
"COM", # flake8-commas
# "PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"TRY", # tryceratops
"RUF", # ruff specific rules
]
ignore = [
"TRY003", # too long exception message
"S101", # use of assert detected
"S324", # use of insecure random number generator
"S113", # use requests without timeout
"SIM108", # use inline if
"COM812", # will be handled by ruff format
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".venv",
]
per-file-ignores = {}
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.mypy]
python_version = "3.10"
strict = true
follow_imports = "normal"
ignore_missing_imports = true
no_implicit_reexport = false
show_column_numbers= true
show_error_codes= true