Metadata-Version: 2.1
Name: flake8-async
Version: 22.11.14
Summary: A flake8 plugin that checks bad async / asyncio practices
Home-page: https://github.com/cooperlees/flake8-async
Author: Cooper Lees and Zac Hatfield-Dodds
Author-email: me@cooperlees.com
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Flake8
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# flake8-async

A flake8 plugin that checks for bad async / asyncio practices.

## Installation

```console
pip install flake8-async
```

- Or from GitHub

```console
pip install git+https://github.com/cooperlees/flake8-async
```

## List of warnings

- **ASYNC100**: Warning about the use of a blocking http call inside an `async def`
- **ASYNC101**: Warning about the use of `open`, `time.sleep` or methods in `subprocess`, inside an `async def`.
- **ASYNC102**: Warning about the use of unsafe methods in `os` inside an `async def`.

## Development

When you wish to add a check to `flake8-async` please ensure the following:

- This `README.md` gets a one line about your new warning
- CHANGELOG gets added to a `## UNRELEASED` section
- Unittests are added showing the check hilight where it should and shouldn't

To run our test suite please use tox.

```console
python3 -m venv --upgrade-deps /tmp/tfa
/tmp/tfa/bin/pip install tox
# Linting
/tmp/tfa/bin/tox -e check
# Test Running
/tmp/tfa/bin/tox -e test -- -n auto
```

## License

MIT


# Changelog

## 22.11.14
Add ASYNC102: probable blocking os call in async function

## 22.11.6
Add ASYNC101: blocking sync call in async function

## 22.3.10

- Initial release
