-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (100 loc) · 3.03 KB
/
pyproject.toml
File metadata and controls
110 lines (100 loc) · 3.03 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "tcod-ec"
authors = [{ name = "Kyle Benesch", email = "4b796c65+github@gmail.com" }]
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dynamic = ["version", "description"]
requires-python = ">=3.8"
dependencies = ["typing-extensions >=4.4.0"]
[project.optional-dependencies]
test = ["attrs >=22.2.0", "pytest>=7.2.0", "pytest-cov", "mypy >=1.1.1"]
[tool.flit.module]
name = "tcod.ec"
[project.urls]
Home = "https://github.com/HexDecimal/python-tcod-ec"
Changelog = "https://github.com/HexDecimal/python-tcod-ec/blob/main/CHANGELOG.md"
Documentation = "https://python-tcod-ec.readthedocs.io"
Source = "https://github.com/HexDecimal/python-tcod-ec"
[tool.black] # https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
target-version = ["py38"]
line-length = 120
[tool.isort] # https://pycqa.github.io/isort/docs/configuration/options.html
py_version = "38"
line_length = 120
profile = "black"
skip_gitignore = true
[tool.mypy] # https://mypy.readthedocs.io/en/stable/config_file.html
files = "**/*.py"
explicit_package_bases = true
python_version = "3.8"
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
[tool.pytest.ini_options]
minversion = "6.0"
required_plugins = "pytest-cov>=4.0.0"
addopts = "--doctest-modules --cov=tcod --doctest-glob=*.md"
testpaths = ["."]
[tool.ruff]
# https://beta.ruff.rs/docs/rules/
select = [
"C90", # mccabe
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"EXE", # flake8-executable
"RET", # flake8-return
"SLF", # flake8-self
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"PL", # Pylint
"TRY", # tryceratops
"RUF", # NumPy-specific rules
"G", # flake8-logging-format
"D", # pydocstyle
]
ignore = [
"E501", # line-too-long
"S101", # assert
"ANN101", # missing-type-self
]
line-length = 120
target-version = "py38"
[tool.ruff.pydocstyle]
# Use Google-style docstrings.
convention = "google"