-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (130 loc) · 3.52 KB
/
pyproject.toml
File metadata and controls
137 lines (130 loc) · 3.52 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "spring-cloud-config-client"
version = "0.4.0"
description = "A Python library to fetch configuration properties from the Spring Cloud Config Server"
readme = "README.md"
requires-python = ">=3.12"
authors = [
{ name = "Emre Akkaya", email = "emrekaganakkaya@gmail.com" },
]
keywords = [
"spring",
"configuration-management",
]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Flask",
"Framework :: Django",
"Operating System :: OS Independent",
]
dependencies = [
"requests>=2.31.0,<3",
"pyyaml>=6.0.1,<7",
]
[project.optional-dependencies]
dev = [
"pre-commit>=4.0.0",
"ruff>=0.6.0",
"mypy>=1.11.0",
"pytest>=8.3.0",
]
[project.urls]
Homepage = "https://github.com:emrekgn/spring-cloud-config-python-client"
Repository = "https://github.com:emrekgn/spring-cloud-config-python-client"
[tool.pytest.ini_options]
testpaths = [
"tests/unit",
]
# Ruff configuration
[tool.ruff]
target-version = "py312"
line-length = 100
unsafe-fixes = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"N", # pep8-naming
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SLOT", # flake8-slots
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"PGH", # pygrep-hooks
"PL", # Pylint
"TRY", # tryceratops
"FLY", # flynt
"NPY", # NumPy-specific rules
"PERF", # Perflint
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
"B008", # Do not perform function calls in argument defaults
"B905", # zip() without an explicit strict= parameter
"C901", # Too complex (let's be more lenient)
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison
"TRY003", # Avoid specifying long messages outside the exception class
"PT011", # pytest.raises() is too broad
"PT012", # pytest.raises() block should contain a single simple statement
"N803", # Argument names should be all lowercase
"PGH004", # Use specific rule codes when using `noqa`
"I001", # Import block is un-sorted or un-formatted
"T201", # print statement
"RUF010", # Use explicit conversion flag in formatted string
"RUF022", # __all__ is not sorted
"PT019", # Fixture without a value is injected as parameter
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"*.pyi",
]
per-file-ignores = {}
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = 80