# PyCQA/pyflakes

A simple program which checks Python source files for errors

Repository: https://github.com/PyCQA/pyflakes
Canonical: https://ross.abutalabs.com/products/pyflakes
Homepage: https://pypi.org/project/pyflakes
Language: Python
License: MIT
License Family: permissive
Topics: python, linter, hacktoberfest
Last push: 2025-06-20T18:45:32+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 27, release rhythm 35, longevity 100
- inputs: {"age_days": 4531, "days_push": 439, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1455, forks 188 (observed 2026-08-28T04:04:46.808993+00:00)

## What it is
Pyflakes is a fast, passive checker for Python source files that detects errors like undefined names and unused imports by parsing the AST rather than importing code. It deliberately never reports style issues and aims for zero false positives.

## Use cases
- find bugs in python source files
- check for undefined names in my code
- detect unused imports in a python project
- lint python code without style complaints
- run a fast static analysis on python modules
- check code with side effects safely without importing it

## When to choose
- you want fast, low-noise error checking with virtually no false positives
- your modules have side effects and are unsafe to import
- you want a minimal linter to combine with other tools like flake8

## When to avoid
- you need PEP 8 style enforcement or configurable rules (use flake8 or pylint)
- you need project-wide or cross-file analysis
- you need auto-fixing of issues

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, parser, static-site-generator
- domain: developer-tools, programming-languages, testing
- platform: python, cli, cross-platform
- tags: static-analysis, code-quality, false-positive-free, flake8, python

## Member repositories
- PyCQA/pyflakes (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:46.808993+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:38.057184+00:00, confidence not recorded.
  - readme: https://github.com/PyCQA/pyflakes (fetched 2026-08-28T04:04:46.808993+00:00, sha ec53d5d224c5)
  - homepage: https://pypi.org/project/pyflakes (fetched 2026-08-29T11:44:39.132041+00:00, sha 4b4e8fead74a)
  - registry_pypi: https://pypi.org/pypi/pyflakes/json (fetched 2026-08-29T11:44:39.134698+00:00, sha 3d10d1f86231)
- Data as of 2026-08-30T08:39:29.467469+00:00.
