-
Notifications
You must be signed in to change notification settings - Fork 65
/
pyproject.toml
134 lines (115 loc) · 2.83 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
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "fixit"
readme = "README.rst"
authors = [
{name="Meta Platforms, Inc"},
{name="Amethyst Reese"},
{name="Jimmy Lai"},
{name="Zsolt Dollenstein"},
]
license = {file="LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
requires-python = ">=3.8"
dependencies = [
"click >= 8.0",
"libcst >= 0.3.18",
"moreorless >= 0.4.0",
"packaging >= 21",
"tomli >= 2.0; python_version < '3.11'",
"trailrunner >= 1.2",
]
dynamic = ["version"]
description = "A lint framework that writes better Python code for you."
[project.optional-dependencies]
docs = [
"jinja2 == 3.1.4",
"sphinx == 8.0.2",
"sphinx-mdinclude == 0.6.2",
]
dev = [
"attribution == 1.8.0",
"black == 24.4.2",
"flake8 == 7.1.0",
"flake8-bugbear == 24.10.31",
"mypy == 1.13.0",
"ufmt == 2.8.0",
"usort == 1.0.8.post1",
]
lsp = [
"pygls[ws] ~= 1.3.1",
]
pretty = [
"rich >= 12.6.0",
]
[project.scripts]
fixit = "fixit.cli:main"
[project.urls]
Home = "https://fixit.rtfd.io"
Github = "https://github.com/Instagram/Fixit"
Changelog = "https://github.com/Instagram/Fixit/blob/main/CHANGELOG.md"
[tool.attribution]
name = "Fixit"
package = "fixit"
signed_tags = true
version_file = false
ignored_authors = ["dependabot"]
[tool.black]
target-version = ["py38"]
[tool.fixit]
enable = ["fixit.rules"]
python-version = "3.10"
formatter = "ufmt"
[[tool.fixit.overrides]]
path = "examples"
enable = [".examples.noop"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/fixit/__version__.py"
[tool.hatch.build]
exclude = [
"/.github",
"/examples",
"/legacy",
]
[tool.hatch.envs.all]
features = ["dev", "docs", "lsp", "pretty"]
[tool.hatch.envs.default]
features = ["dev", "lsp", "pretty"]
[tool.hatch.envs.default.scripts]
test = "python -m fixit.tests"
typecheck = "mypy --install-types --non-interactive src/fixit"
[tool.hatch.envs.lint.scripts]
check = [
"flake8 src/fixit scripts",
"fixit lint src/fixit scripts",
"ufmt check src/fixit scripts",
"python scripts/check_copyright.py",
]
fix = [
"fixit fix --automatic src/fixit scripts",
"ufmt format src/fixit scripts",
]
[tool.hatch.envs.docs]
features = ["docs"]
[tool.hatch.envs.docs.scripts]
build = [
"python scripts/document_rules.py",
"sphinx-build -a -b html docs html",
]
[tool.mypy]
strict = true
python_version = "3.8"
ignore_missing_imports = true