Skip to content

Commit 8f2b059

Browse files
authored
chore: use ruff (isort, pylint and pyflakes) instead of individual isort, 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
1 parent fdbd03a commit 8f2b059

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+156
-827
lines changed

.pre-commit-config.yaml

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
repos:
2-
- repo: https://github.com/PyCQA/isort
3-
rev: 5.13.2
4-
hooks:
5-
- id: isort
6-
args: [ "." ]
7-
- repo: https://github.com/pre-commit/mirrors-mypy
8-
rev: v1.10.0
9-
hooks:
10-
- id: mypy
11-
entry: mypy appium/ test/functional
12-
pass_filenames: false
13-
additional_dependencies: [types-python-dateutil==2.8.19.13]
14-
- repo: https://github.com/psf/black
15-
rev: 24.4.2
16-
hooks:
17-
- id: black
18-
args: [ ".", "-l", "120", "-S" ]
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.6.9
5+
hooks:
6+
# Run the linter.
7+
- id: ruff
8+
args: [ --fix ]
9+
# Run the formatter.
10+
- id: ruff-format

0 commit comments

Comments
 (0)