Skip to content

Commit

Permalink
update: linter settings (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanato12 authored Apr 8, 2024
1 parent 29ce581 commit d2abbad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/lint_python.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
name: lint python
name: linter

on:
pull_request:
paths:
- "*"
- "**.py"
- pyproject.toml
- requirements-dev.txt
- requirements.txt
- setup.cfg
push:
branches:
- develop
paths:
- "*"
- "**.py"
- pyproject.toml
- requirements-dev.txt
- requirements.txt
- setup.cfg

jobs:
build:
python-lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
init:
pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt

.PHONY: lint
lint:
Expand Down
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[tool.black]
line-length = 79
exclude = '''
(
venv
| .mypy_cache
)
'''

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
skip = ["venv"]

[tool.mypy]
explicit_package_bases = true
warn_return_any = true
no_implicit_optional = true
disallow_untyped_calls = true
disallow_untyped_defs = true
ignore_missing_imports = true
follow_imports = 'skip'
exclude = [
'^venv/*',
]
exclude = ['^venv/*']

0 comments on commit d2abbad

Please sign in to comment.