-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (86 loc) · 2.81 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (86 loc) · 2.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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "ftrio"
version = "1.0.0"
description = "Feature toggles for Python, decorate a function with @toggle and it becomes gated by its own name"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "FtrIO contributors" }]
# Kept in sync with the GitHub repository topics.
keywords = [
"python",
"decorators",
"python-library",
"feature-flags",
"feature-toggles",
"experimentation",
"ab-testing",
"rollout",
"feature-toggle",
"blue-green-deployment",
"feature-flag",
"progressive-delivery",
"feature-management",
"ftrio",
"dotnet-port",
]
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
]
# The core package depends on the standard library only.
dependencies = []
# Links rendered in the sidebar of the PyPI project page.
[project.urls]
Homepage = "https://github.com/FtrOnOff/ftrio-python"
Repository = "https://github.com/FtrOnOff/ftrio-python"
Changelog = "https://github.com/FtrOnOff/ftrio-python/blob/main/CHANGELOG.md"
Issues = "https://github.com/FtrOnOff/ftrio-python/issues"
[project.optional-dependencies]
azure = ["azure-appconfiguration>=1.1"]
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-asyncio>=0.23",
"ruff>=0.4",
"mypy>=1.8",
]
[project.scripts]
ftrio = "ftrio.cli:main"
[tool.setuptools.packages.find]
# Only the importable library ships. The playground demo and the test suite are
# development-only and are explicitly excluded from the built distribution, so
# `import playground` is never possible from an installed package.
include = ["ftrio*"]
exclude = ["playground*", "tests*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# Verbose, descriptive names are a project requirement; do not let the linter
# push toward terse identifiers. "N" (pep8-naming) is enabled so snake_case for
# functions/methods is enforced across the codebase, including the playground and
# the @toggle-decorated test fixtures (whose names are the toggle keys).
select = ["E", "F", "W", "I", "UP", "B", "N"]
ignore = [
"E501", # line length is handled by formatter; long descriptive names are intentional
]
[tool.ruff.lint.per-file-ignores]
# The fake HTTP test server overrides http.server's do_GET, whose name is fixed
# by the standard library API and cannot be snake_case.
"tests/unit/test_providers.py" = ["N802"]
[tool.mypy]
python_version = "3.11"
warn_unused_ignores = false
ignore_missing_imports = true
disallow_untyped_defs = false
files = ["ftrio"]