diff options
| author | adamjanovsky | 2023-11-10 12:54:00 +0100 |
|---|---|---|
| committer | GitHub | 2023-11-10 12:54:00 +0100 |
| commit | 1ccca9ae8afa8e6574e1cbba2c93b8d5428e2b2e (patch) | |
| tree | c0c2f35f921f3551f2bf0a146c1cbd6c0494f7a9 /.github/workflows | |
| parent | 5968e53d9f78d744c1bd151be0d754282e65baee (diff) | |
| parent | 10aa312c5e83c197a2d41fec710c5301bfff169e (diff) | |
| download | sec-certs-1ccca9ae8afa8e6574e1cbba2c93b8d5428e2b2e.tar.gz sec-certs-1ccca9ae8afa8e6574e1cbba2c93b8d5428e2b2e.tar.zst sec-certs-1ccca9ae8afa8e6574e1cbba2c93b8d5428e2b2e.zip | |
Merge pull request #373 from crocs-muni/switch-black-to-ruff
switch black -> ruff format
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/lint.yml | 44 | ||||
| -rw-r--r-- | .github/workflows/pre-commit.yml | 18 |
2 files changed, 18 insertions, 44 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 9cb2236f..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Lint (MyPy, Black, Ruff) -on: - push: - workflow_dispatch: -jobs: - black: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: "3.8" - - name: Install dependencies - run: | - sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev -y - pip install -r requirements/dev_requirements.txt - - name: Run Black - run: black . --check --target-version py38 - ruff: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: "3.8" - - name: Install dependencies - run: | - sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev -y - pip install -r requirements/dev_requirements.txt - - name: Run Ruff - run: ruff . --format=github - mypy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: "3.8" - - name: Install dependencies - run: | - sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev -y - pip install -r requirements/dev_requirements.txt - - name: Run Mypy - run: mypy . diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 00000000..aa28ddc5 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,18 @@ +name: Lint (Ruff, MyPy) +on: + push: + workflow_dispatch: +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.8" + - name: Install dependencies + run: | + sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev -y + pip install -r requirements/dev_requirements.txt + - name: Run pre-commit + run: pre-commit run --all-files |
