Metadata-Version: 2.1
Name: flake8-ecocode
Version: 0.1.0
Summary: 
License: Apache-2.0
Author: Stefane Fermigier
Author-email: sf@abilian.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: devtools (>=0.12.2,<0.13.0)
Requires-Dist: flake8 (>=7.1.1,<8.0.0)
Description-Content-Type: text/markdown

# flake8-ecocode

## What it is

A port to Python of the Python-specific parts of [ecoCode](https://github.com/green-code-initiative/ecoCode).

Java Code has been converted to Python, using the `ast` module.

## Installation

```bash
pip install flake8-ecocode
```

or from source:

```bash
git clone https://github.com/abilian/flake8-ecocode.git
cd flake8-ecocode
pip install .
```

## Development

### Setup

```bash
git clone https://github.com/abilian/flake8-ecocode.git
cd flake8-ecocode
poetry install
```

### Run tests

```bash
make test
make lint
```

or against various Python versions:

```bash
nox
```

## Current status

Only 2 checkers have been converted so far out of 11 currently in [ecoCode-python](https://github.com/green-code-initiative/ecoCode-python).

## TODO

- [ ] Convert the remaining checkers
- [ ] Add tests
- [ ] Add CI/CD
- [ ] Add documentation


