File size: 2,011 Bytes
4b714e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools", "setuptools_scm", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "apple"
description = "Simplest experiment for showing forgetting"
license = { text = "Proprietary" }
authors = [{name = "BartekCupial", email = "bartlomiej.cupial@student.uj.edu.pl" }]

dynamic = ["version"]

requires-python = ">= 3.8, < 3.11"

dependencies = [
    "numpy ~= 1.23",
    "typing-extensions ~= 4.3",
    "gym == 0.23",
    "torch ~= 1.12",
    "wandb ~= 0.13",
    "pandas ~= 1.5",
    "matplotlib ~= 3.6",
    "seaborn ~= 0.12",
    "scipy ~= 1.9",
    "joblib ~= 1.2",
    "pygame ~= 2.1",
]

[project.optional-dependencies]
build = ["build ~= 0.8"]
mrunner = ["mrunner @ git+https://gitlab.com/awarelab/mrunner.git"]
lint = [
    "black ~= 22.6",
    "autoflake ~= 1.4",
    "flake8 ~= 4.0",
    "flake8-pyi ~= 22.5",
    "flake8-docstrings ~= 1.6",
    "pyproject-flake8 ~= 0.0.1a4",
    "isort ~= 5.10",
    "pre-commit ~= 2.20",
]
test = [
    "pytest ~= 7.1",
    "pytest-cases ~= 3.6",
    "pytest-cov ~= 3.0",
    "pytest-xdist ~= 2.5",
    "pytest-sugar ~= 0.9",
    "hypothesis ~= 6.54",
]
dev = [
    "apple[mrunner]",
    "apple[build]",
    "apple[lint]",
    "apple[test]",
]

[project.urls]
"Source" = "https://github.com/BartekCupial/apple"

[tool.black]
line_length = 120

[tool.flake8]
extend_exclude = [".venv/", "build/", "dist/", "docs/"]
per_file_ignores = ["**/_[a-z]*.py:D", "tests/*.py:D", "*.pyi:D"]
ignore = [
    # Handled by black
    "E", # pycodestyle
    "W", # pycodestyle
    "D",
]
ignore_decorators = "property" # https://github.com/PyCQA/pydocstyle/pull/546

[tool.isort]
profile = "black"
line_length = 120
order_by_type = true
lines_between_types = 1
combine_as_imports = true
force_grid_wrap = 2

[tool.pytest.ini_options]
testpaths = "tests"
addopts = """
    -n auto
    -ra
    --tb short
    --doctest-modules
    --junit-xml test-results.xml
    --cov-report term-missing:skip-covered
    --cov-report xml:coverage.xml
"""