-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (112 loc) · 2.74 KB
/
pyproject.toml
File metadata and controls
124 lines (112 loc) · 2.74 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
[project]
name = "fastapi-has-permissions"
version = "0.1.5"
description = "FastAPI permissions system"
readme = "README.md"
requires-python = ">=3.10"
uthors = [
{ name = "Yurii Karabas", email = "1998uriyyo@gmail.com" },
]
license = "MIT"
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"fastapi>=0.128.0",
"typing-extensions>=4.15.0",
]
[project.urls]
Repository = "https://github.com/uriyyo/fastapi-has-permissions"
[dependency-groups]
dev = [
"dirty-equals>=0.11",
"httpx>=0.28.1",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.15.0",
"ty>=0.0.15",
"uvicorn>=0.40.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.5.50",
"pymdown-extensions~=10.14",
"fontawesome-markdown>=0.2.6",
"mdx-include",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"ALL", # select all checks by default
]
ignore = [
# single rule exclude
"ANN401", # allow to use Any in *args and **kwargs
"TC001", # move to TYPE_CHECKING block
"TC003", # move standard imports to TYPE_CHECKING block
"TRY003", # allow msg in exception
"EM101", # no need to move error message to var
"COM812", # will be handled by ruff formatting
# full rule exclude
"D", # ignore docstrings
"FIX", # ignore FIXMEs
"TD", # ignore all TODOs
"FA", # ignore future annotations
# "ANN", # ignore annotations
# "ARG", # ignore unused arguments
# "FBT", # ignore flake8-boolean-trap
# "EM", # ignore error message formatting
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".venv",
]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "ANN"]
[tool.coverage.paths]
source = ["fastapi_has_permissions"]
[tool.coverage.run]
source = ["fastapi_has_permissions"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstractmethod",
"@overload",
"if TYPE_CHECKING:",
]