File tree Expand file tree Collapse file tree 4 files changed +20
-32
lines changed Expand file tree Collapse file tree 4 files changed +20
-32
lines changed Original file line number Diff line number Diff line change 8
8
- id : check-toml
9
9
- id : check-added-large-files
10
10
- id : debug-statements
11
- - repo : https://github.com/PyCQA/flake8
12
- rev : " 6.0.0"
13
- hooks :
14
- - id : flake8
15
- additional_dependencies :
16
- - flake8-bugbear
17
11
- repo : https://github.com/psf/black
18
12
rev : " 22.10.0"
19
13
hooks :
20
14
- id : black
21
- - repo : https://github.com/pycqa/isort
22
- rev : 5.10.1
23
- hooks :
24
- - id : isort
25
- name : isort (python)
26
- - repo : https://github.com/asottile/pyupgrade
27
- rev : v3.3.0
28
- hooks :
29
- - id : pyupgrade
30
- args : [--py37-plus]
31
15
- repo : https://github.com/pre-commit/mirrors-mypy
32
16
rev : " v0.991"
33
17
hooks :
38
22
- types-docutils
39
23
- types-requests
40
24
- types-atomicwrites
25
+ - repo : https://github.com/charliermarsh/ruff-pre-commit
26
+ rev : ' v0.0.237'
27
+ hooks :
28
+ - id : ruff
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ virtualenv_ and run this inside of it::
81
81
82
82
# Install development dependencies, including:
83
83
# - vdirsyncer from the repo into the virtualenv
84
- # - stylecheckers (flake8 ) and code formatters (autopep8 )
84
+ # - stylecheckers (ruff ) and code formatters (black )
85
85
make install-dev
86
86
87
87
# Install git commit hook for some extra linting and checking
Original file line number Diff line number Diff line change
1
+ [tool .ruff ]
2
+ select = [
3
+ " E" ,
4
+ " F" ,
5
+ " W" ,
6
+ " B0" ,
7
+ " I" ,
8
+ " UP" ,
9
+ " C4" ,
10
+ # "TID",
11
+ ]
12
+ target-version = " py37"
13
+
14
+ [tool .ruff .isort ]
15
+ force-single-line = true
Original file line number Diff line number Diff line change @@ -8,21 +8,6 @@ addopts =
8
8
--color =yes
9
9
# filterwarnings=error
10
10
11
- [flake8]
12
- application-import-names = tests,vdirsyncer
13
- extend-ignore =
14
- # Black-incompatible colon spacing.
15
- E203,
16
- # Line jump before binary operator.
17
- W503,
18
- I100,
19
- I202
20
- max-line-length = 88
21
- exclude = .eggs,build
22
-
23
- [isort]
24
- force_single_line =true
25
-
26
11
[mypy]
27
12
ignore_missing_imports = True
28
13
# See https://github.com/python/mypy/issues/7511:
You can’t perform that action at this time.
0 commit comments