forked from HexDecimal/python-tcod-tutorial-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (60 loc) · 1.74 KB
/
pyproject.toml
File metadata and controls
63 lines (60 loc) · 1.74 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
# Project configuiration options for Python tools.
[tool.mypy] # https://mypy.readthedocs.io/en/stable/config_file.html
python_version = "3.11"
files = ["."]
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = false # Some calls from NumPy are untyped.
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.ruff] # https://docs.astral.sh/ruff/rules/
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = [
"C90", # mccabe
"D", # pydocstyle
"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
"FA", # flake8-future-annotations
"RET", # flake8-return
"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
]
ignore = [
"E501", # line-too-long
"S101", # assert
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"S311", # suspicious-non-cryptographic-random-usage
"PLR0913", # too-many-arguments
]
[tool.ruff.pydocstyle] # https://docs.astral.sh/ruff/settings/#lintpydocstyle
convention = "google"