Skip to content

infra: onboard on to ruff for notebook linting #634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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