Skip to content

Commit

Permalink
Add format check to lint step
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
  • Loading branch information
timkpaine committed May 3, 2024
1 parent 063b137 commit 6b4f38b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ install: ## install library
lint-py:
python -m isort --check csp/ examples/ setup.py
python -m ruff check csp/ examples/ setup.py
python -m ruff format --check csp/ examples/ setup.py

lint-cpp:
# clang-format --dry-run -Werror -i -style=file `find ./cpp/ -name "*.*pp"`
Expand Down Expand Up @@ -191,9 +192,6 @@ dependencies-debian: ## install dependencies for linux
dependencies-fedora: ## install dependencies for linux
yum install -y automake bison ccache cmake curl flex perl-IPC-Cmd tar unzip zip

dependencies-alma: ## install dependencies for linux
dnf install -y automake bison ccache cmake curl flex perl-IPC-Cmd tar unzip zip

dependencies-vcpkg: ## install dependnecies via vcpkg
cd vcpkg && ./bootstrap-vcpkg.sh && ./vcpkg install

Expand Down
1 change: 1 addition & 0 deletions docs/wiki/dev-guides/Build-CSP-from-Source.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ make lint-py
# or
# python -m isort --check csp/ setup.py
# python -m ruff check csp/ setup.py
# python -m ruff format --check csp/ setup.py
```

**Python Autoformatting**
Expand Down

0 comments on commit 6b4f38b

Please sign in to comment.