Skip to content
SPECIFICTION
Get listed

Flake8 vs Hadolint

Flake8

flake8.pycqa.org

Hadolint

github.com

Side by side

FigureFlake8Hadolint
Price fromFreeFree
Free planYesYes
Free trial——
Open sourceYes—
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
APIYes—
Self-hostedYes—
Plans published21
Spec score · Linters8.8 (#2)7.9 (#13)
ConfigurationProject configuration can be stored in setup.cfg, tox.ini, or .flake8 using INI format.Users can configure ignored rules, severity overrides, failure thresholds, output format, label schemas, and trusted registries.
Latest releasePyPI lists version 7.4.1 uploaded on September 23, 2026.The release page opened for this research lists v2.15.1 as the latest release.
Pre-commitFlake8 can be included as a hook in the pre-commit Git hooks framework.Hadolint is available as a pre-commit hook, including a Docker-based hook option.
PurposeFlake8 combines pycodestyle, pyflakes, McCabe, and third-party plugins to check Python code style and quality.Hadolint is a Dockerfile linter that checks Dockerfiles for errors and best practices.

Plans

Flake8

  • Flake8Free
  • Flake8Free

Flake8 pricing →

Hadolint

  • HadolintFree

Hadolint pricing →

In their own words

Flake8

Flake8 has no write-up on Specifiction yet; its figures are above.

Visit flake8.pycqa.org

Hadolint

Hadolint is a free Dockerfile linter that parses files into an abstract syntax tree and checks that structure for errors and stated best practices. It uses ShellCheck to inspect Bash code inside Dockerfile RUN instructions. Rules carry either the DL prefix for Hadolint checks or SC for ShellCheck checks. Users can ignore rules, override severity, set failure thresholds, choose report formats, and configure label schemas and trusted registries. Output formats include tty, JSON, Checkstyle, Code Climate, GitLab Code Climate, GNU, Codacy, SonarQube, SARIF, and JUnit. Hadolint runs in Docker or Podman containers and is available as a pre-commit hook. Prebuilt binaries support Linux, macOS, and Windows; installation options include Homebrew, Scoop, Nix, containers, and source builds. Documented integrations cover major CI systems and editors. An online version is hosted at hadolint.github.io/hadolint. The latest listed release is v2.15.1, under GPL-3.0.

Visit github.com