-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 678 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Linting targets
lint-python:
flake8 --config=.flake8 src/ test/
lint-format:
black --check src/ test/
lint-pylint:
pylint src/
pylint test/
lint-sql:
sqlfluff lint src/*.sql --ignore parsing --disable-progress-bar
lint-yaml:
yamllint src
lint-markdown:
markdownlint '**/*.md' --config .markdownlint.json
lint-bom:
find src -name "bom.yml" -exec sh -c 'printf "%-50s " "$$1"; .venv/bin/check-jsonschema --schemafile test/src-bom.schema.json "$$1" || check-jsonschema --schemafile test/src-bom.schema.json "$$1"' _ {} \;
# Run all linting checks (stops on first failure, like CI)
lint: lint-python lint-format lint-pylint lint-sql lint-yaml lint-markdown lint-bom