Skip to content

Commit

Permalink
FIX: 生成されたpysenの設定を更新 (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabonerune authored Apr 19, 2023
1 parent abeda9b commit aa95cae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ isort_known_third_party = ["numpy"]
paths = [".", "voicevox_engine/"]

[tool.black] # automatically generated by pysen
# pysen ignores and overwrites any modifications
line-length = 88
target-version = ["py310"] # TODO: update to py311 after pysen supports Python 3.11


[tool.isort] # automatically generated by pysen
# pysen ignores and overwrites any modifications
default_section = "THIRDPARTY"
ensure_newline_before_comments = true
force_grid_wrap = 0
Expand Down
13 changes: 6 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
[flake8]
# automatically generated by pysen
# pysen ignores and overwrites any modifications
# e203: black treats : as a binary operator
# e231: black doesn't put a space after ,
# e501: black may exceed the line-length to follow other style rules
# w503 or w504: either one needs to be disabled to select w error codes
# ignore = E203,E231,E501,W503
ignore = E203,E231,E501,W503
max-line-length = 88
select = B,B950,C,E,F,W
# e741: do not use variables named 'I', 'O', or 'l'
ignore = E203,W503,E741


[mypy]
# automatically generated by pysen
# pysen ignores and overwrites any modifications
check_untyped_defs = True
disallow_any_decorated = False
disallow_any_generics = True
disallow_any_generics = False
disallow_any_unimported = False
disallow_incomplete_defs = True
disallow_subclassing_any = True
Expand All @@ -25,13 +24,13 @@ disallow_untyped_defs = False
ignore_errors = False
ignore_missing_imports = True
no_implicit_optional = True
python_version = 3.7
python_version = 3.10
show_error_codes = True
strict_equality = True
strict_optional = True
warn_redundant_casts = True
warn_return_any = False
warn_unreachable = True
warn_unused_configs = True
warn_unused_ignores = True
warn_unused_ignores = False

0 comments on commit aa95cae

Please sign in to comment.