forked from clear-code-projects/PyDew
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (83 loc) · 2.27 KB
/
pyproject.toml
File metadata and controls
96 lines (83 loc) · 2.27 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
# pyproject.toml boilerplate for a video game project
# https://github.com/pypa/sampleproject/blob/main/setup.cfg
[project]
name = "pydew-valley-uzh"
version = "0.1.0"
authors = [
{ name = "Sophie Kittelberger", email = "s.kittelberger@psychologie.uzh.ch" },
{ name = "larsbutler" },
{ name = "bromeon" },
{ name = "novial" },
{ name = "fortwoone" },
{ name = "richkdev" },
{ name = "pmp-p" },
{ name = "bydariogamer" },
{ name = "Brody Epstein" },
{ name = "Danilo Saiu" },
{ name = "TMN-SGR" },
{ name = "Adrienne Bradley" },
{ name = "farg-eh" },
{ name = "nteinert2005" },
{ name = "Evelin Toth" },
{ name = "Leon" },
{ name = "MortalCoder" },
{ name = "asterli6" },
{ name = "dee-a-go" },
]
description = "A game based on Pydeew Valley by ClearCode, used by the University of Zurich in an experimental study in psychology."
dependencies = [
"requests>=2.32.3",
]
# Use Ruff to replace Black, isort, and Flake8
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by ruff format
"B008", # do not perform function calls in argument defaults
"B028", # No explicit `stacklevel` keyword argument found (?)
"C901", # too complex
]
unfixable = ["B"] # Don't bother trying to fix flake8-bugbear
# Ignore `E402` (import violations) in all `__init__.py` files, and in select subdirectories.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.tox]
legacy_tox_ini = """
[tox]
minversion = 4.16.0
envlist = py312,format,lint,tests
[testenv]
skip_install = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
-r{toxinidir}/requirements-dev.txt
[testenv:tests]
deps =
{[testenv]deps}
pytest
commands = pytest src --doctest-modules --cov=src
[testenv:format]
deps = ruff
commands = ruff format --check .
[testenv:lint]
deps = ruff
commands = ruff check .
[testenv:ruff]
description = Run Ruff for linting and formatting
deps = ruff
commands =
ruff format --check .
ruff check .
"""