4
4
name = " project"
5
5
version = " 0.0.0"
6
6
description = " Scripts for managing the ReactPy respository"
7
- dependencies = [" invoke" ]
7
+ dependencies = [" invoke" , " ruff " , " black " ]
8
8
9
9
# --- Hatch ----------------------------------------------------------------------------
10
10
11
11
[tool .hatch .envs .default ]
12
12
post-install-commands = [" invoke env" ]
13
13
14
14
[tool .hatch .envs .default .scripts ]
15
- lint = " invoke lint"
16
- test = " invoke test"
15
+ publish = " invoke publish {args}"
16
+
17
+ checks = [" lint" , " test" ]
18
+ lint = [" lint-py {args}" , " lint-js {args}" ]
19
+ test = [" test-py" , " test-js" ]
20
+
21
+ lint-py = " invoke lint-py {args}"
22
+ lint-js = " invoke lint-js {args}"
23
+
24
+ test-py = " invoke test-py {args}"
25
+ test-js = " invoke test-js {args}"
17
26
18
27
# --- Black ----------------------------------------------------------------------------
19
28
@@ -36,7 +45,8 @@ select = [
36
45
" E" ,
37
46
" EM" ,
38
47
" F" ,
39
- " FBT" ,
48
+ # TODO: turn this on later
49
+ # "FBT",
40
50
" I" ,
41
51
" ICN" ,
42
52
" ISC" ,
@@ -55,6 +65,8 @@ select = [
55
65
" YTT" ,
56
66
]
57
67
ignore = [
68
+ # TODO: turn this on later
69
+ " N802" , " N806" , # allow TitleCase functions/variables
58
70
# Allow non-abstract empty methods in abstract base classes
59
71
" B027" ,
60
72
# Allow boolean positional values in function calls, like `dict.get(... True)`
@@ -77,4 +89,4 @@ ban-relative-imports = "all"
77
89
78
90
[tool .ruff .per-file-ignores ]
79
91
# Tests can use magic values, assertions, and relative imports
80
- "tests/**/*" = [" PLR2004" , " S101" , " TID252" ]
92
+ "**/ tests/**/*" = [" PLR2004" , " S101" , " TID252" ]
0 commit comments