Skip to content

Commit

Permalink
updated lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thinagar-sivadas committed Sep 6, 2023
1 parent bead02a commit b13e81b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: pytest

- name: Run Pylint
run: pylint $(git ls-files '*.py') --max-line-length=120
run: pylint $(git ls-files '*.py')
13 changes: 3 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,17 @@ repos:
hooks:
- id: check-github-workflows
- repo: https://github.com/kynan/nbstripout
rev: 0.6.0
rev: 0.6.1
hooks:
- id: nbstripout
- repo: https://github.com/psf/black/
rev: 23.7.0
hooks:
- id: black
args:
- "--line-length=120"
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args:
- "--profile=black"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
Expand All @@ -49,13 +45,10 @@ repos:
hooks:
- id: pylint
name: pylint
entry: pylint
entry: bash
language: python
require_serial: true
types:
- "python"
args:
- "--max-line-length=120"
args: ["-c", "pylint $(git ls-files '*.py')"]
- repo: local
hooks:
- id: pytest
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.isort]
profile = 'black'

[tool.pylint.format]
max-line-length = 120

[tool.black]
line-length = 120

0 comments on commit b13e81b

Please sign in to comment.