Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/python-trio/flake8-async

Highly opinionated linter for Trio code
https://github.com/python-trio/flake8-async

move error codes into visitor classes, update tests to work with that. Change test_113 and 114_options to use ARGS

47ceba24a039804427709cfa1bfe60b74e77cc87 authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #81 from jakkdl/reformat

7cdd9180e3aefca89d1a58d197022f266b45868c authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
split up VisitorMiscChecks

1387891a59ed97f5e634cbe42c4c2216f1a78d88 authored about 2 years ago by jakkdl <[email protected]>
Write an external runner so the tree is only iterated through once,

unless a check manually visits nodes in which case they will be visited
several times.

5360ce8b7feb400cb9e2fe57b41571f2619d2b5c authored about 2 years ago by jakkdl <[email protected]>
Release 22.12.2

85af2740a3abe1d5a1093ea923f48ea968be7b9e authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #80 from jakkdl/58_async_alternatives_to_blocking_io_calls

Add TRIO200, user-configured warnings for blocking sync calls in async function

483447b0c089d19ed169764ca3423ad580c94827 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
remove python3.8 support, fixed PR comments

fea41fe23d718eb32f3d04e749501cacc5d62c37 authored about 2 years ago by jakkdl <[email protected]>
update readme, changelog, contributing.md, add test comments, break 3.8

e37c4670db2cb3abc1e9b4be72bfecd22356ca50 authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #79 from jakkdl/sync_errors_ignore_list

fixes https://github.com/Zac-HD/flake8-trio/issues/77

bff6eaba1b23cfd8fe3a24ffd476449928d000d2 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add TRIO200, user-configured warnings for blocking sync calls in async function

89e52f040cdc826fafd0eb69ee3eedadedcc03eb authored about 2 years ago by jakkdl <[email protected]>
change sync_errors so user has to add errors that should be ignored, rather than the other way around

13f8240e8bd15a6ce79a22fd42f98afebd3775b5 authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #78 from jakkdl/future_annotations

7863b910a56a10c95e22670827eda5a651873d55 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
import annotations from __future__ and update annotations

1b7e70f89ed9703bacd32ee6f2c13d8f9a886867 authored about 2 years ago by jakkdl <[email protected]>
Update CHANGELOG.md

a4e1cb8c3bf4461748000e759bf5216adb3b5928 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge branch 'pr/75' into main

51baf750875a565ca498b094992fcf810c3f9249 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Recommend checkpoint() not sleep(0)

0f5d1aaf5dec0714bc7608301990b317c29d71b0 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
add trio115: use trio.lowlevel.checkpoint() instead of trio.sleep(0)

b35b05e683bf3eb8b2f9804a806dfb7e4e1d4e92 authored about 2 years ago by jakkdl <[email protected]>
trio113&114 now only uses unqualified name

86be234230a4644d388f2e33619c5d1636c2edab authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #74 from jakkdl/sleep_forever

implement trio116, checking for trio.sleep(<duration over 24h>)

46e750c3af758b2e1f1b733f4fe4937fbf5aa38e authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
implement trio116, checking for trio.sleep() with duration > 24h

59b76d3ade7628289cbbc7f1b87a05134778326b authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #69 from jakkdl/trio114_unknown_startable

fixes https://github.com/Zac-HD/flake8-trio/issues/66

5072c7d9e4afa340b94ef98fa901afdd563cac65 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #68 from jakkdl/flake8_6

fixes https://github.com/Zac-HD/flake8-trio/issues/65

8809f2a573859517986eb8263b2911df9885c0ed authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Tiny cleanups

19ba8effc7bd402aad0addfd822c1605d235478f authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
add trio114

39e3e5ebfa4114dc2c072a9edb852cc19a7a3c47 authored about 2 years ago by jakkdl <[email protected]>
add testing dimension for flake8=5 and flake8=6, add py311, and cascading changes in tox.ini and CI

d93342cc44d3eb9542f40bfbf059e9b6b10ac239 authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #67 from jakkdl/partial_trio112_113

Extend 113 to check for the method name anywhere in the first parameter

028886b5aa995c997081ef733f4c89a402d025cb authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Extend 113 to check for the method name anywhere in the first parameter

b52369d879a72eb485f56051c1c92011d4cf524a authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #64 from jakkdl/line_endings

Fixes https://github.com/Zac-HD/flake8-trio/issues/62

d12a64306a233996edec0403eed65d691c11bf08 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
fix line endings to LF and add .gitattributes to enforce that

389d4671816571b830fe11c44f0770cfe175283c authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #60 from jakkdl/prefer_start_in_cm

Fixes https://github.com/Zac-HD/flake8-trio/issues/57

2b0f543d424b5b6d2b23f64e931e00039bf98890 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Fixes and more tests

7db69c4479140fa60762785ddd2964a40bd9899c authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Adjust new trio113 check

5eb25ba2b2161713186f3a49a30b912776b3c7ce authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
add TRIO113, nursery.start_soon() in async context manager

