1
+ [tool .poetry ]
2
+ name = " actor-rexscraper"
3
+ version = " 0.1.0"
4
+ description = " "
5
+ authors = [
" Josef Prochazka <[email protected] >" ]
6
+ readme = " README.md"
7
+
8
+ [tool .poetry .dependencies ]
9
+ python = " ^3.12"
10
+ setuptools = " ^75.3.0"
11
+ apify = " ^2.0.1"
12
+
13
+
14
+ [tool .poetry .group .dev .dependencies ]
15
+ mypy = " ^1.13.0"
16
+ ruff = " ^0.7.2"
17
+
18
+ [build-system ]
19
+ requires = [" poetry-core" ]
20
+ build-backend = " poetry.core.masonry.api"
21
+
22
+
23
+ [tool .ruff ]
24
+ line-length = 120
25
+
26
+ [tool .ruff .lint ]
27
+ select = [" ALL" ]
28
+ ignore = [
29
+ " ANN101" , # Missing type annotation for `self` in method
30
+ " ANN102" , # Missing type annotation for `{name}` in classmethod
31
+ " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed in {filename}
32
+ " ASYNC109" , # Async function definition with a `timeout` parameter
33
+ " BLE001" , # Do not catch blind exception
34
+ " C901" , # `{name}` is too complex
35
+ " COM812" , # This rule may cause conflicts when used with the formatter
36
+ " D100" , # Missing docstring in public module
37
+ " D104" , # Missing docstring in public package
38
+ " D107" , # Missing docstring in `__init__`
39
+ " EM" , # flake8-errmsg
40
+ " G004" , # Logging statement uses f-string
41
+ " ISC001" , # This rule may cause conflicts when used with the formatter
42
+ " FIX" , # flake8-fixme
43
+ " PGH003" , # Use specific rule codes when ignoring type issues
44
+ " PLR0911" , # Too many return statements
45
+ " PLR0913" , # Too many arguments in function definition
46
+ " PLR0915" , # Too many statements
47
+ " PTH" , # flake8-use-pathlib
48
+ " PYI034" , # `__aenter__` methods in classes like `{name}` usually return `self` at runtime
49
+ " PYI036" , # The second argument in `__aexit__` should be annotated with `object` or `BaseException | None`
50
+ " S102" , # Use of `exec` detected
51
+ " S105" , # Possible hardcoded password assigned to
52
+ " S106" , # Possible hardcoded password assigned to argument: "{name}"
53
+ " S301" , # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
54
+ " S303" , # Use of insecure MD2, MD4, MD5, or SHA1 hash function
55
+ " S311" , # Standard pseudo-random generators are not suitable for cryptographic purposes
56
+ " TD002" , # Missing author in TODO; try: `# TODO(<author_name>): ...` or `# TODO @<author_name>: ...
57
+ " TRY003" , # Avoid specifying long messages outside the exception class
58
+ ]
59
+
60
+ [tool .ruff .format ]
61
+ quote-style = " single"
62
+ indent-style = " space"
63
+
64
+ [tool .ruff .lint .flake8-quotes ]
65
+ docstring-quotes = " double"
66
+ inline-quotes = " single"
67
+
68
+ [tool .ruff .lint .pydocstyle ]
69
+ convention = " google"
70
+
71
+ [tool .ruff .lint .isort ]
72
+ known-first-party = [" apify" ]
73
+
74
+ [tool .pytest .ini_options ]
75
+ addopts = " -ra"
76
+ asyncio_mode = " auto"
77
+ timeout = 1200
78
+
79
+ [tool .mypy ]
80
+ python_version = " 3.12"
81
+ plugins = [" pydantic.mypy" ]
82
+ files = [" src" ]
83
+ check_untyped_defs = true
84
+ disallow_incomplete_defs = true
85
+ disallow_untyped_calls = true
86
+ disallow_untyped_decorators = true
87
+ disallow_untyped_defs = true
88
+ no_implicit_optional = true
89
+ warn_redundant_casts = true
90
+ warn_return_any = true
91
+ warn_unreachable = true
92
+ warn_unused_ignores = true
0 commit comments