diff --git a/README.md b/README.md index e435c70c..bf203b8d 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ [](#contributors-) - +
Python API for Photoshop.
@@ -72,7 +72,7 @@ pip install photoshop_python_api ``` -Since it uses COM (Component Object Model) connect Photoshop, it can be used +Since it uses COM (Component Object Model) connect Photoshop, it can be used in any DCC software with a python interpreter. @@ -183,8 +183,8 @@ Contributions of any kind are welcome! how to get Photoshop program ID ------------------------------- ```PS> -Get-ChildItem "HKLM:\SOFTWARE\Classes" | - ?{ ($_.PSChildName -match "^[a-z]+\.[a-z]+(\.\d+)?$") -and ($_.GetSubKeyNames() -contains "CLSID") } | +Get-ChildItem "HKLM:\SOFTWARE\Classes" | + ?{ ($_.PSChildName -match "^[a-z]+\.[a-z]+(\.\d+)?$") -and ($_.GetSubKeyNames() -contains "CLSID") } | ?{ $_.PSChildName -match "Photoshop.Application" } | ft PSChildName ```  @@ -208,3 +208,89 @@ Useful links - http://www.tonton-pixel.com/scripts/utility-scripts/get-equivalent-id-code/index.html - https://github.com/Adobe-CEP/Samples/tree/master/PhotoshopEvents - https://evanmccall.wordpress.com/2015/03/09/how-to-develop-photoshop-tools-in-python + + +## ๐ ๏ธ Development Guide + +Welcome to the development guide for the Photoshop Python API project! This section outlines our development practices and standards to ensure code quality and consistency. + +### ๐ Quick Start for Contributors + +```bash +# Clone the repository +git clone https://github.com/loonghao/photoshop-python-api.git +cd photoshop-python-api + +# Install dependencies with Poetry +poetry install + +# Install pre-commit hooks +pre-commit install + +# Run tests +pytest +``` + +### ๐จ Code Style & Quality + +We maintain high code quality standards through automated tools and consistent style guidelines: + +- **Style Guide**: We follow the [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html) with project-specific adjustments: + - Line length: 120 characters max + - Docstrings: Google style format + - Quotes: Double quotes preferred + +- **Quality Tools**: + - [Black](https://black.readthedocs.io/) - Code formatting + - [isort](https://pycqa.github.io/isort/) - Import organization + - [flake8](https://flake8.pycqa.org/) - Style enforcement + - [pre-commit](https://pre-commit.com/) - Automated checks before commits + +### ๐ Git Workflow + +We use a structured workflow to maintain a clean and organized repository: + +- **Commit Messages**: Follow [Conventional Commits](https://www.conventionalcommits.org/) format + + ```text +