-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
58 lines (49 loc) · 1.46 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
[project]
name = "c2a_generator"
version = "0.1.7"
description = "Add your description here"
authors = [
{ name = "flap1", email = "sho1seto@gmail.com" }
]
dependencies = [
"toml>=0.10.2",
"types-toml>=0.10.8.7",
]
readme = "README.md"
requires-python = ">= 3.8"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"black>=24.1.1",
"isort>=5.13.2",
"pyproject-flake8>=5.0.4.post1",
"flake8-annotations>=2.9.1",
"pep8-naming>=0.13.3",
"mypy>=1.8.0",
"pytest>=8.0.0",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["c2a_generator", "csv_converter"]
[tool.black]
line-length = 150
[tool.isort]
line_length = 150
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true
[tool.mypy-generator]
ignore_missing_imports = true
[tool.flake8]
max-line-length = 150
ignore = ["E203", "E501", "W503", "W504"] # blackとconflictする設定
[tool.rye.scripts]
format = { chain = ["black c2a_generator", "isort c2a_generator"] }
format-csv = { chain = ["black legacy_csv_converter", "isort legacy_csv_converter"] }
lint = { chain = ["black --check c2a_generator", "isort -c -v c2a_generator", "pflake8 c2a_generator", "mypy c2a_generator"] }
lint-csv = { chain = ["black --check csv_converter", "isort -c -v csv_converter", "pflake8 csv_converter", "mypy csv_converter"] }
# test = { chain = ["python -m pytest tests"] }