-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (124 loc) · 3.54 KB
/
pyproject.toml
File metadata and controls
138 lines (124 loc) · 3.54 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
136
137
138
[project]
name = "project-name"
version = "0.1.0"
description = "description of this project"
authors = [
{ name = "Yuwei Huang", email = "huang.yuwei@plus-zero.co.jp" }
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.13,<3.14"
dependencies = [
"nox==2025.2.9",
"pip-licenses>=5.0.0",
"pre-commit==3.7.0",
"pyright>=1.1.400",
"ruff==0.11.7",
]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
# Include this classifier to prevent accidentally publishing private code to PyPI.
# https://pypi.org/classifiers/
"Private :: Do Not Upload",
]
[project.urls]
Repository = ""
[project.scripts]
[dependency-groups]
nox = [
"nox",
]
# test = [
# "pytest",
# "pytest-cov",
# "pytest-randomly",
# ]
type_check = [
"mypy",
# Add "types-" stub packages as needed: https://github.com/python/typeshed/tree/main/stubs
]
lint = [
"ruff",
]
# docs = [
# "mkdocs-material",
# "mkdocs-htmlproofer-plugin",
# # Python API documentation (not neccessary for applications).
# "mkdocstrings[python]",
# # Autodoc.
# "mkdocs-gen-files",
# "mkdocs-literate-nav",
# ]
[build-system]
# TODO: Replace this with uv_build when it is it released for GA.
# https://github.com/astral-sh/uv/issues/3957
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/risk_based_auth"]
[tool.uv]
# default-groups = "all"
# Non-package applications can uncomment the following line and delete [build-system] section to
# avoid being built or installed: https://docs.astral.sh/uv/reference/settings/#package
# package = true
# [tool.mypy]
# ignore_missing_imports = true
# strict = true
# check_untyped_defs = true
# local_partial_types = true
# # TODO: Remove this when explicit-override is enabled by default in strict mode
# # https://github.com/python/mypy/issues/17511
# enable_error_code = ["explicit-override"]
# # If certain strict config options are too pedantic for a project,
# # disable them selectively here by setting to false.
[tool.pyright]
include = ["src"]
typeCheckingMode = "basic"
useLibraryCodeForTypes = false
exclude = []
[tool.ruff]
line-length = 120
src = ["src"]
# Ruff will automatically exclude all files listed in .gitignore as well as common temporary Python
# tool directories.
# To exclude additional folders, use extend-exclude.
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"RUF", # ruff
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"PT", # flake-pytest-style
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
]
extend-ignore = [
"RUF005",
"RUF012",
"N813", # Camelcase ... imported as lowercase ...
"TID252", # Prefer absolute imports over relative imports
]
unfixable = [
# Disable removing unused imports by default and only enable within nox so editors don't delete
# unused imports while the user is in the middle of editing a file on save.
"F401",
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
split-on-trailing-comma = false
# For non-src directory projects, explicitly set top level package names:
# known-first-party = ["my-app"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["typer.Argument"]