Skip to content

python MegaLinter Flavor

Docker Image Size (tag) Docker Pulls

Description

Optimized for PYTHON based projects

Usage

  • GitHub Action: megalinter/megalinter/flavors/python@v6-alpha
  • Docker image: megalinter/megalinter-python:v6-alpha
  • mega-linter-runner: mega-linter-runner --flavor python

Embedded linters

Languages

Language Linter Configuration key Additional
BASH bash-exec BASH_EXEC
shellcheck BASH_SHELLCHECK GitHub stars
shfmt BASH_SHFMT GitHub stars formatter
GROOVY npm-groovy-lint GROOVY_NPM_GROOVY_LINT GitHub stars autofix sarif
KOTLIN ktlint KOTLIN_KTLINT GitHub stars autofix sarif
PYTHON pylint PYTHON_PYLINT GitHub stars
black PYTHON_BLACK GitHub stars formatter
flake8 PYTHON_FLAKE8 GitHub stars
isort PYTHON_ISORT GitHub stars formatter
bandit PYTHON_BANDIT GitHub stars sarif
mypy PYTHON_MYPY GitHub stars
SQL sql-lint SQL_SQL_LINT GitHub stars
sqlfluff SQL_SQLFLUFF GitHub stars

Formats

Format Linter Configuration key Additional
CSS stylelint CSS_STYLELINT GitHub stars autofix
scss-lint CSS_SCSS_LINT GitHub stars
ENV dotenv-linter ENV_DOTENV_LINTER GitHub stars autofix
GRAPHQL graphql-schema-linter GRAPHQL_GRAPHQL_SCHEMA_LINTER GitHub stars
HTML htmlhint HTML_HTMLHINT GitHub stars
JSON jsonlint JSON_JSONLINT GitHub stars
eslint-plugin-jsonc JSON_ESLINT_PLUGIN_JSONC GitHub stars autofix sarif
v8r JSON_V8R GitHub stars
prettier JSON_PRETTIER GitHub stars formatter
MARKDOWN markdownlint MARKDOWN_MARKDOWNLINT GitHub stars formatter
markdown-link-check MARKDOWN_MARKDOWN_LINK_CHECK GitHub stars
markdown-table-formatter MARKDOWN_MARKDOWN_TABLE_FORMATTER GitHub stars formatter
PROTOBUF protolint PROTOBUF_PROTOLINT GitHub stars autofix
RST rst-lint RST_RST_LINT GitHub stars
rstcheck RST_RSTCHECK GitHub stars
XML xmllint XML_XMLLINT
YAML prettier YAML_PRETTIER GitHub stars formatter
yamllint YAML_YAMLLINT GitHub stars
v8r YAML_V8R GitHub stars

Tooling formats

Tooling format Linter Configuration key Additional
ACTION actionlint ACTION_ACTIONLINT GitHub stars
ANSIBLE ansible-lint ANSIBLE_ANSIBLE_LINT GitHub stars
DOCKERFILE hadolint DOCKERFILE_HADOLINT GitHub stars sarif
EDITORCONFIG editorconfig-checker EDITORCONFIG_EDITORCONFIG_CHECKER GitHub stars
KUBERNETES kubeval KUBERNETES_KUBEVAL GitHub stars
kubeconform KUBERNETES_KUBECONFORM GitHub stars
OPENAPI spectral OPENAPI_SPECTRAL GitHub stars
SNAKEMAKE snakemake SNAKEMAKE_LINT GitHub stars
TEKTON tekton-lint TEKTON_TEKTON_LINT GitHub stars

Other

Code quality checker Linter Configuration key Additional
COPYPASTE jscpd COPYPASTE_JSCPD GitHub stars
git_diff REPOSITORY_GIT_DIFF GitHub stars
gitleaks REPOSITORY_GITLEAKS GitHub stars sarif
goodcheck REPOSITORY_GOODCHECK GitHub stars
secretlint REPOSITORY_SECRETLINT GitHub stars sarif
semgrep REPOSITORY_SEMGREP GitHub stars sarif
trivy REPOSITORY_TRIVY GitHub stars sarif
SPELL misspell SPELL_MISSPELL GitHub stars autofix
cspell SPELL_CSPELL GitHub stars