-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
142 lines (125 loc) · 2.84 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
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 99
target-version = ["py310"]
include = '\.pyi?$'
skip-string-normalization = true
exclude = '''
(
/(
| \.git
| \.mypy_cache
)/
)
'''
[tool.isort]
line_length = 99
sections = ['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER']
no_lines_before = ['STDLIB', 'LOCALFOLDER']
known_third_party = [
'pytest',
]
known_local_folder = []
multi_line_output = 3
lines_after_imports = 2
include_trailing_comma = true
use_parentheses= true
[tool.poetry]
name = "sugaru"
version = "0.3.1"
description = "Create your own syntax stupidly simple!"
readme = "README.md"
license = "MIT"
authors = ["Dmitry Makarov <[email protected]>"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "sugaru" },
{ include = "sugaru/py.typed" }
]
[tool.poetry.dependencies]
python = ">=3.7"
typer = {extras = ["all"], version = "^0.9.0"}
PyYAML = "^6.0"
[tool.poetry.dev-dependencies]
black = "*"
mypy = ">1.0.0"
isort = "*"
pre-commit = "*"
ruff = "*"
pytest = "*"
pytest-cov = "*"
autoflake = "*"
pytest-mock = "*"
sort-all = "*"
Faker = "*"
docformatter = "*"
PyYAML = "*"
loguru = "*"
tox = "^4.5.2"
typing-extensions = "^4.6.2"
importlib-metadata = "^6.6.0"
[tool.mypy]
# https://mypy.readthedocs.io/en/stable/config_file.html
python_version = "3.10"
exclude = ["examples", "sugaru/__init__.py", "sugaru/mypy.py"]
warn_unused_configs = true
ignore_missing_imports = true
disallow_incomplete_defs = true
[tool.ruff]
ignore = ["E501"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F403", "F401"]
[tool.coverage]
[tool.coverage.run]
omit = [
'__init__.py',
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py37,py38,py39,py310,py311
[testenv]
deps =
black==23.3.0
isort==5.11.5
ruff==0.0.263
typer==0.9.0
pyyaml==6.0
pytest==7.3.1
pytest-mock==3.7.0
mypy > 1.0.0
faker==18.6.0
typing-extensions==4.6.2
importlib-metadata==6.6.0
commands =
black --check sugaru/ tests/
isort --check sugaru tests/
ruff sugaru/ tests/
mypy sugaru/ tests/
pytest tests/ -x
setenv =
PIP_INDEX_URL = {env:PIP_INDEX_URL:https://pypi.org/simple/}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
"""