Skip to content

Commit

Permalink
Validate pylint, but not mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyannn committed Jan 9, 2024
1 parent 727704b commit adedba2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .github/linters/.python-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[MAIN]
jobs = 0
output-format = colorized
exit-zero = True

[MESSAGES CONTROL]
disable = import-error,no-name-in-module
3 changes: 1 addition & 2 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ jobs:
FILTER_REGEX_EXCLUDE: ".*_(values|backup).yaml$"
KUBERNETES_KUBECONFORM_OPTIONS: "--ignore-missing-schemas"
VALIDATE_ALL_CODEBASE: true
VALIDATE_GITLEAKS: false
VALIDATE_TERRAFORM_TFLINT: false
VALIDATE_PYTHON_MYPY: false
17 changes: 9 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ yaml_files := ".github/*/*.yml"

# format Markdown, YAML and Python files
fmt:
prettier {{markdown_files}} {{yaml_files}} --write
isort --settings-path .github/linters/.isort.cfg {{python_files}}
black {{python_files}}
prettier --write -- {{markdown_files}} {{yaml_files}}
isort --settings-path .github/linters/.isort.cfg -- {{python_files}}
black -- {{python_files}}

# lint Markdown, YAML and Python files
lint:
yamllint -c .github/linters/.yaml-lint.yml {{yaml_files}}
prettier {{markdown_files}} {{yaml_files}} --check
flake8 --config .github/linters/.flake8 {{python_files}}
isort --settings-path .github/linters/.isort.cfg {{python_files}} --check --diff
black {{python_files}} --diff
yamllint --config-file .github/linters/.yaml-lint.yml -- {{yaml_files}}
prettier --check -- {{markdown_files}} {{yaml_files}}
flake8 --config .github/linters/.flake8 -- {{python_files}}
isort --settings-path .github/linters/.isort.cfg --check --diff -- {{python_files}}
black --diff -- {{python_files}}
pylint --rcfile .github/linters/.python-lint -- {{python_files}}

0 comments on commit adedba2

Please sign in to comment.