From 53bf905dccf03b38393b05b438702dd4098c0b5d Mon Sep 17 00:00:00 2001 From: Kyler Li Date: Fri, 25 Oct 2024 02:48:51 +0000 Subject: [PATCH] [formatting] place black version in toml file --- .github/workflows/lint.yml | 59 +++++++++++++++++++------------------- pyproject.toml | 5 ++-- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6848dea..beda954 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,30 +1,29 @@ -name: Lint - -on: [push, pull_request] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run Black - uses: psf/black@stable - with: - options: "--check --verbose" - src: "./src" - use_pyproject: true - version: "~= 24.8.0" - - name: Setup Python - uses: actions/setup-python@v3 - with: - python-version: 3.10.12 - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install pylint==3.2.7 mypy==1.11.2 - - name: Run Pylint - run: | - pylint $(git ls-files "*.py") - - name: Run Mypy - run: | - mypy $(git ls-files "*.py") +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run Black + uses: psf/black@stable + with: + options: "--check --verbose" + src: "./src" + use_pyproject: true + - name: Setup Python + uses: actions/setup-python@v3 + with: + python-version: 3.10.12 + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install pylint==3.2.7 mypy==1.11.2 + - name: Run Pylint + run: | + pylint $(git ls-files "*.py") + - name: Run Mypy + run: | + mypy $(git ls-files "*.py") diff --git a/pyproject.toml b/pyproject.toml index 037585e..0f2c881 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,3 @@ -[tool.black] -line-length = 100 \ No newline at end of file +[tool.black] +line-length = 100 +required-version = 24.8.0 \ No newline at end of file