-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
executable file
·159 lines (132 loc) · 3.16 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[tool.poetry]
version = "0.3.13"
name = "p2g"
description = "Transpile python into cnc gcode."
authors = ["sac <[email protected]>"]
readme = "readme.md"
license = "MIT"
keywords = ["cnc", "gcode", "mill", "haas", "g-code", "probe", "vf"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Manufacturing",
"Intended Audience :: Other Audience",
"Topic :: Software Development :: Compilers",
"Programming Language :: Python",
]
repository = 'https://github.com/0x5ac/p2g'
homepage = 'https://github.com/0x5ac/p2g'
packages = [
{ include = "p2g", format = "sdist"},
]
include = [ "p2g/docs/*.org","*","p2g","p2g/*","p2g/docs/*", "p2g/examples/*"]
[tool.poetry.scripts]
p2g = "p2g.main:main"
[tool.poetry.dependencies]
python = ">= 3.10, < 4.0"
typeguard = "^3.0.2"
docopt = "^0.6.2"
[tool.poetry.group.dev.dependencies]
typeguard = "^3.0.2"
docopt = "^0.6.2"
rich = "^13.3.4"
pylint = "^2.17.4"
pytest= {version = "^7.3.1"}
mypy = "^1.4.1"
deptry = "^0.12.0"
ssort = "^0.11.6"
pyright = "^1.1.316"
flake8-pyproject = "^1.2.3"
ruff = "^0.0.275"
update = "^0.0.1"
autopep8 = "^2.0.2"
tox = "^4.6.4"
pytest-cov = "^4.1.0"
wrapt = "^1.15.0"
dill = "^0.3.6"
semver = "^3.0.1"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.pyright]
[tool.isort]
force_alphabetical_sort_within_sections = true
combine_as_imports = true
lines_between_types = 1
lines_after_imports = 2
float_to_top = true
force_single_line = true
src_paths = ["p2g","tests","examples","tools"]
[tool.black]
line-length=90
[tool.autopep8]
max_line_length= 90
aggresive=10
in-place=true
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
explicit_package_bases = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pylint]
init-import = false
disable = [
"too-few-public-methods",
"unnecessary-dunder-call",
"import-outside-toplevel",
"abstract-method",
"forgotten-debug-statement",
"missing-module-docstring",
"missing-function-docstring",
"missing-class-docstring"]
good-names = "_,fn,el,ns,on"
[tool.pytest.ini_options]
#python_files = [ 'tests/*.py' , 'tools/*.py']
python_files = [ 'tests/*.py']
console_output_style="classic"
addopts=["--cov" , "--no-header", '--cov-report=', '--tb=short']
#assert="plain"
[tool.coverage.report]
exclude_lines = [ "NotImplemented",
"AssertionError",
"no cover",
"@(abc\\.)?abstractmethod" ]
omit = ["tests/*.py",
"examples/*.py"]
[tool.flake8]
ignore="E203,W503"
color="no"
max-line-length = 90
[tool.ruff]
exclude=['tests']
line-length = 90
[tool.pytype]
inputs = ['p2g']
jobs = 3
################################################################################
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
skip_missing_interpreters = true
env_list =
py310
py311
py312
[testenv]
allowlist_externals = make
deps = pytest
pytest-cov
rich
commands = make test
[testenv:lint]
deps = pyright
mypy
pytype
pylint
ruff
flake8
rich
commands = make lint
"""