@@ -21,9 +21,13 @@ classifiers = [
21
21
]
22
22
23
23
requires-python = " >=3.8"
24
+
25
+ # We use inclusive ordered comparison clause for non-Apify packages intentionally in order to enhance the Apify client's
26
+ # compatibility with a wide range of external packages. This decision was discussed in detail in the following PR:
27
+ # https://github.com/apify/apify-sdk-python/pull/154
24
28
dependencies = [
25
29
" apify-shared ~= 1.1.0" ,
26
- " httpx ~ = 0.25.1" ,
30
+ " httpx > = 0.25.1" ,
27
31
]
28
32
29
33
[project .optional-dependencies ]
@@ -67,17 +71,27 @@ select = ["ALL"]
67
71
ignore = [
68
72
" ANN401" , # Dynamically typed expressions (typing.Any) are disallowed in {filename}
69
73
" BLE001" , # Do not catch blind exception
74
+ " C901" , # `{name}` is too complex
70
75
" COM812" , # This rule may cause conflicts when used with the formatter
71
76
" D100" , # Missing docstring in public module
72
77
" D104" , # Missing docstring in public package
73
78
" EM" , # flake8-errmsg
79
+ " G004" , # Logging statement uses f-string
74
80
" ISC001" , # This rule may cause conflicts when used with the formatter
75
81
" FIX" , # flake8-fixme
76
82
" PGH003" , # Use specific rule codes when ignoring type issues
83
+ " PLR0911" , # Too many return statements
77
84
" PLR0913" , # Too many arguments in function definition
85
+ " PLR0915" , # Too many statements
78
86
" PTH" , # flake8-use-pathlib
87
+ " PYI034" , # `__aenter__` methods in classes like `{name}` usually return `self` at runtime
88
+ " PYI036" , # The second argument in `__aexit__` should be annotated with `object` or `BaseException | None`
79
89
" S102" , # Use of `exec` detected
80
90
" S105" , # Possible hardcoded password assigned to
91
+ " S106" , # Possible hardcoded password assigned to argument: "{name}"
92
+ " S301" , # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
93
+ " S303" , # Use of insecure MD2, MD4, MD5, or SHA1 hash function
94
+ " S311" , # Standard pseudo-random generators are not suitable for cryptographic purposes
81
95
" TD002" , # Missing author in TODO; try: `# TODO(<author_name>): ...` or `# TODO @<author_name>: ...
82
96
" TID252" , # Relative imports from parent modules are bannedRuff
83
97
" TRY003" , # Avoid specifying long messages outside the exception class
@@ -101,8 +115,9 @@ indent-style = "space"
101
115
" D" , # Everything from the pydocstyle
102
116
" INP001" , # File {filename} is part of an implicit namespace package, add an __init__.py
103
117
" PLR2004" , # Magic value used in comparison, consider replacing {value} with a constant variable
104
- " T20" , # flake8-print
105
118
" S101" , # Use of assert detected
119
+ " T20" , # flake8-print
120
+ " TRY301" , # Abstract `raise` to an inner function
106
121
]
107
122
108
123
[tool .ruff .lint .flake8-quotes ]
0 commit comments