This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
101 lines (83 loc) · 2.18 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
94
95
96
97
98
99
100
101
##########################################
# Build system configs
##########################################
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rubric"
version = "1.1.0"
authors = [
{ name="rednafi", email="[email protected]" },
]
description = ">> Linter Config Initialization for Python <<"
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.8"
dependencies = [
"click"
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.optional-dependencies]
dev = [
"black",
"ruff",
"mypy",
"pre-commit",
"pip-tools",
"pytest",
"hatch",
"types-setuptools",
"types-pkg_resources",
]
[project.urls]
"Homepage" = "https://github.com/rednafi/rubric"
"Issue Tracker" = "https://github.com/pypa/rubric/issues"
[project.scripts]
rubric = "rubric:cli"
[tool.hatch.build]
include = [
"rubric/*",
"/rubric/*/*",
"/tests/*",
]
##########################################
# Dev configs
##########################################
[tool.mypy]
follow_imports = "skip"
ignore_missing_imports = true
warn_no_return = false
warn_unused_ignores = true
allow_untyped_globals = true
allow_redefinition = true
pretty = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.ruff]
line-length = 88
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F", "I001", "PT", "C4"]
ignore = ["E501"]
respect-gitignore = true
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11.
target-version = "py311"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10