1
1
[project ]
2
2
name = " apify_client"
3
- version = " 1.5.1 "
3
+ version = " 1.6.0 "
4
4
description = " Apify API client for Python"
5
5
readme = " README.md"
6
- license = {text = " Apache Software License" }
7
- authors = [
8
- {
name =
" Apify Technologies s.r.o." ,
email =
" [email protected] " },
9
- ]
6
+ license = { text = " Apache Software License" }
7
+ authors = [{
name =
" Apify Technologies s.r.o." ,
email =
" [email protected] " }]
10
8
keywords = [" apify" , " api" , " client" , " scraping" , " automation" ]
11
9
12
10
classifiers = [
@@ -24,30 +22,14 @@ classifiers = [
24
22
25
23
requires-python = " >=3.8"
26
24
dependencies = [
27
- " apify-shared ~= 1.0.1 " ,
28
- " httpx > = 0.24 .1" ,
25
+ " apify-shared ~= 1.1.0 " ,
26
+ " httpx ~ = 0.25 .1" ,
29
27
]
30
28
31
29
[project .optional-dependencies ]
32
30
dev = [
33
- " autopep8 ~= 2.0.4" ,
34
31
" build ~= 1.0.3" ,
35
- " flake8 ~= 6.1.0" ,
36
- " flake8-bugbear ~= 23.9.16" ,
37
- " flake8-commas ~= 2.1.0; python_version < '3.12'" ,
38
- " flake8-comprehensions ~= 3.14.0" ,
39
- " flake8-datetimez ~= 20.10.0" ,
40
- " flake8-docstrings ~= 1.7.0" ,
41
- " flake8-encodings ~= 0.5.0" ,
42
- " flake8-isort ~= 6.1.0" ,
43
- " flake8-noqa ~= 1.3.1; python_version < '3.12'" ,
44
- " flake8-pytest-style ~= 1.7.2" ,
45
- " flake8-quotes ~= 3.3.2; python_version < '3.12'" ,
46
- " flake8-simplify ~= 0.21.0" ,
47
- " flake8-unused-arguments ~= 0.0.13" ,
48
- " isort ~= 5.12.0" ,
49
- " mypy ~= 1.5.1" ,
50
- " pep8-naming ~= 0.13.3" ,
32
+ " mypy ~= 1.7.0" ,
51
33
" pre-commit ~= 3.4.0" ,
52
34
" pydoc-markdown ~= 4.8.2" ,
53
35
" pytest ~= 7.4.2" ,
@@ -56,6 +38,7 @@ dev = [
56
38
" pytest-timeout ~= 2.2.0" ,
57
39
" pytest-xdist ~= 3.3.1" ,
58
40
" redbaron ~= 0.9.2" ,
41
+ " ruff ~= 0.1.5" ,
59
42
" twine ~= 4.0.2" ,
60
43
]
61
44
@@ -77,3 +60,56 @@ include = ["apify_client*"]
77
60
78
61
[tool .setuptools .package-data ]
79
62
apify_client = [" py.typed" ]
63
+
64
+ [tool .ruff ]
65
+ line-length = 150
66
+ select = [" ALL" ]
67
+ ignore = [
68
+ " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed in {filename}
69
+ " BLE001" , # Do not catch blind exception
70
+ " COM812" , # This rule may cause conflicts when used with the formatter
71
+ " D100" , # Missing docstring in public module
72
+ " D104" , # Missing docstring in public package
73
+ " EM" , # flake8-errmsg
74
+ " ISC001" , # This rule may cause conflicts when used with the formatter
75
+ " FIX" , # flake8-fixme
76
+ " PGH003" , # Use specific rule codes when ignoring type issues
77
+ " PLR0913" , # Too many arguments in function definition
78
+ " PTH123" , # `open()` should be replaced by `Path.open()`
79
+ " S102" , # Use of `exec` detected
80
+ " S105" , # Possible hardcoded password assigned to
81
+ " TID252" , # Relative imports from parent modules are bannedRuff
82
+ " TRY003" , # Avoid specifying long messages outside the exception class
83
+ ]
84
+
85
+ [tool .ruff .format ]
86
+ quote-style = " single"
87
+ indent-style = " space"
88
+
89
+ [tool .ruff .lint .per-file-ignores ]
90
+ "**/__init__.py" = [
91
+ " F401" , # Unused imports
92
+ ]
93
+ "**/{scripts}/*" = [
94
+ " D" , # Everything from the pydocstyle
95
+ " INP001" , # File {filename} is part of an implicit namespace package, add an __init__.py
96
+ " PLR2004" , # Magic value used in comparison, consider replacing {value} with a constant variable
97
+ " T20" , # flake8-print
98
+ ]
99
+ "**/{tests}/*" = [
100
+ " D" , # Everything from the pydocstyle
101
+ " INP001" , # File {filename} is part of an implicit namespace package, add an __init__.py
102
+ " PLR2004" , # Magic value used in comparison, consider replacing {value} with a constant variable
103
+ " T20" , # flake8-print
104
+ " S101" , # Use of assert detected
105
+ ]
106
+
107
+ [tool .ruff .lint .flake8-quotes ]
108
+ docstring-quotes = " double"
109
+ inline-quotes = " single"
110
+
111
+ [tool .ruff .lint .isort ]
112
+ known-first-party = [" apify" , " apify_client" , " apify_shared" ]
113
+
114
+ [tool .ruff .lint .pydocstyle ]
115
+ convention = " google"
0 commit comments