a3a5b29f2e6aab758918a97fa0a498757ef9caa6 authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #59 from jakkdl/105_await_nursery_start

fixes https://github.com/Zac-HD/flake8-trio/issues/56

0ae2d9f35750deb011e70fd99ac79f5cc66acfbb authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Release 22.11.2

Though nursery.start_soon() is sync.

748b9f0d2a3fbe5640e94fd39d9db33623e7d7f1 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
expand 105 to also check for nursery.start[_soon]

d3a31fe35c13bec9d02d790af17c0d686e99c698 authored about 2 years ago by jakkdl <[email protected]>
Release 22.11.1

a900cffc2e47c36a9d0576cd384eb20ca33289b4 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #55 from jakkdl/trio102_ignore_contextmanager

trio102 now ignores contextmanager

0786f9d8e01475bdc90ccbb1c63f3c7faa6ef1c2 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
trio102 now ignores contextmanager

7132d08dfb07b945f6914a2a49784301ad7fbd06 authored about 2 years ago by jakkdl <[email protected]>
Fix crash on weird decorators

c137af30863cf8eb8996df76abdf1a3195d387a8 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
get pyright+shed happy

490a77585f40c19b0fb06d494d4317a6e505f444 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Release 22.9.1

93b4f66ad0c001af0b4dfaa7e722a656d2bdf2cc authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #53 from jakkdl/no_checkpoint_warning_decorators_option

option for decorator to disable checkpoint checking

4a768c73eeaa3fd49590a14638edac6c157827ef authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
re-ignore asynccontextmanager by default, use fnmatch to match decorator name

66172e7e250054f48c141c9dcbb04ebfa10ab3e7 authored over 2 years ago by jakkdl <[email protected]>
updated changelog and readme

f2116ce102b4f96283bdc4fef87f7ac432800e32 authored over 2 years ago by jakkdl <[email protected]>
add option parsing, and option for decorators that should disable checkpoint check, and touched on asynccontextmanager

01183e5e7e0f3d9c3b12b6024ddb01a2a15124a1 authored over 2 years ago by jakkdl <[email protected]>
default namespace, remove treating asynccontextmanager differently (can now be ignored with flag), harmonize file regex, remove tox.ini changes

ead5e3ae773aababc8374bb8de3b287316867da6 authored over 2 years ago by jakkdl <[email protected]>
added stub for flake8, surprised they don't have a py.typed

8d7ea8a715d0d514a99f66c36b932c61779ddc5c authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #52 from jakkdl/trio107_false_alarm_infinite_loop

8612587b0aa9cb330ba70ea691520f6b32a08f5a authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #51 from jakkdl/107_permutations

64740a2e51654d3a4f1ad1fadaeac78b6d8ccce5 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Even faster with itertools.product

08890b18ceaad3d20e794aaff3bf7caeff9a4e6c authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Fix trio107&108 false alarm on infinite loops

b8000bc4e843683d2a9e3ce2bf6bb6f4befd3a27 authored over 2 years ago by jakkdl <[email protected]>
Do parametrization of trio107 manually to reduce overhead, speeding it up and reducing output noise

2e2c0fb8d0de9b6ea35466a1d0f6a519be8435be authored over 2 years ago by jakkdl <[email protected]>
added parametrized test of all possible permutations of try with 107

b77a44172a8eddfe447b2a44ffa9b2acdfab4969 authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #49 from jakkdl/trio107_try_finally

fix false alarm on trio107 with checkpoint in try and empty finally

0f236ee8a7f1a8ad4118a3c790da45d346bac4bb authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #50 from jakkdl/allow_other_errors_in_file

allow other specified errors in test file

92ca0886786d1d063ab2a70121ed33369b6f3e52 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
allow other specified errors in test file

d10b7f5dcdbe4d6226a3ec38fe3a4e87a5a75924 authored over 2 years ago by jakkdl <[email protected]>
fix false alarm on trio107 with checkpoint in try and empty finally

0d88eeaeda51e8568805b556aa0d6d4343c89546 authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #42 from jakkdl/trio107_108_false_alarms

21911de57c195262f2f40255a163da1428ee6ccf authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add comments and release!

6ca2335e2f93ac49d4c845768f9ebad4ee504eae authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
disable 107&108 in asynccontextmanager, treat AsyncWith as checkpoint on both entry and exit, fixing #39

b1c49428a08239107274b29b9ede7524ab9290a0 authored over 2 years ago by jakkdl <[email protected]>
Clarify empty_body function

b0b9f0653b3c0ede411be9ab6cf0b9d8c1b28ff4 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #43 from jakkdl/trio107_false_alarm_abstract_methods

8f0ef2489714ace7f46a320dae885d36bfa95954 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
add back check for decorator, cause why not. And remove irrelevant tests.

11647de5101457781e70373ffd56be21a9dbb870 authored over 2 years ago by jakkdl <[email protected]>
trio107 & 108 ignore all functions whose body consists solely of pass, ellipsis or string constant. But otherwise ignore abstract decorators and overload.

