File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -75,3 +75,7 @@ pyo3 = { version = "0.20.0", features = ["auto-initialize"] }
75
75
version_check = " 0.9.4"
76
76
# used where logic has to be version/distribution specific, e.g. pypy
77
77
pyo3-build-config = { version = " 0.20.0" }
78
+
79
+ [lints .clippy ]
80
+ dbg_macro = " warn"
81
+ print_stdout = " warn"
Original file line number Diff line number Diff line change 1
1
.DEFAULT_GOAL := all
2
- sources = python/pydantic_core tests generate_self_schema.py wasm-preview/run_tests.py
2
+ sources = python/pydantic_core tests generate_self_schema.py wasm-preview/run_tests.py
3
3
4
4
mypy-stubtest = python -m mypy.stubtest pydantic_core._pydantic_core --allowlist .mypy-stubtest-allowlist
5
5
@@ -90,14 +90,14 @@ build-wasm:
90
90
91
91
.PHONY : format
92
92
format :
93
- ruff --fix $(sources )
94
- ruff format $(sources )
93
+ ruff --fix $(sources )
94
+ ruff format $(sources )
95
95
cargo fmt
96
96
97
97
.PHONY : lint-python
98
98
lint-python :
99
- ruff $(sources )
100
- ruff format --check $(sources )
99
+ ruff $(sources )
100
+ ruff format --check $(sources )
101
101
$(mypy-stubtest )
102
102
griffe dump -f -d google -LWARNING -o/dev/null python/pydantic_core
103
103
@@ -109,8 +109,6 @@ lint-rust:
109
109
cargo clippy --tests -- \
110
110
-D warnings \
111
111
-W clippy::pedantic \
112
- -W clippy::dbg_macro \
113
- -W clippy::print_stdout \
114
112
-A clippy::cast-possible-truncation \
115
113
-A clippy::cast-possible-wrap \
116
114
-A clippy::cast-precision-loss \
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ mod tests {
22
22
// 'type': 'function-wrap',
23
23
// 'function': lambda: None,
24
24
// },
25
- let code = r# "{
25
+ let code = r"{
26
26
'type': 'definitions',
27
27
'schema': {'type': 'definition-ref', 'schema_ref': 'C-ref'},
28
28
'definitions': [
@@ -44,7 +44,7 @@ mod tests {
44
44
},
45
45
},
46
46
]
47
- }"# ;
47
+ }" ;
48
48
let schema: & PyDict = py. eval ( code, None , None ) . unwrap ( ) . extract ( ) . unwrap ( ) ;
49
49
SchemaSerializer :: py_new ( py, schema, None ) . unwrap ( ) ;
50
50
} ) ;
You can’t perform that action at this time.
0 commit comments