-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (121 loc) · 3.81 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (121 loc) · 3.81 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[project]
name = "fastapi-jinja2-postgres-webapp"
version = "1.1.8"
description = "A template webapp with a pure-Python FastAPI backend, frontend templating with Jinja2, and a Postgres database to power user auth"
readme = "README.md"
package-mode = false
authors = [
{name = "Christopher Carroll Smith", email = "chriscarrollsmith@gmail.com"},
]
requires-python = "<4.0,>=3.13"
dependencies = [
"sqlmodel<1.0.0,>=0.0.22",
"pyjwt<3.0.0,>=2.10.1",
"jinja2<4.0.0,>=3.1.4",
"uvicorn<1.0.0,>=0.32.0",
"pydantic[email]<3.0.0,>=2.9.2",
"python-multipart<1.0.0,>=0.0.17",
"python-dotenv<2.0.0,>=1.0.1",
"resend<3.0.0,>=2.4.0",
"bcrypt<5.0.0,>=4.2.0",
"fastapi<1.0.0,>=0.115.5",
"pillow>=11.0.0",
"psycopg2-binary>=2.9.10",
"stripe>=15.3.0",
]
[dependency-groups]
dev = [
"graphviz<1.0.0,>=0.20.3",
"jupyter<2.0.0,>=1.1.1",
"notebook<8.0.0,>=7.2.2",
"pytest>=8.3.3",
"sqlalchemy-schemadisplay<3.0,>=2.0",
"ty>=0.0.21",
"ruff>=0.15.5",
"pytest-jinja-check[fastapi]>=1.0.3",
"pytest-playwright>=0.7.2",
"pre-commit>=4.6.0",
"python-semantic-release>=10.5.3",
"great-docs>=0.14.1",
]
[tool.ruff.lint.per-file-ignores]
# pytest_plugins must be declared before plugin imports in conftest.
"tests/conftest.py" = ["E402"]
[tool.ty.rules]
# SQLModel/SQLAlchemy metaclass attributes (__table__) and constructor
# patterns are not understood by ty, nor is pytest's @_with_exception
# decorator on pytest.fail, nor resend library type stubs.
invalid-argument-type = "warn"
unresolved-attribute = "warn"
missing-argument = "warn"
[[tool.ty.overrides]]
include = ["tests/**"]
[tool.ty.overrides.rules]
# pytest.fail uses @_with_exception decorator that ty doesn't understand,
# SQLModel constructors have metaclass-generated parameters, and
# Response.body type is overly broad in stubs.
invalid-argument-type = "ignore"
unresolved-attribute = "ignore"
missing-argument = "ignore"
[tool.semantic_release]
assets = []
build_command_env = []
build_command = ""
commit_message = "chore: release {version} [skip ci]\n\nAutomatically generated by python-semantic-release"
commit_parser = "conventional"
logging_use_named_masks = false
major_on_zero = true
allow_zero_version = false
no_git_verify = false
tag_format = "v{version}"
version_toml = ["pyproject.toml:project.version:nf"]
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.changelog]
exclude_commit_patterns = []
mode = "update"
insertion_flag = "<!-- version list -->"
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"
mask_initial_release = true
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = false
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
other_allowed_tags = ["build", "chore", "ci", "docs", "style", "refactor", "test"]
allowed_tags = ["feat", "fix", "perf", "build", "chore", "ci", "docs", "style", "refactor", "test"]
default_bump_level = 0
parse_squash_commits = true
ignore_merge_commits = true
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
insecure = false
[tool.semantic_release.publish]
dist_glob_patterns = []
upload_to_vcs_release = false
[tool.pytest-jinja-check]
app = "main:app"
python_dir = "."
template_dir = "templates"
route_file_patterns = ["main.py", "routers/**/*.py"]
auto_check = false