Skip to content

Latest commit

 

History

History

linter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Linter

Docker Hub

A docker image to ensure the code quality of our Python projects.

docker pull urnai/linter

Linters in this image and which command to invoke it:

Linter Command Config file
Commit (git) lint-commit <target_branch> .commitlintrc
Dockerfile lint-dockerfile .dockerfilelintrc
Markdown lint-markdown .markdownlintrc
Python lint-python .flake8
Shell script lint-shell-script .shellcheckrc
YAML lint-yaml .yamllint

You can create a .lint/ directory with your linters configs, exceptionally the .shellcheckrc file must be in the main directory.

How to use

docker run --rm -v $(pwd):/app urnai/linter " \
  lint-commit origin/main \
  lint-markdown \
  lint-python"