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
|
||||
)
|
||||
|
||||
react_projects=(
|
||||
spiffworkflow-frontend
|
||||
)
|
||||
|
||||
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 ''
|
||||
}
|
||||
|
@ -39,6 +43,12 @@ function run_pre_commmit() {
|
|||
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
|
||||
pushd "$python_project"
|
||||
run_autoflake || run_autoflake
|
||||
|
|
|
@ -74,12 +74,12 @@ export interface CarbonComboBoxSelection {
|
|||
export interface PermissionsToCheck {
|
||||
[key: string]: string[];
|
||||
}
|
||||
export interface PermissionCheckResponseBody {
|
||||
results: PermissionCheckResult;
|
||||
export interface PermissionVerbResults {
|
||||
[key: string]: boolean;
|
||||
}
|
||||
export interface PermissionCheckResult {
|
||||
[key: string]: PermissionVerbResults;
|
||||
}
|
||||
export interface PermissionVerbResults {
|
||||
[key: string]: boolean;
|
||||
export interface PermissionCheckResponseBody {
|
||||
results: PermissionCheckResult;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue