mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-25 07:35:43 +00:00
added lint fix for frontend to pyl w/ burnettk cullerton
This commit is contained in:
parent
3d76a2276c
commit
31b5e5ec1e
10
bin/run_pyl
10
bin/run_pyl
@ -12,6 +12,10 @@ python_projects=(
|
|||||||
spiffworkflow-backend
|
spiffworkflow-backend
|
||||||
)
|
)
|
||||||
|
|
||||||
|
react_projects=(
|
||||||
|
spiffworkflow-frontend
|
||||||
|
)
|
||||||
|
|
||||||
function get_python_dirs() {
|
function get_python_dirs() {
|
||||||
(git ls-tree -r HEAD --name-only | grep -E '\.py$' | awk -F '/' '{print $1}' | sort | uniq | grep -v '\.' | grep -Ev '^(bin|migrations)$') || echo ''
|
(git ls-tree -r HEAD --name-only | grep -E '\.py$' | awk -F '/' '{print $1}' | sort | uniq | grep -v '\.' | grep -Ev '^(bin|migrations)$') || echo ''
|
||||||
}
|
}
|
||||||
@ -39,6 +43,12 @@ function run_pre_commmit() {
|
|||||||
poetry run pre-commit run --verbose --all-files
|
poetry run pre-commit run --verbose --all-files
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for react_project in "${react_projects[@]}" ; do
|
||||||
|
pushd "$react_project"
|
||||||
|
npm run lint:fix
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
|
||||||
for python_project in "${python_projects[@]}" ; do
|
for python_project in "${python_projects[@]}" ; do
|
||||||
pushd "$python_project"
|
pushd "$python_project"
|
||||||
run_autoflake || run_autoflake
|
run_autoflake || run_autoflake
|
||||||
|
@ -74,12 +74,12 @@ export interface CarbonComboBoxSelection {
|
|||||||
export interface PermissionsToCheck {
|
export interface PermissionsToCheck {
|
||||||
[key: string]: string[];
|
[key: string]: string[];
|
||||||
}
|
}
|
||||||
export interface PermissionCheckResponseBody {
|
export interface PermissionVerbResults {
|
||||||
results: PermissionCheckResult;
|
[key: string]: boolean;
|
||||||
}
|
}
|
||||||
export interface PermissionCheckResult {
|
export interface PermissionCheckResult {
|
||||||
[key: string]: PermissionVerbResults;
|
[key: string]: PermissionVerbResults;
|
||||||
}
|
}
|
||||||
export interface PermissionVerbResults {
|
export interface PermissionCheckResponseBody {
|
||||||
[key: string]: boolean;
|
results: PermissionCheckResult;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user