flake8-async¶
A highly opinionated flake8 plugin for problems related to Trio, AnyIO, or asyncio.
This can include anything from outright bugs, to pointless/dead code, to likely performance issues, to minor points of idiom that might signal a misunderstanding.
The plugin may well be too noisy or pedantic depending on your requirements or opinions, in which case you should consider disable for those rules. Pairs well with flake8-bugbear.
Some rules are incorporated into ruff.
We previously maintained separate flake8-async and flake8-trio plugins, but merged both into this plugin under the more general “flake8-async” name after flake8-trio grew support for anyio and asyncio and became a superset of the former flake8-async. All flake8-trio error codes were renamed from TRIOxxx to ASYNCxxx and the flake8-trio package is now deprecated.
Contents:¶
- Installation
- Usage
- Configuration
- Rules
- Glossary
- Changelog
- 25.2.3
- 25.2.2
- 25.2.1
- 25.1.1
- 24.11.4
- 24.11.3
- 24.11.2
- 24.11.1
- 24.10.2
- 24.10.1
- 24.9.5
- 24.9.4
- 24.9.3
- 24.9.2
- 24.9.1
- 24.8.1
- 24.6.1
- 24.5.6
- 24.5.5
- 24.5.4
- 24.5.3
- 24.5.2
- 24.5.1
- 24.4.2
- 24.4.1
- 24.3.6
- 24.3.5
- 24.3.4
- 24.3.3
- 24.3.2
- 24.3.1
- 23.5.1
- 23.2.5
- 23.2.4
- 23.2.3
- 23.2.2
- 23.2.1
- 23.1.4
- 23.1.3
- 23.1.2
- 23.1.1
- 22.12.5
- 22.12.4
- 22.12.3
- 22.12.2
- 22.12.1
- 22.11.5
- 22.11.4
- 22.11.3
- 22.11.2
- 22.11.1
- 22.9.2
- 22.9.1
- 22.8.8
- 22.8.7
- 22.8.6
- 22.8.5
- 22.8.4
- 22.8.3
- 22.8.2
- 22.8.1
- 22.7.6
- 22.7.5
- 22.7.4
- 22.7.3
- 22.7.2
- 22.7.1
- Contributor Guide