j2lint
Command-line utility that validates jinja2 syntax according to Arista's AVD style guide.
Decision gist · record as of 2026-08-14
Yes, if you work with Jinja2 templates and want to enforce consistent style. The tool is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It's particularly valuable in team environments or CI pipelines where style consistency matters. Install it if your project uses Jinja2 and you lack a linting standard.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with only two runtime dependencies (jinja2 and rich).
- Actively maintained with a release 15 days ago; supports Python 3.10 through 3.14.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-07-30 (15 days) · last repo commit 2026-08-14 · 108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 115,364 downloads/mo, #12,253 on PyPI
Alternatives
Verify before relying
pip install j2lint
j2lint /path/to/templates
# With specific rules ignored:
j2lint /path/to/templates --ignore S1 V2
# JSON output for CI:
j2lint /path/to/templates --jsonWhat it is and what it does
j2lint is a command-line linter for Jinja2 templates that enforces style and syntax rules defined by Arista's AVD style guide. It checks for common issues like incorrect spacing around variables and operators, improper indentation in nested blocks, inconsistent use of tabs versus spaces, and variable naming conventions (lowercase with underscores for multi-word names). The tool runs as a standalone CLI utility or integrates into CI pipelines and pre-commit hooks.
You use it by pointing it at a directory or file of Jinja2 templates, and it reports violations with configurable output formats (human-readable, JSON, or verbose). You can ignore specific rules globally or per-file, define custom rules, and filter by file extension. It depends on jinja2 for template parsing and rich for formatted terminal output.
Use it for
- Enforce consistent Jinja2 style across a team's template codebase in CI/CD pipelines.
- Validate template syntax before deployment to catch errors early.
- Integrate into pre-commit hooks to catch style violations before code review.
- Customize linting rules for organization-specific Jinja2 conventions.
- Use as a VSCode extension (or IDE plugin) for real-time template feedback during editing.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with Jinja2 templates and want to enforce consistent style.
The tool is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It's particularly valuable in team environments or CI pipelines where style consistency matters. Install it if your project uses Jinja2 and you lack a linting standard.
Install
j2lint on PyPI
Before you install
Low install friction with only two runtime dependencies (jinja2 and rich). Actively maintained with a release 15 days ago; supports Python 3.10 through 3.14.
Requires Python 3.10 or later.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install j2lint
j2lint /path/to/templates
# With specific rules ignored:
j2lint /path/to/templates --ignore S1 V2
# JSON output for CI:
j2lint /path/to/templates --json
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesjinja2rich |
| Maintenance | Actively maintained 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,364 / month, #12,253 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: j2lint-1.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “jinja2 linter”
- j2lintj2lint validates Jinja2 template syntax and style against Arista's…
- curlylintLints HTML templates in Jinja, Nunjucks, Django, Twig, and Liquid,…
- collate-sqlfluffSQLFluff is a SQL linter and auto-fixer that checks SQL code for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also curlylint · pyavd-utils · yamllint · djlint · j2cli · Jinja2 · jinjasql · jinja2_pluralize · djhtml · jinja_partials