-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
107 lines (93 loc) · 2.42 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
[build-system]
requires = [
"hatchling>=1.18",
"hatch-kicad",
"hatch-vcs",
]
build-backend = "hatchling.build"
[project]
name = "kicad-git"
authors = [
{ name = "adamws", email = "[email protected]" },
]
description = "KiCad plugin for git"
keywords = ["kicad"]
requires-python = ">=3.8"
license = {text = "GPL-3.0"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Manufacturing",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)"
]
dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/adamws/kicad-git"
"Bug Tracker" = "https://github.com/adamws/kicad-git/issues"
"Sponsor" = "https://ko-fi.com/adamws"
[tool.hatch]
build.targets.sdist.include = [
"source/*.py"
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "source/version.txt"
[tool.hatch.build.targets.kicad-package]
name = "Git plugin"
description = "KiCad plugin for git"
description_full = [
"Git actions directly from KiCad's PCB editor window",
]
identifier = "com.github.adamws.kicad-git"
author = { name = "adamws", web="https://adamws.github.io" }
status = "{env:PLUGIN_KICAD_STATUS:development}"
kicad_version = "7.0"
sources = ["source"] # rewrite paths
include = [
"source/*.py",
"source/version.txt",
"source/icon.png",
]
icon = "resources/icon.png"
download_url = "{env:PLUGIN_KICAD_RELEASE_URL:https://adamws.github.io/kicad-git/{zip_name}}"
[tool.hatch.build.targets.kicad-package.hooks.kicad-repository]
enable-by-default = false
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black>=23.1.0",
"mypy>=1.0.0",
"ruff>=0.0.243",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --cache-dir=.mypy_cache {args:source tests}"
style = [
"ruff {args:.}",
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
"ruff --fix {args:.}",
"style",
]
all = [
"style",
"typing",
]
[tool.black]
target-version = ["py37"]
line-length = 88
[tool.ruff]
select = ["ANN", "E", "F", "I", "N", "PL", "W"]
ignore = ["ANN101"]
[tool.ruff.per-file-ignores]
"source/git_plugin_action.py" = ["N802"]
[tool.ruff.isort]
known-first-party = ["hatch_kicad"]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.coverage.run]
relative_files = true