build: add devcontainer for development environment #141
This file contains 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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**.py" | |
push: | |
branches: | |
- main | |
paths: | |
- "**.py" | |
jobs: | |
lint-ruff: | |
name: lint-ruff | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install Ruff | |
run: pip install ruff | |
- name: Run Ruff format | |
run: | | |
ruff format . | |
ruff check . --select I001,I002 |