-
Notifications
You must be signed in to change notification settings - Fork 196
/
Copy pathpyproject.toml
74 lines (64 loc) · 2.03 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tool.poetry]
name = "fern_python"
version = "0.0.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^3.9"
pydantic = "^2.8.2"
typer = { extras = ["all"], version = "^0.6.1" }
fern-fern-generator-exec-sdk = { version = "0.82.5", source = "fern-prod" }
ordered-set = "^4.1.0"
pydantic-core = "^2.18.2"
fern-fern-fdr-sdk = { version = "0.98.20", source = "fern-prod" }
fern-fern-generator-cli-sdk = { version = "0.0.18", source = "fern-prod" }
fern_fern_ir_v57 = "57.0.0"
[tool.poetry.group.dev.dependencies]
black = "^25.1.0"
isort = "^6.0.1"
mypy = "^1.13.0"
pre-commit = "^2.20.0"
pytest = "^7.4.2"
pytest-only = "^2.0.0"
ruff = "^0.5.7"
snapshottest = "^0.6.0"
[[tool.poetry.source]]
name = "fern-prod"
url = "https://pypi.buildwithfern.com/"
priority = "supplemental"
[tool.black]
line-length = 120
target-version = ['py38']
include = '\.pyi?$'
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--ignore-glob=tests/**/generated --ignore-glob=tests/**/snapshots"
[tool.ruff]
line-length = 120
target-version = "py38"
include = ["*.py", "*.pyi"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
# E501 (Line too long) is currently ignored because auto-fixing these errors is unsafe, as auto-fixing these errors
# potentially moves type-ignore comments to incorrectl ines.
ignore = [
"E402", # Module level import not at top of file
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
"E722", # Do not use bare `except`
"E731", # Do not assign a `lambda` expression, use a `def`
"E501", # Line too long
"E711", # Comparison to `None` should be `cond is not None`
"F841" # Local variable ... is assigned to but never used
]
[tool.ruff.isort]
section-order = ["future", "standard-library", "third-party", "first-party"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"