Skip to content

Commit 7fa83a4

Browse files
committed
Update format.yml & Add npm package management
1 parent b0ecaee commit 7fa83a4

File tree

5 files changed

+120
-4
lines changed

5 files changed

+120
-4
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ jobs:
2424
2525
sudo apt install python3 black -y
2626
27-
sudo npm i -g prettier
28-
29-
black --version
30-
echo "prettier $(prettier --version)"
27+
sudo npm i # Prettier version and plugins should be specified in package.json
3128
3229
- name: Format python using black
3330
run: black . --target-version py310

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["@prettier/plugin-php", "prettier-plugin-sh"]
3+
}

package-lock.json

Lines changed: 108 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"devDependencies": {
3+
"@prettier/plugin-php": "^0.22.2",
4+
"prettier": "^3.4.1",
5+
"prettier-plugin-sh": "^0.14.0"
6+
}
7+
}

0 commit comments

Comments
 (0)