semvec/pypi-packages huggingface dataset:
flake8-timeout 1.0.0
flake8 plugin which checks that a timeout is set to all requests and urllib.request.open calls
License: MIT
Requires Python: >=3.9

[![ci](https://github.com/jkittner/flake8-timeout/workflows/ci/badge.svg)](https://github.com/jkittner/flake8-timeout/actions?query=workflow%3Aci)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/jkittner/flake8-timeout/master.svg)](https://results.pre-commit.ci/latest/github/jkittner/flake8-timeout/master)

# flake8-timeout

flake8 plugin which checks that a timeout is set in all `requests` and `urllib.request.open` calls.

- For example: `requests.post('https://example.com')` or `urllib.request.open('https://example.com')` will trigger `TIM100`
- `requests.post('https://example.com', timeout=5)` or `urllib.request.open('https://example.com', timeout=5)` is expected instead

## installation

`pip install flake8-timeout`

## flake8 code

| Code   | Description                      |
| ------ | -------------------------------- |
| TIM100 | timeout missing for request call |

## as a pre-commit hook

See [pre-commit](https://pre-commit.com) for instructions

Sample `.pre-commit-config.yaml`:

```yaml
-   repo: https://github.com/pycqa/flake8
    rev: 4.0.1
    hooks:
    -   id: flake8
        additional_dependencies: [flake8-timeout==0.3.0]
```
how-much-repo-analyzer 0.1.0
A command-line tool to calculate statistics for a code repository, ignoring files from .gitignore and .howmuchignore.
License: MIT
Requires Python: <4.0,>=3.8


# How Much

`how-much` is a command-line tool to get statistics from your code repositories or directories. It's built to be fast, simple, and easily extensible.

## Features

-   Calculates statistics like total lines (including and excluding empty lines), characters, and file counts.
-   Correctly ignores files specified in `.gitignore` files at any directory level.
-   Supports a custom `.howmuchignore` file for project-specific ignores.
-   Can display a tree view of all processed (non-ignored) files.
-   Extensible plugin system for adding new statistics.
-   Beautiful and clear output powered by the `rich` library.
    

## Installation

Assuming you have [Poetry](https://python-poetry.org/ "null") installed:
```
# Clone the repository (or navigate to your project directory)
git clone <your-repo-url>
cd how-much

# Install dependencies
poetry install

# Run the tool
poetry run how-much .
```

To install it as a global command via `pip` from source:
```
pip install .
```

## Usage

Run it against the current directory to see statistics:
```
how-much .
```

Or specify a path to a directory or a single file:
```
how-much path/to/your/project
```

### Listing Files

To see a tree view of all the files that will be included in the calculations (i.e., not ignored), use the `--list-files` or `-l` flag:
```
how-much . --list-files
```