mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-06-27 02:30:08 +00:00
59 lines
1.8 KiB
TOML
59 lines
1.8 KiB
TOML
[tool.black]
|
|
line-length = 100
|
|
exclude = '''
|
|
/(
|
|
\.venv # Ignore virtual environment directory
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.nox
|
|
| \.env
|
|
| \.pytest_cache
|
|
| \.venv
|
|
| _build
|
|
| buck-out
|
|
| build
|
|
| dist
|
|
| unstructured/nlp/patterns\.py
|
|
)/|
|
|
unstructured/nlp/patterns\.py
|
|
'''
|
|
|
|
[tool.pyright]
|
|
pythonPlatform = "Linux"
|
|
pythonVersion = "3.9"
|
|
reportUnnecessaryCast = true
|
|
reportUnnecessaryTypeIgnoreComment = true
|
|
stubPath = "./typings"
|
|
typeCheckingMode = "strict"
|
|
verboseOutput = true
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py39"
|
|
|
|
[tool.ruff.lint]
|
|
ignore = [
|
|
"COM812", # -- over aggressively insists on trailing commas where not desireable --
|
|
"PT001", # -- wants empty parens on @pytest.fixture where not used (essentially always) --
|
|
"PT011", # -- pytest.raises({exc}) too broad, use match param or more specific exception --
|
|
"PT012", # -- pytest.raises() block should contain a single simple statement --
|
|
"SIM117", # -- merge `with` statements for context managers that have same scope --
|
|
]
|
|
select = [
|
|
"C4", # -- flake8-comprehensions --
|
|
"COM", # -- flake8-commas --
|
|
"E", # -- pycodestyle errors --
|
|
"F", # -- pyflakes --
|
|
"I", # -- isort (imports) --
|
|
"PLR0402", # -- Name compared with itself like `foo == foo` --
|
|
"PT", # -- flake8-pytest-style --
|
|
"SIM", # -- flake8-simplify --
|
|
"UP015", # -- redundant `open()` mode parameter (like "r" is default) --
|
|
"UP018", # -- Unnecessary {literal_type} call like `str("abc")`. (rewrite as a literal) --
|
|
"UP032", # -- Use f-string instead of `.format()` call --
|
|
"UP034", # -- Avoid extraneous parentheses --
|
|
"W", # -- Warnings, including invalid escape-sequence --
|
|
]
|