-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·144 lines (131 loc) · 2.83 KB
/
Copy pathpyproject.toml
File metadata and controls
executable file
·144 lines (131 loc) · 2.83 KB
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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.sdist]
include = []
exclude = [
".github",
".gitignore",
".gitmodules",
".pre-commit-config.yaml",
".pypirc",
"tox.ini",
"sigbovik-paper",
"test.sh",
"perf",
"makefile",
"cspell.json",
"Pyramid-Scheme"
#
]
[project]
name = "psll"
authors = [{ name = "Marcin Konowalczyk", email = "marcin.konow@lczyk.xyz" }]
dynamic = ["version", "description"]
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Other",
"Development Status :: 3 - Alpha",
"Environment :: Console",
]
keywords = [
"compiler",
"macros",
"code-golf",
"pyramid-scheme",
"programming-language",
]
dependencies = ["more-itertools>=8.5.0"]
[project.urls]
Homepage = "https://github.com/MarcinKonowalczyk/psll-lang"
[project.scripts]
psll = "psll.__main__:argparse_and_main"
# coverage setup
[tool.coverage.run]
omit = ["tests/*", "**/__init__.py"]
# coverage configuration
[tool.coverage.report]
skip_empty = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@abstractmethod",
"if TYPE_CHECKING:",
"except ImportError:",
]
[tool.mypy]
ignore_missing_imports = true
follow_imports = "normal"
namespace_packages = true
disallow_untyped_defs = true
# disallow_any_unimported = true
# disallow_any_generics = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
warn_unused_configs = true
explicit_package_bases = true
# enable_error_code = "explicit-override"
extra_checks = true
local_partial_types = true
files = [
"./psll/**/*.py",
"./tests/**/*.py",
"./perf/**/*.py",
#
]
[tool.ruff]
exclude = [
".git",
"__pycache__",
".venv",
".env",
".eggs",
"*.egg",
".tox",
".mypy_cache",
".pytest_cache",
".vscode",
"*-env",
]
line-length = 120
lint.ignore = [
"E731", # do not assign a lambda expression, use a def
"SIM108", # use ternary operator
#
]
lint.select = [
"E", # pycodestyle
"F", # Pyflakes
"B", # flake8-bugbear
"SIM", # flake8-simplify
"W", # warnings
"UP", # pyupgrade
"I", # isort
"Q", # flake8-quotes
# "RUF", # ruff
# "PL",
]
output-format = 'concise'
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-s", "--tb=short", "--color=yes"]
[dependency-groups]
dev = [
"coverage>=7.8.0",
"flit>=3.12.0",
"mypy>=1.15.0",
"pytest>=8.3.5",
"pytest-subtests>=0.14.1",
"ruff>=0.11.3",
]