File tree Expand file tree Collapse file tree 6 files changed +29
-9
lines changed Expand file tree Collapse file tree 6 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 10
10
"python.testing.pytestArgs" : [" tests" ],
11
11
"python.testing.unittestEnabled" : false ,
12
12
"python.testing.pytestEnabled" : true ,
13
- "isort.check" : true ,
14
13
"markdownlint.config" : {
15
14
"MD033" : false ,
16
15
"MD036" : false ,
Original file line number Diff line number Diff line change @@ -54,9 +54,32 @@ addopts = "--doctest-modules"
54
54
doctest_optionflags = [" ELLIPSIS" ]
55
55
norecursedirs = " build"
56
56
57
- [tool .black ]
58
- skip-string-normalization = true
59
- target_version = [' py310' , ' py311' , ' py312' ]
57
+ [tool .ruff ]
58
+ line-length = 88
59
+
60
+ [tool .ruff .format ]
61
+ quote-style = " preserve"
62
+
63
+ [tool .ruff .lint ]
64
+ select = [
65
+ " E" , # pycodestyle errors
66
+ " W" , # pycodestyle warnings
67
+ " F" , # pyflakes
68
+ " I" , # isort
69
+ ]
70
+ ignore = [
71
+ " E203" , # Whitespace before '{symbol}'
72
+ " E265" , # Block comment should start with #
73
+ " E266" , # Too many leading # before block comment
74
+ " E501" , # Line too long ({width} > {limit})
75
+ " E741" , # Ambiguous variable name '{name}'
76
+ ]
77
+
78
+ [tool .ruff .lint .mccabe ]
79
+ max-complexity = 20
80
+
81
+ [tool .ruff .lint .isort ]
82
+ known-first-party = [" nextline" , " nextlinegraphql" ]
60
83
61
84
[tool .coverage .run ]
62
85
source_pkgs = [" nextline_alert" , " tests" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
from logging import getLogger
2
2
3
3
import httpx
4
+
4
5
from nextline .plugin .spec import Context , hookimpl
5
6
6
7
Original file line number Diff line number Diff line change 5
5
6
6
from apluggy import asynccontextmanager
7
7
from dynaconf import Dynaconf , Validator
8
+
8
9
from nextline import Nextline
9
10
from nextlinegraphql .hook import spec
10
11
Original file line number Diff line number Diff line change 4
4
5
5
import pytest
6
6
import respx
7
- from nextline import Nextline
8
7
8
+ from nextline import Nextline
9
9
from nextline_alert .emitter import Emitter
10
10
11
11
You can’t perform that action at this time.
0 commit comments