unstructured

Форк
0
/
pyproject.toml 
37 строк · 1.4 Кб
1
[tool.black]
2
line-length = 100
3

4
[tool.pyright]
5
pythonPlatform = "Linux"
6
pythonVersion = "3.8"
7
reportUnnecessaryCast = true
8
reportUnnecessaryTypeIgnoreComment = true
9
stubPath = "./typings"
10
typeCheckingMode = "strict"
11
verboseOutput = true
12

13
[tool.ruff]
14
line-length = 100
15

16
# -- changes made here should also be made in `.pre-commit-config.yaml` and `Makefile` --
17
[tool.ruff.lint]
18
select = [
19
    "C4",       # -- flake8-comprehensions --
20
    "COM",      # -- flake8-commas --
21
    "E",        # -- pycodestyle errors --
22
    "F",        # -- pyflakes --
23
    "I",        # -- isort (imports) --
24
    "PLR0402",  # -- Name compared with itself like `foo == foo` --
25
    "PT",       # -- flake8-pytest-style --
26
    "SIM",      # -- flake8-simplify --
27
    "UP015",    # -- redundant `open()` mode parameter (like "r" is default) --
28
    "UP018",    # -- Unnecessary {literal_type} call like `str("abc")`. (rewrite as a literal) --
29
    "UP032",    # -- Use f-string instead of `.format()` call --
30
    "UP034",    # -- Avoid extraneous parentheses --
31
]
32
ignore = [
33
    "COM812",   # -- over aggressively insists on trailing commas where not desireable --
34
    "PT011",    # -- pytest.raises({exc}) too broad, use match param or more specific exception --
35
    "PT012",    # -- pytest.raises() block should contain a single simple statement --
36
    "SIM117",   # -- merge `with` statements for context managers that have same scope --
37
]
38

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.