Merge pull request #6019 from microsoft/dependabot/pip/versioningit-3… #7525
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 with Darker | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release/*' | |
pull_request: | |
merge_group: | |
branches: ['main'] | |
permissions: | |
contents: read | |
jobs: | |
lint-with-darker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: "3.11" | |
- uses: akaihola/darker@0fcbba37081b4801113c2b017ee5134ecc8b3cd0 # 2.1.1 | |
with: | |
options: "--check --diff" | |
src: "./src/qcodes" | |
revision: "origin/main..." |