forked from ZenBrowserMirrors/zen-desktop
Update formatting commands in package.json and pyproject.toml; refactor indentation in Python scripts for consistency
This commit is contained in:
parent
225ab67a50
commit
9775e1c75d
4 changed files with 33 additions and 33 deletions
|
@ -17,8 +17,8 @@
|
||||||
"update-ff": "python3 scripts/update_ff.py",
|
"update-ff": "python3 scripts/update_ff.py",
|
||||||
"update-ff:raw": "surfer update",
|
"update-ff:raw": "surfer update",
|
||||||
"update-newtab": "python3 scripts/update_newtab.py",
|
"update-newtab": "python3 scripts/update_newtab.py",
|
||||||
"pretty": "prettier . --write && autopep8 -r scripts/ --in-place",
|
"pretty": "prettier . --write && autopep8 -r --in-place scripts/ src/",
|
||||||
"lint": "npx prettier . --check && autopep8 --diff -r scripts/",
|
"lint": "npx prettier . --check && autopep8 --diff scripts/ src/",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[tool.autopep8]
|
[tool.autopep8]
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
ignore = "E501,W6" # or ["E501", "W6"]
|
|
||||||
recursive = true
|
recursive = true
|
||||||
aggressive = 3
|
aggressive = 3
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
|
@ -72,5 +72,6 @@ def main() -> int:
|
||||||
print(f"Current version: {current_version}, RC version: {rc_response}")
|
print(f"Current version: {current_version}, RC version: {rc_response}")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue