-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
22 lines (19 loc) · 899 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
_default:
@just --list --unsorted --justfile {{justfile()}} --list-prefix ····
markdown_files := "*.md"
python_files := "*.py"
yaml_files := ".github/*/*.yml"
# format Markdown, YAML and Python files
fmt:
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 --config-file .github/linters/.yaml-lint.yml -- {{yaml_files}}
markdownlint --config .github/linters/.markdown-lint.yml -- {{markdown_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}}