Skip to main content

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.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_ecocode-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake8_ecocode-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file flake8_ecocode-0.1.1.tar.gz.

File metadata

  • Download URL: flake8_ecocode-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for flake8_ecocode-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9b28b680eb7da343a3d8f3233e3cc0880363c586052513cd4102759a9620b97c
MD5 c3100fc29348e4f44aea72098915a1c1
BLAKE2b-256 e5957bdfc1dc73678469a0d400a23db0e203aaf8d00a27a1562eb8cba0d6c58d

See more details on using hashes here.

File details

Details for the file flake8_ecocode-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flake8_ecocode-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for flake8_ecocode-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c67071649bc85dffd64aa456013fc25e7a8af8f21cb60105df074b6e85c9754c
MD5 6b09dad7010a6692167d49c9ef106ec2
BLAKE2b-256 2439a8253bf34984962bc86fe8a53cbe02bc05c2832db4511a55172a3358c5b7

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page