-
Notifications
You must be signed in to change notification settings - Fork 55
/
pyproject.toml
93 lines (86 loc) · 2.19 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "ogr"
authors = [
{ name = "Red Hat", email = "user-cont-team@redhat.com" },
]
description = "One API for multiple git forges."
readme = "README.md"
license = "MIT"
license-files = { paths = ["LICENSE"] }
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Utilities",
]
dynamic = ["version"]
keywords = [
"git",
"api",
"github",
"gitlab",
"pagure",
]
dependencies = [
"cryptography",
"Deprecated",
"GitPython",
"PyGithub",
"python-gitlab",
"PyYAML",
"requests",
"urllib3",
]
[project.urls]
Homepage = "https://github.com/packit/ogr"
[project.optional-dependencies]
testing = [
"pytest",
"pytest-cov",
"flexmock",
]
[tool.hatch.version]
source = "vcs"
# we can't use pre-release-based version scheme because it generates versions
# that are sorted higher than the last stable release by RPM
# for example:
# - pre-release (guess-next-dev):
# 0.20.1.dev1+g0abcdef.d20230921 > 0.20.1
# - post-release (no-guess-dev):
# 0.20.0.post1.dev1+g0abcdef < 0.20.1
raw-options.version_scheme = "no-guess-dev"
[tool.ruff]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM", # flake8-commas
"E", # pycodestyle Error
"F", # Pyflakes
"I", # isort
"PERF",# Perflint
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle Warning
]
ignore = [
"RUF002", # you shall not touch my guillemets
"RUF003" # Comment contains ambiguous character
]
line-length = 100
target-version = "py39"