Skip to content

Commit

Permalink
infra: onboard on to ruff for notebook linting (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeCoull authored Oct 21, 2024
1 parent 14e8d2b commit 1f4d7d9
Show file tree
Hide file tree
Showing 131 changed files with 13,635 additions and 13,076 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will run the linter checks from a new hatch environment.


name: Check code format

on:
pull_request:
branches:
- main
- feature/**

permissions:
contents: read

jobs:
check-code-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.9' # Minimum supported Python version
- name: Install dependencies
run: |
pip install hatch
- name: Run code format checks
run: |
hatch run lint:style
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,7 @@ examples/hybrid_jobs/2_Using_PennyLane_with_Braket_Jobs/input-data.adjlist

# Notebook artifacts
*/3_Deep_dive_into_the_anatomy_of_quantum_circuits/device_logs-*.txt
examples/hybrid_jobs/4_Embedded_simulators_in_Braket_Hybrid_Jobs/embedded-simulation-*
examples/hybrid_jobs/8_Creating_Hybrid_Job_Scripts/braket-job-default-*
examples/**/model.tar.gz
examples/**results.json
Loading

0 comments on commit 1f4d7d9

Please sign in to comment.