generated from tongyx361/nbdev-template-tongyx361
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
39 lines (37 loc) · 1.22 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs # Temporary directory for egg installations
| \.git # Git version control directory
| \.hg # Mercurial version control directory
| \.mypy_cache # MyPy cache directory
| \.tox # Tox testing tool directory
| \.venv # Virtual environment directory
| build # Build output directory
| dist # Distribution output directory
)/
'''
[tool.isort]
profile = "black" # Use Black-compatible defaults
multi_line_output = 3 # Vertical Hanging Indent
include_trailing_comma = true # Include a trailing comma on multi-line imports
force_grid_wrap = 0 # Don't force grid wrapping
use_parentheses = true # Use parentheses for line continuation
ensure_newline_before_comments = true # Ensure new line before comments
line_length = 88 # Should match Black's line length
[tool.mypy]
python_version = "3.11"
disallow_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
check_untyped_defs = true
no_implicit_optional = true
warn_unused_configs = true