generated from iame-uni-bonn/course_jb_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (102 loc) · 3.2 KB
/
pyproject.toml
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
[project]
name = "epp_topics"
description = "Effective Programming Practices for Economists: Topics"
requires-python = ">=3.11"
dependencies = [
"pytask"
]
dynamic = ["version"]
classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
authors = [
{ name = "Hans-Martin von Gaudecker", email = "[email protected]" },
{ name = "Janoś Gabler", email = "[email protected]" },
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "CC-BY-NC-SA-4.0"
[project.urls]
Documentation = "https://github.com/OpenSourceEconomics/epp_topics"
Github = "https://github.com/OpenSourceEconomics/epp_topics"
Tracker = "https://github.com/OpenSourceEconomics/epp_topics/issues"
[build-system]
requires = ["hatchling", "hatch_vcs"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.vcs]
version-file = "src/epp_topics/_version.py"
[tool.hatch.build.targets.sdist]
exclude = ["tests"]
only-packages = true
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytask.ini_options]
paths = ["./src/epp_topics"]
ignore = [
"src/epp_topics/python_basics/executing_pytask/screencast/example/",
"src/epp_topics/projects/what_does_pytask_do/screencast/example/",
]
[tool.ruff]
target-version = "py311"
fix = true
line-length = 88
[tool.ruff.lint]
select = ["ALL"]
extend-ignore = [
"ANN", # Missing type annotations.
"B008", # Do not perform function calls in argument defaults.
"B018",
"BLE001",
"COM812", # May cause conflict with ruff's formatter.
"D100",
"D103", # lots of small functions missing docstrings.
"EM101",
"FBT001",
"FIX002", # allow TODOs in the code.
"INP001", # implicit namespace packages; clashes with our pytask examples.
"ISC001", # May cause conflict with ruff's formatter.
"N999", # Capitalized module name.
"PD010",
"PD015",
"PD901", # `df` used a lot as example variable name.
"PERF401", # use a list comprehension.
"PLR0913",
"PLR2004", # Magic value used in comparison.
"PT011", # catching broad exceptions in tests is just fine.
"S101", # Use of `assert` detected.
"S110",
"S301",
"S602", # `subprocess` call with `shell=True`.
"T201",
"TRY003",
]
[tool.ruff.lint.per-file-ignores]
"src/epp_topics/python_basics/executing_pytest/screencast/example/test_cobb_douglas.py" = ["PLR2004"]
"**/*.ipynb" = ["B018", "T201", "E402", "PLR2004"]
"**/config.py" = ["N811"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
filterwarnings = []
markers = [
"wip: Tests that are work-in-progress.",
"unit: Flag for unit tests which target mainly a single function.",
"integration: Flag for integration tests which may comprise of multiple unit tests.",
"end_to_end: Flag for tests that cover the whole program.",
]
norecursedirs = ["docs"]
[tool.yamlfix]
line_length = 88
none_representation = "null"