aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyproject.toml
blob: 1903f64d56c0201878b8a63f27af81541272da39 (plain) (blame)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[build-system]
  requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
  build-backend = "setuptools.build_meta"

[project]
  name = "sec-certs-page"
  version = "0.0.1"
  authors = [
    { name = "Jan Jancar", email = "445358@mail.muni.cz" }
  ]
  description = "A web for the sec-certs project."
  readme = "README.md"
  urls = { homepage = "https://sec-certs.org", documentation = "https://sec-certs.org/docs/", repository = "https://github.com/crocs-muni/sec-certs" }
  license = { "text" = "MIT" }
  classifiers = [
    "Development Status :: 3 - Alpha",
    "License :: OSI Approved :: MIT License",
    "Topic :: Security",
    "Topic :: Security :: Cryptography",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Intended Audience :: Developers",
    "Intended Audience :: Science/Research",
  ]
  requires-python = ">=3.10"
  dependencies = [
    # Base tool
    "sec-certs @ git+https://github.com/crocs-muni/sec-certs.git#main",
    # Flask
    "Flask",
    "Flask-Assets",
    "Flask-CacheControl",
    "Flask-Caching",
    "Flask-Cors",
    "Flask-DebugToolbar",
    "Flask-Login",
    "Flask-Mail",
    "Flask-Melodramatiq",
    "flask-paginate",
    "Flask-Principal",
    "Flask-PyMongo",
    "flask-redis",
    "flask-shell-ipython",
    "Flask-Sitemap",
    "Flask-WTF",
    "Flask-Dance",

    # Web utils
    "filtercss",
    "Whoosh",
    "email-validator",
    "MarkupSafe",
    "Werkzeug",
    "WTForms",
    "markdown2",
    "nh3",
    "dash",
    "dash-bootstrap-components",
    # Tasks
    "dramatiq[redis]",
    "periodiq",
    "redis",
    # Misc
    "sentry-sdk[flask] >= 2.13.0",
    "sentry-dramatiq",
    "fabric",
    "networkx",
    "atpublic",
    "jsondiff",
    "emoji-country-flag",
    "tqdm",
    "click",
    "requests",
    "feedgen",
    "pendulum",
]

[project.optional-dependencies]
dev = [
    "pre-commit",
]
test = [
    "pytest",
    "coverage[toml]",
    "pytest-cov",
    "pytest-mock",
    "pytest-env",
    "fakeredis[lua]",
]


[tool.setuptools.packages.find]
where = ["."]
include = ["sec_certs_page*"]
namespaces = false

[tool.black]
    line-length = 120
    exclude = '''
    /(
        \.git
      | \.mypy_cache
      | \.tox
      | venv
      | \.venv
      | _build
      | buck-out
      | build
      | dist
    )/
    '''

[tool.flake8]
    max-line-length = 120
    exclude = [
        ".git",
        "__pycache__",
        "build",
        "dist",
        "virt",
        ".eggs",
    ]
    max-complexity = 10
    ignore = [
        "E501",
        "W503",
        "E203",
        "E402",
        "F403",
        "F401",
        "C901",
        "E704"
    ]

[tool.isort]
    multi_line_output=3
    include_trailing_comma=true
    force_grid_wrap=0
    use_parentheses=true
    ensure_newline_before_comments=true
    line_length=120

[tool.mypy]
    plugins = ["numpy.typing.mypy_plugin"]
    ignore_missing_imports = true

[tool.pytest.ini_options]
    markers = [
        "slow: marks tests as slow (deselect with '-m \"not slow\"')",
        "remote: Test that can be done against a remote server.",
    ]
    #addopts = "--cov sec_certs_page"
    env = [
        "TESTING=true",
        "INSTANCE_PATH=%pkg%/../tests/instance",
    ]

[tool.coverage.run]
    branch = true

[tool.coverage.report]
    exclude_lines = ["pragma: no cover"]