Commit Graph

28 Commits

Author SHA1 Message Date
dustinface 42f6a883ae
isort: Remove the remaining exceptions and sort the related files (#14124) 2022-12-13 17:10:55 -06:00
xdustinface 0cdce83b57
isort: Remove all `tests` exceptions and sort the related files 2022-12-05 02:06:00 +01:00
dustinface 6edb2ce01e
isort: Remove all `chia.server` exceptions and sort the related files (#13994) 2022-11-23 13:01:29 -06:00
dustinface 8412a9928a
isort: Remove all `chia.wallet` exceptions and sort the related files (#13977) 2022-11-22 15:33:43 -06:00
dustinface e6f04b3760
isort: Remove all `tests.wallet` exceptions and sort the related files (#13978) 2022-11-22 15:33:17 -06:00
dustinface 5f706cea27
isort: Remove all `tests.core` exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
dustinface c052317299
isort: Remove all `chia.types` exceptions and sort the related files (#13961) 2022-11-19 11:18:27 -06:00
dustinface e0b8165cc5
isort: Remove all `chia.full_node` exceptions and sort the related files (#13953) 2022-11-18 10:41:45 -06:00
dustinface e1f4fa8d79
isort: Remove all `chia.daemon` exceptions and sort the related files (#13941) 2022-11-18 01:29:18 -06:00
dustinface d9c97e15e4
isort: Remove all `chia.util` exceptions and sort the related files (#13939) 2022-11-17 15:32:18 -06:00
dustinface 977d2e97cd
isort: Remove all `chia.cmds` exceptions and sort the related files (#13940) 2022-11-17 15:32:03 -06:00
Almog De Paz ac2203eda8
Refactor test utils for import availability outside of repo (#13880)
* refactor for import availability outside of repo

* refactor for import availability outside of repo

* small revert

* newline

* fix imports

* fix pre-commit issues

* types issort, adapt mypy ignore

* redundant imports

* move files from util to simulator

* run pre_commit

* remove setup_nodes/keyring from isort.cfg

* fix asyncio import
2022-11-15 18:51:05 -06:00
Kyle Altendorf 3b084a165b
configure isort to add the future annotations import (#13327)
* configure isort to add the future annotations import

* apply the new isort setting

* remove type ignores for new mypy (#13539)

https://pypi.org/project/mypy/0.981/

* another
2022-09-30 03:40:22 -05:00
Matt Hauff 2de55aff17
Remove rl wallet (#13429)
* remove all references to RL wallet

* Missed one

* Some new references from main

* Fix is_transaction_confirmed

* mypy

* check for 'confirmed'

* Try again to fix is_transaction_confirmed

* remove from mypy.ini
2022-09-13 17:07:29 -05:00
dustinface 84b0da7587
plotters: Move `install_plotter` into `plotters` (#12403) 2022-08-15 12:18:55 -05:00
dustinface fc2498885f
util: Enable `isort` and more `mypy` in `file_keyring.py` (#12531)
Co-Authored-By: Kyle Altendorf <sda@fstab.net>

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-07-28 14:07:27 -05:00
Kyle Altendorf f9226fb60d
rename test files that are missing test_ prefix (#10712)
* rename test files that are missing test_ prefix

* update mypy and isort excludes

* skip test_get_host_addr6() in GitHub Actions under macOS

* rebuild workflows
2022-05-16 09:51:00 -07:00
dustinface d4c2f0c14a
tests: Improve `test_wallet_rpc.py` (#11148)
* Move wallet RPC test setup into a fixture

* Fix `mypy` issues

* Enable  `isort`

* Move `tx_in_mempool` out and reuse it instead of `tx_in_mempool_2`

* Introduce `get_confirmed_balance` and `get_unconfirmed_balance`

* Use `pytest.raises`

* Only test with an untrusted full node

* Introduce `generate_funds`

* Drop sleeps and create less blocks

* Recover trusted/untrusted sync parameterization
2022-05-05 08:22:02 -07:00
Kyle Altendorf 34eed9a3bc
more isort (#11401) 2022-05-05 08:17:38 -07:00
dustinface 7d11d54f89
plotting: Enable `isort` (#11135) 2022-04-21 17:00:00 -07:00
dustinface ee3bf4f866
farmer: Enable `isort` (#11128) 2022-04-20 11:37:46 -07:00
dustinface 38cc36ca5f
harvester: Enable `isort` (#11127) 2022-04-20 11:37:05 -07:00
dustinface 79cbadf987
streamable: Enable `isort` + more `mypy` (#10539)
* isort: Fix `streamable.py` and `test_streamable.py`

* mypy: Drop `streamable.py` and `test_streamable.py` form exclusion

And fix all the mypy issues.

* Fix `pylint`

* Introduce `ParseFunctionType` and `StreamFunctionType`

* Use `object` instead of `Type[Any]` for `is_type_*` functions

* Some `Any` -> `object`

* Use `typing.overload` for `recurse_jsonify`

* Move some comments

* Drop `Union`, use `Literal` properly

* Explicitly ignore the return of `f_type.parse`

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Merge two `recurse_jsonify` overloads

* Typing for the base definition of `recurse_jsonify`

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-04-20 11:09:41 -07:00
dustinface 0917d0ae78
wallet: Drop `puzzles/genesis_checkers.py` and related puzzles (#10790)
Its all duplicated code and puzzles as far as i can tell, see 
`chia/wallet/puzzles/tails.py`.
2022-04-07 09:19:37 -07:00
Kyle Altendorf a17e5fc100
Split full node tests directory for parallelism (#10108)
* Split full node tests directory for parallelism

* reduce full node job timeout to 40, duplicate config to new directory

* rebuild workflows

* add missing __init__.py

* update some imports

* oops

* isort

* Revert "isort"

This reverts commit 03d8360342.

* update isort exclude list
2022-02-18 07:51:52 -08:00
dustinface 98971de9d5
pre-commit: Add a new hook to run `isort` (#8827)
* pre-commit: Add a new hook to run `isort`

* contributing: Add hint about `isort`

* add isort to dev deps, ignore existing .py files, use black profile

* long list to lines not comma delimited

* isort: Update and sort ignore list to match latest `main`

* add bash command line to generate isort extend skip list (#3)

* add bash command line to generate extend skip list

* tidy

* isort: More files to ignore after rebase

* tests: Fix `test_wallet_user_store.py` after rebase

* Some fixes after rebase

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-15 07:28:53 -08:00
Kyle Altendorf 2a6564c0a7
move all linter config to the root (#9830)
This reduces duplication, symlinks, and makes the configurations
available by default for the linting tools.
2022-01-19 11:38:11 -08:00
Gene Hoffman b5ce8c9e66
Isort take 3 (#1213)
* isort in a black friendly way

* isort but debug superlinter later
2021-03-09 18:27:27 -08:00