Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
Python linter libraries read source code without running it and report errors, style violations, and suspicious patterns. A linter parses each file into a syntax tree and checks it against a set of rules. These libraries let developers and AI coding agents catch mistakes before code review.
Popularity
Ruff has the most monthly downloads in this comparison, at 432.1M.
def run_flake8(flake8_executable, args, document, source):
"""Run flake8 with the provided arguments, logs errors
from stderr if any.
"""
# a quick temporary fix to deal with Atom args = [
(i if not i.startswith("--ignore=") else FIX_IGNORES_RE.sub("", i))
for i in args
if i is not None
]
if document.path and document.path.startswith(document._workspace.root_path):
args.extend(
[
"--stdin-display-name",
os.path.relpath(document.path, document._workspace.root_path),
]
)
# if executable looks like a path resolve it if not os.path.isfile(flake8_executable) and os.sep in flake8_executable:
flake8_executable = os.path.abspath(
os.path.expanduser(os.path.expandvars(flake8_executable))
)
log.debug("Calling %s with args: '%s'", flake8_executable, args)
popen_kwargs = {"creationflags": CREATE_NO_WINDOW}
if cwd := document._workspace.root_path:
popen_kwargs["cwd"] = cwd
try:
cmd = [flake8_executable]
cmd.extend(args)
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, **popen_kwargs)
except OSError:
log.debug(
"Can't execute %s. Trying with '%s -m flake8'",
flake8_executable,
sys.executable,
)
cmd = [sys.executable, "-m", "flake8"]
cmd.extend(args)
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, **popen_kwargs)
(stdout, stderr) = p.communicate(source.encode())
if stderr:
log.error("Error while running flake8 '%s'", stderr.decode())
return stdout.decode()
Pylint
Checks errors, coding conventions, and refactoring opportunities without running the target code.
Downloads / mo
40.8M
Stars
5.8K
Last release
4.1.4
License
GPL-2.0-or-later
Strengths
Infers values behind variable names.Finds issues in code that is not fully typed.
Captures reports in custom streams.Pass a reporter with an open stream to Run.
Limitations
Full checks slow live feedback.Run full checks on save or in CI instead of each keystroke.
Third-party support is incomplete.Load a checker plugin for unsupported framework behavior.
Ruff suits most projects, with automatic fixes and rules reimplemented from many other linters. Pylint suits teams that want deeper inference and design checks alongside Ruff. Flake8 suits projects that rely on its plugins.
Ruff is a Python linter and code formatter written in Rust. It reimplements rule families from other linters and fixes many issues automatically. It does not support custom rules written in Python.
Pylint is a static checker that finds errors, convention violations, and refactoring opportunities without running the code. It reports in JSON natively and does not fix code automatically.
Flake8 combines Pyflakes, pycodestyle, and McCabe checks in one command. Plugins add further rules and report formats.
Pylint complements Ruff rather than duplicating its rules. Ruff covers style and correctness checks with automatic fixes. Pylint adds deeper inference and design diagnostics.
For coding agents
Found your linter library? Help your agent use it.
Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.