Metadata-Version: 2.4
Name: novoid
Version: 0.1.0
Summary: A minimalist static analysis tool to detect dead code and unused definitions in Python.
License: MIT License
        
        Copyright (c) 2026 Madhav703
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/Madhav703/novoid
Project-URL: Repository, https://github.com/Madhav703/novoid
Project-URL: Issues, https://github.com/Madhav703/novoid/issues
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0
Dynamic: license-file

# novoid

[![PyPI](https://img.shields.io/pypi/v/novoid)](https://pypi.org/project/novoid/)
[![GitHub](https://img.shields.io/badge/github-Madhav703%2Fnovoid-blue?logo=github)](https://github.com/Madhav703/novoid)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Madhav703/novoid/blob/main/LICENSE)

A minimalist static analysis tool to detect dead code and unused definitions in Python source files.

- GitHub: [https://github.com/Madhav703/novoid](https://github.com/Madhav703/novoid)

## Installation

```bash
pip install novoid
```

## Usage

Analyze a single file:

```bash
novoid main.py
```

Analyze an entire directory:

```bash
novoid ./src
```

## What It Detects

- **Unused functions** - functions that are defined but never called anywhere in the file.
- **Unused variables** - variables that are assigned but never read or referenced.

## Example Output

```
novoid report for: main.py
──────────────────────────────────────
  [LINE  4]  FUNCTION   greet_user
  [LINE  9]  VARIABLE   temp_buffer
──────────────────────────────────────
2 issue(s) found.
```

When no issues are found:

```
✔  main.py - no dead code detected.
```

## Development

```bash
git clone https://github.com/Madhav703/novoid.git
cd novoid
pip install -e "."
pytest tests/
```

## Contributing

Pull requests are welcome at [https://github.com/Madhav703/novoid](https://github.com/Madhav703/novoid).

## License

See [LICENSE](https://github.com/Madhav703/novoid/blob/main/LICENSE)
