This repository was archived by the owner on May 26, 2026. It is now read-only.
forked from valory-xyz/trader-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtox.ini
More file actions
60 lines (56 loc) · 2.93 KB
/
Copy pathtox.ini
File metadata and controls
60 lines (56 loc) · 2.93 KB
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
; Local extensions to tomte's canonical tox.ini. Consumed by `tomte tox`.
[tomte-extensions]
; Disables (in order):
; C0114 missing-module-docstring — flake8 covers this; avoid duplicate reports
; C0115 missing-class-docstring — same
; C0116 missing-function-docstring — same
; R0801 duplicate-code — false positives across migration scripts
; C0415 import-outside-toplevel — used for lazy imports in legacy scripts
; W0621 redefined-outer-name — module-level helpers reused inside __main__
; C0411 wrong-import-order — isort + pylint disagree on script-local paths
; W0212 protected-access — intentional use of middleware internals
; W0718 broad-exception-caught — migration scripts intentionally catch broadly
; R1723 no-else-break — readability is fine as written
; R0903 too-few-public-methods — dataclasses with no methods
; R0914 too-many-locals — refactoring legacy scripts is out of scope
; R0915 too-many-statements — same
extra_pylint_disables = C0114,C0115,C0116,R0801,C0415,W0621,C0411,W0212,W0718,R1723,R0903,R0914,R0915
[pytest]
tomte_defaults = true
; See `[tool.pytest.ini_options].addopts` in pyproject.toml for the
; rationale behind each flag. Keep this line in sync.
addopts = -p no:pytest_anchorpy -p no:randomly
[Authorized Packages]
; Per-repo overrides for liccheck: each entry maps a package whose
; license metadata liccheck couldn't classify (UNKNOWN, or GPL-dual)
; to a version range we accept anyway. Mirrors trader's pattern.
anchorpy: 0.20.2
based58: 0.1.1
clea: <1
httpx: <2
jsonalias: 0.1.1
olas-operate-middleware: ==0.15.21
open-autonomy: ==0.21.22
pyinstaller: 6.20.0
pyinstaller-hooks-contrib: <2027
; Per-repo mypy overlay. Concat-appended onto tomte's canonical
; `mypy.ini` at runtime via `tomte render-mypy-config --append-from=tox.ini`.
;
; `scripts/` consumes `operate.*` (olas-operate-middleware) heavily,
; which is a namespace package. tomte's [testenv:mypy] doesn't install
; olas-operate-middleware, so mypy can't resolve `operate.constants`,
; `operate.cli`, etc. Per-package `ignore_missing_imports = True` is
; insufficient because mypy refuses to type-check a module whose
; imports it can't resolve at all. The full-subtree `ignore_errors`
; carve-out matches the pattern trader uses for
; `packages.valory.connections.*` / `packages.valory.contracts.*`.
;
; Trade-off: this silences EVERY mypy error in `scripts/`, including
; real type errors that aren't import-related. Acceptable today
; because `scripts/` is operator tooling, not the core agent. If we
; want real mypy on `scripts/` later, the fix is to install
; olas-operate-middleware into the mypy testenv (requires either a
; tomte change or overriding [testenv:mypy], the latter being
; blocked by tomte's verbatim-merge of consumer-defined testenvs).
[mypy-scripts.*]
ignore_errors = True