-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (77 loc) · 2.07 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (77 loc) · 2.07 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
[project]
name = "eof-fixer"
description = "CLI tool that ensures text files end with exactly one newline"
license = "MIT"
readme = "README.md"
requires-python = ">=3.10,<4"
dependencies = [
"pathspec",
]
version = "0"
authors = [{ name = "modern-python" }]
keywords = [
"cli",
"pre-commit",
"formatter",
"newline",
"eof",
"linter",
"python",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Typing :: Typed",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
[project.urls]
Homepage = "https://modern-python.org"
Repository = "https://github.com/modern-python/eof-fixer"
Issues = "https://github.com/modern-python/eof-fixer/issues"
Changelog = "https://github.com/modern-python/eof-fixer/releases"
[project.scripts]
eof-fixer = "eof_fixer.main:main"
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
]
lint = [
"ruff",
"ty",
]
[build-system]
requires = ["uv_build>=0.11,<1.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "eof_fixer"
module-root = ""
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D1", # allow missing docstrings
"S101", # allow asserts
"TCH", # ignore flake8-type-checking
"FBT", # allow boolean args
"D203", # "one-blank-line-before-class" conflicting with D211
"D213", # "multi-line-summary-second-line" conflicting with D212
"COM812", # flake8-commas "Trailing comma missing"
"ISC001", # flake8-implicit-str-concat
"CPY001", # no per-file copyright header
]
isort.lines-after-imports = 2
isort.no-lines-before = ["standard-library", "local-folder"]
[tool.pytest.ini_options]
addopts = "--cov=. --cov-report term-missing --cov-fail-under=100"
[tool.coverage]
run.concurrency = ["thread"]
report.exclude_also = ["if typing.TYPE_CHECKING:"]