File: pyproject.toml

package info (click to toggle)
python-pegen 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,980 kB
  • sloc: python: 15,064; makefile: 89
file content (103 lines) | stat: -rw-r--r-- 2,502 bytes parent folder | download
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

[project]
name = "pegen"
description = "CPython's PEG parser generator"
readme = "README.md"
requires-python = ">=3.8, <4"
license = {file = "LICENSE"}
authors = [
  {name = "Guido van Rossum"},
  {name = "Pablo Galindo", email = "pablogsal@gmail.com"},
  {name = "Lysandros Nikolaou", email = "lisandrosnik@gmail.com"}
]
maintainers = [
  {name = "Matthieu C. Dartiailh", email = "m.dartiailh@gmail.com"}
]
classifiers = [
    "Development Status :: 3 - Alpha",
    "Intended Audience :: Developers",
    "Topic :: Software Development :: Compilers",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3 :: Only",
]
keywords = ["parser", "CPython", "PEG", "pegen"]
dynamic=["version"]


[project.optional-dependencies]
docs = ["sphinx", "sphinx-copybutton", "furo"]
lint = ["black", "flake8", "mypy"]
test = ["pytest", "pytest-cov"]
memory = ["psutil"]
web = ["flask", "flask-wtf"]


[project.urls]
homepage = "https://github.com/we-like-parsers/pegen"
documentation = "https://we-like-parsers.github.io/pegen/"
source = "https://github.com/we-like-parsers/pegen"
changelog = "https://github.com/we-like-parsers/pegen/releasenotes.rst"
bug_reports = "https://github.com/we-like-parsers/pegen/issues"


[build-system]
requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[tool.black]
line-length = 99
target_version = ['py38']
exclude = '''
(
          /pegen/grammar_parser.py            # generated file
        | /tests/python_parser/data/          # test files
        | /tests/python_parser/parser_cache/  # generated parser
)
'''


[tool.pytest.ini_options]
norecursedirs = [
  "data/failset",
  "cpython"
]

[tool.mypy]
files = ["pegen", "scripts", "tests"]

follow_imports = "error"
no_implicit_optional = true
strict_optional = true

disallow_untyped_calls = true
disallow_untyped_defs = true

disallow_any_generics = true
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_subclassing_any = true

warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_no_return = true

show_traceback = true
show_error_codes = true

[[tool.mypy.overrides]]
module = [
    "pegen.grammar_parser"
]
strict_optional = false

[[tool.mypy.overrides]]
module = [
    "psutil"
]
ignore_missing_imports = true