Skip to content

Add the scale argument to encode_data.py #1351

Add the scale argument to encode_data.py

Add the scale argument to encode_data.py #1351

Workflow file for this run

name: Style Check
on: [push, pull_request]
permissions:
contents: read
jobs:
python-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install ".[dev]"
pip install ".[jaxcpu]"
- name: Run isort
run: |
isort --diff --check .
- name: Run yapf
run: |
yapf --diff --recursive budoux tests scripts
- name: Run mypy
run: |
mypy budoux tests scripts
- name: Run flake8
if: ${{ always() }}
uses: suo/flake8-github-action@3e87882219642e01aa8a6bbd03b4b0adb8542c2a
with:
checkName: python-style-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
typescript-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: '16'
- run: npm install
working-directory: ./javascript
- run: npm run lint
working-directory: ./javascript
java-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
java-version: '17'
distribution: 'temurin'
- name: Google Java Format
uses: axel-op/googlejavaformat-action@dbff853fb823671ec5781365233bf86543b13215
with:
args: "--replace"
skip-commit: true
- name: Print diffs
run: git --no-pager diff --exit-code
markdown-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: markdownlint
uses: nosborn/github-action-markdown-cli@9b5e871c11cc0649c5ac2526af22e23525fa344d
with:
files: '**/*.md'
config_file: .markdownlint.yaml