Ecocode plugin for Flask8
Project description
flake8-ecocode
What it is
A port to Python of the Python-specific parts of ecoCode.
Java Code has been converted to Python, using the ast
module.
What is ecoCode?
ecoCode is a collective project aiming to reduce environmental footprint of software at the code level. The goal of the project is to provide a list of static code analyzers to highlight code structures that may have a negative ecological impact: energy and resources over-consumption, "fatware", shortening terminals' lifespan, etc.
Installation
pip install flake8-ecocode
or from source:
git clone https://github.com/abilian/flake8-ecocode.git
cd flake8-ecocode
pip install .
Development
Setup
git clone https://github.com/abilian/flake8-ecocode.git
cd flake8-ecocode
poetry install
Run tests
make test
make lint
or against various Python versions:
nox
Current status
Only 2 checkers have been converted so far out of 11 currently in ecoCode-python.
Contributing
Please contribute to flake8-ecocode by porting the remaining checkers from ecoCode, and adding more.
The documentation from ecoCode also needs to be ported.
You can also contribute by adding tests, documentation, or improving the code.
TODO
- Convert the remaining checkers
- Add tests
- Add CI/CD
- Add documentation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flake8_ecocode-0.1.3.tar.gz
.
File metadata
- Download URL: flake8_ecocode-0.1.3.tar.gz
- Upload date:
- Size: 59.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48849e3f9d8f1263b69898b67a512a0a970f3eb569d8ccc5ba71be3e6ae0019f |
|
MD5 | 7681fbbda1a55676aa552123d11d7bb3 |
|
BLAKE2b-256 | 3608caa96d7ae907a877833968cd135a24127d23ba1f27243d8e95eca9851f75 |
File details
Details for the file flake8_ecocode-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: flake8_ecocode-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d285d37aa95d52a9b0baf85b0f7bc79818f425e0d99a0a1de830ef64fa69088 |
|
MD5 | b465760141d359f20a52080dc14b9c17 |
|
BLAKE2b-256 | 0adcc12c21710906e77a483ab7d29f9d77b85fc40fe0dc5ac9aa07b8556c08d5 |