Skip to content

Commit

Permalink
chore: use ruff (isort, pylint and pyflakes) instead of individual is…
Browse files Browse the repository at this point in the history
…ort, pylint and black libraries (#1043)

* apply ruff format and check --fix

* add .ruff.toml

* remove unused rule

* fix pypo

* remove pylint etc

* split lint and format

* add check to call lint and format

* add fix

* modify prefix

* tweak
  • Loading branch information
KazuCocoa authored Oct 10, 2024
1 parent fdbd03a commit 8f2b059
Show file tree
Hide file tree
Showing 53 changed files with 156 additions and 827 deletions.
26 changes: 9 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: [ "." ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
entry: mypy appium/ test/functional
pass_filenames: false
additional_dependencies: [types-python-dateutil==2.8.19.13]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: [ ".", "-l", "120", "-S" ]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.9
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
Loading

0 comments on commit 8f2b059

Please sign in to comment.