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

code cleanup after 91x PR

71905bd5889e4b2c0d52fd79df351a98e8241e3b authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #146 from jakkdl/autofix

Now able to run as a standalone module or shell program, with limited functionality

0f41c5ecb10ae1e126d49bbd56fe02a18166e845 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Now able to run as a standalone module or shell program, with limited functionality

c7c8f6f2eee0a43d627a175034cb9d8bd47f9748 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #143 from jakkdl/libcst_91x

7417b83b52308297b8578af0102285792f8e4f7d authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
reimplement 91X in libcst

df5144166029d43be82c65ff1bc052d29c31e4a7 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #142 from jakkdl/libcst_rewrite

d8325ad369bdcb7c73c48ebb866221b8f89fdd2c authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
reimplement trio100 & trio101 with libcst

3feea1a9fa76a301bd2e95566219035e19b3d83a authored almost 2 years ago by jakkdl <[email protected]>
Release 23.2.5

754061e2fd2bd0822b6620fa95301ff1a751a753 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #140 from jakkdl/false_alarm_fixture

False alarm on fixture decorator

0306f33d572196a3e0e0da6a57d4146feeb8e51d authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #139 from jakkdl/pyright_config

Fix pyright config since file structure changes, enable optional checks, fix type errors

ccb7b6477c25abecf3e9ae7390fb3304698a8f74 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Refactor decorator checkers to all use has_decorator, TRIO101 and 91X now ignore pytest.fixture decorators

e9d8533633c9c9ffd91656cd82c5e48dfe6cc650 authored almost 2 years ago by jakkdl <[email protected]>
Fix pyright config since file structure changes, enable optional checks, fix type errors

8644a46a13d3fd6c5a5e7569e6ae4c5ecc50944e authored almost 2 years ago by jakkdl <[email protected]>
Release version 23.2.4

967e15046946f06145bc38cc25f001c97fe26bf0 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #135 from jakkdl/trio105_anyio_foreal

Add anyio.TaskGroup support to TRIO113

0a5e065c30c932356df1d42344d107a4b974ea6b authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge branch 'main' into trio105_anyio_foreal

0d048c2972b0b7223508bece6bbd22995d977b8a authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #136 from jakkdl/trio900_false_alarm

fix TRIO900 false alarm in nested functions

b65ecc2e6c89a12f547caf4597a23c3a85dafc17 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
fix TRIO900 false alarm in nested functions

98e419bb2fcfb41520baa067a8e6338ec09bca49 authored almost 2 years ago by jakkdl <[email protected]>
Add anyio.TaskGroup support to TRIO113 - rewriting nursery detection to use type tracking. Don't exclude eval_files in pyright config.

5d5517ec77424ee877c998ecce47a76733fed8e1 authored almost 2 years ago by jakkdl <[email protected]>
Release 23.2.3

74c3a1ae38f85a1b9e0b1be475497f31340197d8 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #131 from jakkdl/trio105_anyio

1e688c244d99d92ad3a13578caaa892e0c3bfe66 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #130 from jakkdl/#129_trio210_false_alarm

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

9f9f2f062d9d1850ddee7d2525c0b5ea807345dd authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add shared state, move 105 to own visitor file, move utility functionality out to new file visitor_utility.py

a8ee4159f5e2653a164f0c7c0ea873e5de161a47 authored almost 2 years ago by jakkdl <[email protected]>
Fix get_matching_call when passed a single string as base.

1f6b4eb7d81782fc60a089a4bdfc5ddd7cd24a64 authored almost 2 years ago by jakkdl <[email protected]>
trio900: allow async pytest fixtures

3f3c13c9db8caadcca4d9ad7ca1df44d4db81805 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Release 23.2.2

125897f2067a05a52ca1c5bcf5578c3f9d63eb78 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #127 from jakkdl/trio102_anyio

Fixes https://github.com/Zac-HD/flake8-trio/issues/122
Fix https://github.com/Zac-HD/flake8-tri...

