├── .github └── workflows │ └── main.yml ├── .pre-commit-hooks.yaml ├── .version ├── LICENSE ├── README.md └── setup.py /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: main 2 | on: 3 | push: 4 | branches: [main] 5 | schedule: 6 | - cron: '55 8 * * *' 7 | 8 | jobs: 9 | build: 10 | name: main 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v1 14 | - uses: actions/setup-python@v1 15 | - run: pip install pre-commit-mirror-maker 16 | - run: git config --global user.name 'Github Actions' 17 | - run: git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' 18 | - run: pre-commit-mirror . --language=python --package-name=yapf --types=python --args=-i 19 | - run: | 20 | git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY 21 | git push origin HEAD:refs/heads/main --tags 22 | env: 23 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 24 | -------------------------------------------------------------------------------- /.pre-commit-hooks.yaml: -------------------------------------------------------------------------------- 1 | - id: yapf 2 | name: yapf 3 | entry: yapf 4 | language: python 5 | 'types': [python] 6 | args: ["-i"] 7 | require_serial: false 8 | additional_dependencies: [] 9 | minimum_pre_commit_version: '0' 10 | -------------------------------------------------------------------------------- /.version: -------------------------------------------------------------------------------- 1 | 0.32.0 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Anthony Sottile 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DEPRECATED 2 | 3 | use https://github.com/google/yapf directly now instead \o/ 4 | 5 | ___ 6 | 7 | yapf mirror 8 | =========== 9 | 10 | Mirror of yapf package for pre-commit. 11 | 12 | For pre-commit: see https://github.com/pre-commit/pre-commit 13 | 14 | For yapf: see https://github.com/google/yapf 15 | 16 | 17 | ### Using yapf with pre-commit 18 | 19 | Add this to your `.pre-commit-config.yaml`: 20 | ```yaml 21 | - repo: https://github.com/pre-commit/mirrors-yapf 22 | rev: '' # Use the sha / tag you want to point at 23 | hooks: 24 | - id: yapf 25 | ``` 26 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | 4 | setup( 5 | name='pre_commit_placeholder_package', 6 | version='0.0.0', 7 | install_requires=['yapf==0.32.0'], 8 | ) 9 | --------------------------------------------------------------------------------