Add MIT License file #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint & Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install lint tools | |
| run: | | |
| pip install flake8 black | |
| - name: Run flake8 (PEP8) | |
| run: | | |
| flake8 data/ qubo/ qaoa/ classical/ \ | |
| --max-line-length=100 \ | |
| --exclude=__pycache__,*.ipynb_checkpoints \ | |
| --ignore=E402,W503 | |
| - name: Run black (formatting check) | |
| run: | | |
| black --check --line-length=100 data/ qubo/ qaoa/ classical/ | |