fa380c624714ce3e8bd349adf34d8afcd38ecbc0 authored over 2 years ago by jakkdl <[email protected]>
treat abstract decorators as checkpoints, ignore functions with ellipsis as sole body

5991f8c14d0d77f47ac5f30d96d421a2d11c1fa0 authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #44 from jakkdl/nonempty_static_collections

a258a5d9802ea5683c2c2c9c2b237f1c5adc6409 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add some more tests

ab852261c70ae77adcebefe09588221dbea359b6 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
handle loops that are guaranteed to loop in 103 and 107/108

cc53f6924980a155f1184cbd1c194d1cf1408aaf authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #38 from jakkdl/raise_in_loops

103 no longer ignore raises in else, unless there's a break

c71f3c61f542f574b1a28e580268bc174d7477ed authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
103 no longer ignore raises in else, unless there's a break

1ee71f56078925f442d77813d73041dfac6b7aff authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #22 from jakkdl/11_nursery_outermost_async_context_manager

3f8e4f3682b101dd98588344f9466f0f0c9dd1a2 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
update messages, clean up and comment tests

d655eb73f37b60a8b1d4bdda4072910cd5cc2eb8 authored over 2 years ago by jakkdl <[email protected]>
Apply suggestions from code review

Co-authored-by: Zac Hatfield-Dodds <[email protected]>

f49e4985317690f30a9317705bbb7192f0122971 authored over 2 years ago by John Litborn <[email protected]>
Merge branch 'main' into pr/22

616943af538774031e08ff44b3582070384c58f1 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #34 from jakkdl/trio112_single_statement_nursery

d8acd4d9a2478e022ad589b33545f8f17e03c48f authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
clean up, comments, and deindent test statements that needn't be inside async function

e590e765577dd0bfc43abea9740af5bb1949c3ab authored over 2 years ago by jakkdl <[email protected]>
Merge branch 'trio112_single_statement_nursery' into 11_nursery_outermost_async_context_manager

a300295d92998da84e9e5202ebc487aa785bff33 authored over 2 years ago by jakkdl <[email protected]>
Merge remote-tracking branch 'origin/main' into 11_nursery_outermost_async_context_manager

d5caf95f2980b636f653a11fe87ba544ae7cd9b2 authored over 2 years ago by jakkdl <[email protected]>
clean up code, support multiple withitems

c57790b70f210793eaa0c5e64a31e8de2714b83e authored over 2 years ago by jakkdl <[email protected]>
ugly implementation of trio112

8e35d6344f682d525ea5eada91853541feeb7669 authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #30 from jakkdl/code_cleanup

e0f77a78509c475871625d43fb049655517b90a0 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
cleanup

86afaa1988f820644c47af7824cadc84f3ed19d1 authored over 2 years ago by jakkdl <[email protected]>
pylint pass

9169440dd975ea031b84ff6bb50a2e6ed6f20128 authored over 2 years ago by jakkdl <[email protected]>
fixed issues

e01300b11ac35e52cb74130840cb8a09a486088d authored over 2 years ago by jakkdl <[email protected]>
rework 302 according to new specifications

fcc02d46d5ecc6884e385ea0010d40383ef54fc6 authored over 2 years ago by jakkdl <[email protected]>
add trio[302], nurseries and async context manager nesting

4b6e253fbb87df9f5abd0f88461edb0b74e8ead9 authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #32 from jakkdl/issue_24_skip_109_on_decorator

c09877981ff6207588095b1f72ad451131c7a54a authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
TRIO109: skip decorated functions

1f2baadc38f5193c730dfbb9d339abecec1521a5 authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #33 from jakkdl/test_sync_code

1e8d942faf85b78c21fb10ffece3acb64f24adaf authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
generate sync code from tests

b10592c5fab78560830505cdfca99227c63a90ed authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #31 from jakkdl/issue_29_errors_on_sync

0f0424031f681bbbb646cb6e3bec6c112f13aeac authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
fix 108 yields raising error in sync functions. Should also speed up checker on sync code

7bb8c68fa54c34895a7e4d1fd48f669f5a8425ac authored over 2 years ago by jakkdl <[email protected]>
Fix occasional crash

d484205ba17ecf88a651b0aab9db494c4a98092c authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #28 from jakkdl/7_async_iterable_checkpoints

5c40f741312a280194284e2a2d3099a38b7ed7ee authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
TRIO108 now gives multiple error messages for each path lacking a guaranteed checkpoint

9b2992a45ff89aa5ddd9eb4a54391dc97a2883fb authored over 2 years ago by jakkdl <[email protected]>
Merge pull request #27 from jakkdl/code_cleanup

7c98e3107fd189925a328d766b97215c23aae434 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
trio.move_on_at is a cancel scope

4984419d2390cfa559d190657e588ec92ccab6e0 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Fix typecheck

e5cc47925118df5d3ef45d85eca6e4f9b92b8496 authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>
Review tweaks

f8764cd268c935a0b1b719602434aebba4efd51a authored over 2 years ago by Zac Hatfield-Dodds <[email protected]>