9fbd54f82c7a52431a38a028d381df66d827cfb0 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge branch 'main' into trio102_anyio

f15bb2b90e5f8d8d90583082ceea0db0e308b9f4 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #128 from jakkdl/anyio_assign_exc

add TRIO118 - assigning [the value of] anyio.get_cancelled_exc_class to a variable

6bafc14de6ea91532a480e8d6ef0e841ad8ff1d0 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
add TRIO118 - assigning [the value of] anyio.get_cancelled_exc_class to a variable

30d177ce8ed0f977b920a1e9096081ef9e38a11d authored almost 2 years ago by jakkdl <[email protected]>
Add support for anyio.get_cancelled_exc_class() in TRIO102, 103 and 104.

826309846ab532a96f992b26490b320b8b7cd49a authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #126 from jakkdl/reenable_coverage

reenable coverage, fix missing coverage

1afa965a22b76df7049851f8589b793a016050df authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
reenable coverage, fix missing coverage

2dd558b2971e536b45f4642a19512bbd9d36dcdb authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #125 from jakkdl/error_messages_end_with_period

Add test that all error messages end with period, minor fixes

8fa4026e3133609bf62766163705975e3965ad03 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add test that all error messages end with period (and fix those that didn't). Add better implementation of alt messages for error codes. Also checks that errors in eval files with explicit codes are enabled.

c57a361836b436d540d46a05ea8cdb7243c2ce0a authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #123 from jakkdl/rename_107_108

Rename 107/108 to 910/911, and make them optional

c1a54ebd81ce25d49e437c9b2d8c6700b56b53f4 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #120 from jakkdl/anyio

Add support for the anyio library

c531a3ba31a39405932eab07ffdcdb85e5ac9d7a authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Rename 107/108 to 910/911, and make them optional

7f5dc1ec5fff2e518f419cb23e502c28001bb39c authored almost 2 years ago by jakkdl <[email protected]>
Add support for the anyio library

73c9fc502cd07690ccbaffff2eb8c31e1430efe5 authored almost 2 years ago by jakkdl <[email protected]>
Release version 23.2.1

cffff4a1826e542ef24d1b3753fe31dfbd1dd2bf authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #119 from jakkdl/flake8_async_os_functions

Closes https://github.com/Zac-HD/flake8-trio/issues/58

62041e86b105901d39ff976d0dce6c90ec31d7d6 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Update Shed + Black

f8589560b38713970dc2550f11081c95aaaa364f authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Tweak TRIO222 error message

a24b0d075f43e5dade289a1e26694d6ebba02cf0 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add TRIO222, TRIO221 also looks for posix_spawn and uses fullmatch on os.spawn[...], flake8-async now fully redundant.

0682eec3cd3ae4b5c7f1e8d1203ccf965c40477d authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #118 from jakkdl/trio212_httpx_client

add TRIO212: sync call on httpx.Client, move type-tracking logic

6d1224e6c855ba1a045e17d1eb305716dc27f02c authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
add TRIO212. move out type-tracking logic from TRIO232 to TypeTrackerVisitor200

7d78fa7276a9a6103478a3304a9b8d1cd13f2538 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #111 from jakkdl/path_file_objects

trio232 now also handles annotated assignments, and added lots of tests

637d026a334cf3717ae6e81d86ddc0f07600874d authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #115 from jakkdl/update_toxenvs_contributing

Updated CONTRIBUTING.md to suggest pre-commit instead of outdated tox -e check

4b0b59311d77cfdacf018d4a4c9ccc16a947cfcb authored almost 2 years ago by John Litborn <[email protected]>
Merge pull request #116 from jakkdl/precommit_codespell

add codespell to pre-commit, add exception for spawnve, rename aline variable

a371612c17336b80bae3bbd8aed7fb9327d016e9 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
add codespell to pre-commit, add exception for spawnve, rename aline variable

1518cc1d13196b6457bf2b7f3df548f261a76e03 authored almost 2 years ago by jakkdl <[email protected]>
Updated CONTRIBUTING.md to suggest pre-commit instead of outdated tox -e check

0253a219867d761a7190c77601673e078d514959 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #113 from kianmeng/fix-typos

Fix typos in documentation and comments

ec04f75f6c58515f58316870272fab315b828a35 authored almost 2 years ago by John Litborn <[email protected]>
Fix typos

Found via `codespell -S .mypy_cache -L aline`

57da9f3c07f9cbdcc1fbecd935fd4ec010614b3f authored almost 2 years ago by Kian-Meng Ang <[email protected]>
Merge pull request #112 from jakkdl/dont_raise_multierror

add TRIO117, error on any reference to multierror

fbf4b9d98bc618d8f7478ca2c9582158c869081a authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Update CHANGELOG.md

2d5db752b23898b71a74832f8a00587955640581 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
add TRIO117, error on any reference to multierror

d6152b186836e866388e48e402bbbfb342838645 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #109 from jakkdl/#106_false_alarm_trio103

Fix TRIO103 false alarm on excepts after a previous except has caught Cancelled

09be127219cd25cbff7f0f94f3a10aff2df0f040 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
trio232 now also handles annotated assignments, and added lots of tests

985f9a2b4f2f59fc9ed5ee92bf48066e4429367c authored almost 2 years ago by jakkdl <[email protected]>
Fix issue 106, TRIO103 false alarm on excepts after a previous one has caught trio.Cancelled

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

626b1d81879215d32a6a1b5de252f8c50b096770 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #104 from jakkdl/path_file_objects

Add TRIO232: blocking sync call on file objects

358244416b86479bfc0ad5c990f11e737a803e9a authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add TRIO232: blocking sync call on file object

3c92aa0b798e8e49f094dbd553d9f9936ba85909 authored almost 2 years ago by jakkdl <[email protected]>
Merge branch 'pr/108' into main

d73a7b292810569e7f482dfa2d3d5cc32452cbff authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
TRIO900 now only checks for asynccontextmanager, ignoring --no-checkpoint-warning-decorator

0a907ba55562f4e246274eb2c62599847180f131 authored almost 2 years ago by jakkdl <[email protected]>
Small followup fixes and changes to 114 & 116 after the file split

f4ab11ba5c1e4eaaa396d5f43886bfc9c7682a58 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #103 from jakkdl/split_main_file

Split main file

97b4534fcf425e3b576bfa54c62b44caff0174fe authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
restructure and split files

a14a249e0befc7e127af20efbfd7da11f6594034 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #102 from jakkdl/move_eval_files

Move eval files into a separate directory

4dbc6ec39c87be07d8aef125b28de39f0f9f5ad9 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Move eval files into a separate directory

7c00e1591d4ead6eed0efa6ca6195413d2ace0d5 authored almost 2 years ago by jakkdl <[email protected]>
Merge branch 'pr/98' into main

d67cbb0018ae7ed7bb1972d35564a3e0863c4092 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge branch 'os_path_in_async_function' into main

a5641601ae1a4cd6d9270fc695cc70af6b370742 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Fix lint warnings

a192348f9ada046abd060af5b38932f14caad2ac authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #99 from jakkdl/pre_commit_ci

run all of pre-commit directly from the gh CI action

7f6636fb888a7fd7a81bb24b6b6fb9c65881dd9d authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add TRIO900 - async generator without known safe decorator

3bdb5e91e2757c4deba0f1a6ecdcea966091d73a authored almost 2 years ago by jakkdl <[email protected]>
add trio240, usage of os.path in async function

46b3feffeb2d293285780f707f676ae07b644e51 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #101 from Zac-HD/sync_io_call_in_async_function

Add TRIO23x, sync IO call in async function

d7bb508d015bf669d533d0334d89071449e48ff6 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add TRIO23x, sync IO call in async function

e98fd64a867eb42e4b608c54a3f3a537c0da52c0 authored almost 2 years ago by jakkdl <[email protected]>
run all of pre-commit directly from the gh CI action

7886281ba660f3d0a708451298b1a832dc18286f authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #94 from jakkdl/58_async_alternatives_blocking_io_calls

21X and 22X, blocking sync calls in async function

60dc59af6f5f236aba2e2496f69f266533c9c454 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
Add 210,211, 220 and 221, blocking sync calls in async function for network and

subprocess calls, respectively.

0ee8303d84fd47dec4e0d2c2e7342b2cc7c5e6a1 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #88 from jakkdl/pre-commit

add pre-commit config

cd59da3f347d891ebf3f0e9d49200aafa5f85a31 authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
add pre-commit config, which replaces and extends 'tox -e check' adding

several flake8 plugins
pyright is not run with the pre-commit ci, since it requires an internet
c...

e6c2ca83928a78305896b27aabb8fe42e5c5ce93 authored almost 2 years ago by jakkdl <[email protected]>
Merge pull request #91 from jakkdl/ignore_unselected_errors

ce448b6d9e38bd91c8d9f849649e993ac756486c authored almost 2 years ago by Zac Hatfield-Dodds <[email protected]>
use own flag, --enable-visitor-code-regex, instead of relying on flake8 being stable

82eb23b1cea017c06cec80b37f365ff6b086e671 authored about 2 years ago by jakkdl <[email protected]>
runner now skips unselected visitors, added --select pytest option, fixed code coverage & tests, renamed ARGS to ARG, generated required type stubs

d753e10dccd773d05458fd70f24b17dd476e777e authored about 2 years ago by jakkdl <[email protected]>
Release v 22.12.5

Happy new year!

4b5ca83ecd9a032a2fbdf397bb1dae849e63381e authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #93 from jakkdl/config_parsing_type

fix https://github.com/Zac-HD/flake8-trio/issues/84

115eb5e6ba3789bdff788ebf49236ec2ac0f3963 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Fix merge conflict adding ":"

5bebe410cdf5b06af37935c2ed694c9eccff82e2 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge branch 'main' into config_parsing_type

e7cdd82eddf03e1f77d71012ad0c0bc7012f9152 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Update tests/test_flake8_trio.py

2fb289bfe71f0467e34957a4647cf5d00aeab50c authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #92 from jakkdl/flake8_noqa_support

375f70d5a2f857eb742e41e5e15ef91e6787a41d authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
fix #84 and #89, --startable-in-context-manager and --trio200-blocking-calls now handle spaces and newlines

8cc9e522a35bc47b3b0003f3bbb65e3d2b68f724 authored about 2 years ago by jakkdl <[email protected]>
fix flake8-noqa compatibility by removing colon from error message

145c0c9eb4d5284ec02eb92a55e7f8758f025218 authored about 2 years ago by jakkdl <[email protected]>
Tiny refactor

02d20b424e36200ae42f945f91456e0ae03c2fe7 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
don't raise TRIO200 if the call is immediately awaited. Fixes #85

cf29b4663f514d4f66368f58e9edff2b58a8905b authored about 2 years ago by jakkdl <[email protected]>
Merge pull request #87 from jakkdl/eradicate_comment_out_code

28291720c72c02d674405547a4702a1eef9e18d0 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
eradicate commented out code

d8eebc54a3dc65d9bd375c7cec1fc53d545d3891 authored about 2 years ago by jakkdl <[email protected]>
Release 22.12.3 hotfix; see #86

287aac8774c981b9dfdc1a75173d141bd4536c19 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #86 from Zac-HD/config-error

41e049a5661b41a34a0ad4c7f28a6f32ec459301 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
Merge pull request #82 from jakkdl/move_error_message

01cc0b162032e5af436a35ed712c4cbad3220de6 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>
very dirty workaround for Action not being called when parsing options from config

f9dd8aad51b6563a200d24a8ba220c6ff4b47919 authored about 2 years ago by jakkdl <[email protected]>
WIP regression test

962210a450fc1121c7d6f996f280faa5dda40740 authored about 2 years ago by Zac Hatfield-Dodds <[email protected]>