Skip to content

Commit

Permalink
A
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonic0 committed Apr 11, 2024
1 parent d348080 commit 58c35a0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ jobs:
- name: Lint with flake8
uses: py-actions/flake8@v2
with:
args: --count --show-source --max-complexity=10 --select=E9,F63,F7,F82
ignore: "F401"
max-line-length: "120"
args: --count --show-source
path: "cron_converter"
plugins: "flake8-bugbear==22.1.11 flake8-black"
plugins: "flake8-bugbear flake8-black"

isort:
name: Isort
Expand All @@ -67,27 +65,29 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install isort
- name: Sort imports with isort
run: isort --multi-line 3 --profile black .
run: isort --diff --multi-line 3 --profile black .

mypy:
name: MyPy
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
python-version: 3
- name: Checkout
uses: actions/checkout@v4
- name: Install mypy
run: |
python3 -m pip install --upgrade pip
python3 -m pip install mypy
- name: Run mypy
uses: jpetrucciani/mypy-check@master
- name: Get Python changed files
id: changed-py-files
uses: tj-actions/changed-files@v23
with:
python_version: ${{ matrix.python-version }}
files: |
*.py
**/*.py
- name: Run if any of the listed files above is changed
if: steps.changed-py-files.outputs.any_changed == 'true'
run: mypy ${{ steps.changed-py-files.outputs.all_changed_files }}
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
disallow_untyped_defs = True
ignore_missing_imports = True

;[flake8]
;ignore = N802,N807,W503,E203
;max-line-length = 100
;max-complexity = 30
[flake8]
max-line-length = 120
max-complexity = 10
exclude = .git,.github,__pycache__,build,dist

0 comments on commit 58c35a0

Please sign in to comment.