{"id":28569612,"url":"https://github.com/abilian/flake8-ecocode","last_synced_at":"2025-06-10T17:15:40.047Z","repository":{"id":257800534,"uuid":"863106232","full_name":"abilian/flake8-ecocode","owner":"abilian","description":"Port of the ecoCode Python plugin to Flake8","archived":false,"fork":false,"pushed_at":"2024-10-29T16:57:56.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T17:57:23.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abilian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-25T18:12:31.000Z","updated_at":"2024-10-29T16:57:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"98e068c0-2a42-4f1f-9db3-09892febc957","html_url":"https://github.com/abilian/flake8-ecocode","commit_stats":null,"previous_names":["abilian/flake8-ecocode"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abilian%2Fflake8-ecocode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abilian%2Fflake8-ecocode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abilian%2Fflake8-ecocode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abilian%2Fflake8-ecocode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abilian","download_url":"https://codeload.github.com/abilian/flake8-ecocode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abilian%2Fflake8-ecocode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259114718,"owners_count":22807255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T17:15:15.403Z","updated_at":"2025-06-10T17:15:40.037Z","avatar_url":"https://github.com/abilian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flake8-ecocode\n\n## What it is\n\nA port to Python of the Python-specific parts of [ecoCode](https://github.com/green-code-initiative/ecoCode).\n\nJava Code has been converted to Python, using the `ast` module.\n\n## What is ecoCode?\n\necoCode 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.\n\n## Installation\n\n```bash\npip install flake8-ecocode\n```\n\nor from source:\n\n```bash\ngit clone https://github.com/abilian/flake8-ecocode.git\ncd flake8-ecocode\npip install .\n```\n\n## Development\n\n### Setup\n\n```bash\ngit clone https://github.com/abilian/flake8-ecocode.git\ncd flake8-ecocode\npoetry install\n```\n\n### Run tests\n\n```bash\nmake test\nmake lint\n```\n\nor against various Python versions:\n\n```bash\nnox\n```\n\n## Current status\n\nOnly 2 checkers have been converted so far out of 11 currently in [ecoCode-python](https://github.com/green-code-initiative/ecoCode-python).\n\n## Contributing\n\nPlease contribute to flake8-ecocode by porting the remaining checkers from ecoCode, and adding more.\n\nThe documentation from ecoCode also needs to be ported.\n\nYou can also contribute by adding tests, documentation, or improving the code.\n\n## TODO\n\n- [ ] Convert the remaining checkers\n- [ ] Add tests\n- [ ] Add CI/CD\n- [ ] Add documentation\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabilian%2Fflake8-ecocode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabilian%2Fflake8-ecocode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabilian%2Fflake8-ecocode/lists"}