Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
fix repr attr error (#18)
Browse files Browse the repository at this point in the history
* fix repr attr error

* reduce number of test runs
  • Loading branch information
PythonFZ authored Mar 14, 2023
1 parent e4fb2bf commit 5ef9b21
Show file tree
Hide file tree
Showing 6 changed files with 1,248 additions and 1,226 deletions.
61 changes: 16 additions & 45 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,30 @@ name: Check coding style

on:
push:
branches: [ main ]
pull_request:

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Black Check
uses: psf/black@stable
with:
version: "22.8.0"

isort:
full:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install isort
run: |
pip install isort==5.10.1
- name: run isort
run: |
isort --check-only --quiet .
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: ruff .

pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: abatilo/actions-poetry@v2
with:
python-version: '3.9'
- name: Install package
run: |
pip install .
- name: Install pylint
run: |
pip install pylint perflint
- name: run pylint
poetry-version: 1.4.0
- name: Install lint tools
run: |
pylint zninit --load-plugins=perflint
poetry config virtualenvs.create false
poetry install --no-root --only=lint
- name: black
if: always()
run: black --check .
- name: isort
if: always()
run: isort --check-only .
- name: ruff
if: always()
run: ruff .
1 change: 1 addition & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: pytest

on:
push:
branches: [ main ]
pull_request:
schedule:
- cron: '14 3 * * 1' # at 03:14 on Monday.
Expand Down
Loading

0 comments on commit 5ef9b21

Please sign in to comment.