@@ -25,15 +25,13 @@ add = { shell = 'poetry add' }
25
25
install = { shell = ' poetry install' }
26
26
build = { shell = ' poetry build' }
27
27
clean = { shell = ' rm -R ./dist .pytest_cache .mypy_cache &> /dev/null' }
28
-
29
28
isort = { shell = ' poetry run isort ./beaupy' }
30
29
black = { shell = ' poetry run black ./beaupy --skip-string-normalization' }
31
30
mypy = { shell = ' poetry run mypy ./beaupy/' }
32
31
flake8 = { shell = ' poetry run pflake8 ./beaupy/' }
33
32
perflint = { shell = " poetry run perflint ./beaupy/" }
34
33
lint = { shell = ' echo "Running isort..." ; poetry run poe isort; echo "Running black..." ; poetry run poe black ; echo "Running unify..." ; poetry run unify ./beaupy -r -i ; echo "Running flake8..." ; poetry run poe flake8 ; echo "Running mypy..." ; poetry run poe mypy ; echo Done!' }
35
34
"lint:watch" = { shell = " poetry run poe lint ; poetry run watchmedo shell-command --patterns='*.py;*.feature;*.toml' --recursive --drop --command='poetry run poe lint'" }
36
-
37
35
"test" = { shell = " poetry run ward" }
38
36
"test:watch" = { shell = " poetry run poe test; poetry run watchmedo shell-command --patterns='*.py;*.feature;*.toml' --recursive --drop --command='poetry run poe test'" }
39
37
@@ -44,21 +42,16 @@ emoji = "^2.0.0"
44
42
python-yakh = " 0.3.2"
45
43
questo = " ^0.2.3"
46
44
47
-
48
45
[tool .mypy ]
49
-
50
46
files = [" src" ]
51
47
warn_return_any = true
52
48
warn_unused_configs = true
53
-
54
49
disallow_untyped_defs = true
55
50
disallow_incomplete_defs = true
56
51
disallow_untyped_decorators = true
57
-
58
52
warn_redundant_casts = true
59
53
warn_unreachable = true
60
54
warn_unused_ignores = true
61
-
62
55
show_column_numbers = true
63
56
ignore_missing_imports = true
64
57
@@ -71,10 +64,9 @@ profile = "black"
71
64
[tool .flake8 ]
72
65
max-line-length = 140
73
66
max-complexity = 18
74
- select = [" B" ," E" ," F" ," W" ," T4" ," B9" ]
67
+ select = [" B" , " E" , " F" , " W" , " T4" , " B9" ]
75
68
76
69
[[tool .pydoc-markdown .loaders ]]
77
-
78
70
type = ' python'
79
71
search_path = [' ./beaupy' ]
80
72
@@ -92,13 +84,13 @@ report_type = ["term", "xml"]
92
84
source = [" ." ]
93
85
branch = true
94
86
relative_files = true
95
- report = {skip_empty = true }
87
+ report = { skip_empty = true }
96
88
97
89
[tool .poetry .group .test .dependencies ]
98
90
expycted = ' *'
99
91
mock = ' *'
100
92
poethepoet = ' *'
101
- ward = " ^0.67.1b0 "
93
+ ward = " ^0.68.0b0 "
102
94
ward-coverage = " ^0.3.0"
103
95
104
96
[tool .poetry .group .dev .dependencies ]
@@ -107,18 +99,15 @@ mypy = '*'
107
99
pyproject-flake8 = " *"
108
100
flake8 = " <5"
109
101
black = " ^22.6.0"
110
-
111
102
# # Bugs
112
103
flake8-simplify = ' *'
113
104
flake8-pie = ' *'
114
105
flake8-bandit = ' *'
115
-
116
106
# # Complexity
117
107
flake8-cognitive-complexity = ' *'
118
108
flake8-expression-complexity = ' *'
119
109
radon = ' *'
120
110
xenon = ' *'
121
-
122
111
# # Lints
123
112
flake8-quotes = ' *'
124
113
flake8-print = ' *'
@@ -127,24 +116,18 @@ flake8-comments = '*'
127
116
toml-sort = ' *'
128
117
isort = ' *'
129
118
unify = " *"
130
-
131
119
# # Performance
132
120
perflint = ' *'
133
-
134
121
# Expect Pattern Testing
135
122
expycted = ' *'
136
-
137
123
# Unit Testing
138
- ward = " ^0.67.1b0 "
124
+ ward = " ^0.68.0b0 "
139
125
mock = ' *'
140
126
watchdog = ' *'
141
-
142
127
# Coverage
143
128
ward-coverage = " ^0.3.0"
144
-
145
129
# Task Runner
146
130
poethepoet = ' *'
147
-
148
131
# Docs
149
132
pydoc-markdown = " ^4.6.3"
150
133
types-emoji = " ^2.0.1"
0 commit comments