-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
64 lines (57 loc) · 1.94 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "flake8-kotoha"
description = "flake8 plugin to improve your type hints"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT License" }
authors = [{ name = "nikkie", email = "[email protected]" }]
keywords = ["flake8", "type hints"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Flake8",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = ["flake8"]
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/ftnext/kotoha-python-linter"
[tool.setuptools.dynamic]
version = { attr = "kotoha.__version__" }
[project.entry-points."flake8.extension"]
KTH = "kotoha.plugins:Flake8KotohaPlugin"
[project.optional-dependencies]
dev = [
"taskipy",
"autoflake",
"pyupgrade",
"black",
"isort",
"pytest",
"pytest-randomly",
"mypy",
]
[project.scripts]
kotoha = "kotoha.__main__:main"
[tool.taskipy.tasks]
pre_test = "task format"
test = "pytest -v"
post_test = "task check"
format = "task format_autoflake && task format_pyupgrade && task format_black && task format_isort"
format_autoflake = "autoflake --in-place --remove-all-unused-imports $(find src tests -name '*.py') setup.py"
format_pyupgrade = "pyupgrade $(find src tests -name '*.py') setup.py"
format_black = "black -l 79 src tests setup.py"
format_isort = "isort --profile black -l 79 src tests setup.py"
check = "task check_flake8 && task check_mypy"
check_flake8 = "flake8 src tests"
check_mypy = "mypy src tests"