File: pyproject.toml

package info (click to toggle)
python-oslo.policy 5.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,032 kB
  • sloc: python: 6,880; makefile: 23; sh: 20
file content (84 lines) | stat: -rw-r--r-- 2,519 bytes parent folder | download
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
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"

[project]
name = "oslo.policy"
description = "Oslo Policy library"
readme = "README.rst"
authors = [
    {name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
requires-python = ">=3.10"
classifiers = [
    "Environment :: OpenStack",
    "Intended Audience :: Information Technology",
    "Intended Audience :: System Administrators",
    "License :: OSI Approved :: Apache Software License",
    "Operating System :: POSIX :: Linux",
    "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 :: Only",
    "Programming Language :: Python :: Implementation :: CPython",
    "Typing :: Typed",
]
dynamic = ["version", "dependencies"]

[project.urls]
Homepage = "https://docs.openstack.org/oslo.policy"
Repository = "https://opendev.org/openstack/oslo.policy"

[project.scripts]
oslopolicy-checker = "oslo_policy.shell:main"
oslopolicy-sample-generator = "oslo_policy.generator:generate_sample"
oslopolicy-policy-generator = "oslo_policy.generator:generate_policy"
oslopolicy-list-redundant = "oslo_policy.generator:list_redundant"
oslopolicy-policy-upgrade = "oslo_policy.generator:upgrade_policy"
oslopolicy-validator = "oslo_policy.generator:validate_policy"
oslopolicy-convert-json-to-yaml = "oslo_policy.generator:convert_policy_json_to_yaml"

[project.entry-points."oslo.config.opts"]
"oslo.policy" = "oslo_policy.opts:list_opts"

[project.entry-points."oslo.policy.rule_checks"]
http = "oslo_policy._external:HttpCheck"
https = "oslo_policy._external:HttpsCheck"

[tool.setuptools]
packages = ["oslo_policy"]

[tool.mypy]
python_version = "3.10"
show_column_numbers = true
show_error_context = true
strict = true
disable_error_code = ["import-untyped"]
exclude = '(?x)(doc | releasenotes)'

[[tool.mypy.overrides]]
module = ["oslo_policy.tests.*"]
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_subclassing_any = false
disallow_any_generics = false

[tool.ruff]
line-length = 79

[tool.ruff.format]
quote-style = "single"
docstring-code-format = true

[tool.ruff.lint]
select = ["E4", "E5", "E7", "E9", "F", "S", "UP"]
ignore = [
    # we only use asserts for type narrowing
    "S101",
]

[tool.ruff.lint.per-file-ignores]
"oslo_policy/tests/*" = ["S"]