-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
115 lines (99 loc) · 2.52 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
[project]
name = "dna-serpent"
version = "0.4.0"
description = "Serpent is an exploration into DNA sequences, codons, amino acids and genome data"
authors = [
{ name = "Peter Hillerström", email = "[email protected]" },
]
dependencies = [
"Pillow>=9.4.0",
"matplotlib==3.7.0",
"more-itertools==9.0.0",
"numpy==1.24.2",
"click>=8.1.3",
"argh>=0.28.1",
"termcolor>=2.2.0",
"ansi>=0.3.6",
"blessed>=1.20.0",
"pytrie>=0.4.0",
]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "MIT"}
[project.scripts]
serpent = "serpent.cli.command:main"
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.pdm]
[tool.pdm.build]
excludes = ["./**/.git"]
package-dir = "src"
source-includes = ["test", "CHANGELOG.md", "LICENSE", "README.md"]
[tool.pdm.dev-dependencies]
dev = [
"ipython>=8.10.0",
"pre-commit>=3.1.1",
"ruff>=0.0.253",
"flake8-tabs>=2.3.2",
"pylint>=2.16.3",
"mypy>=1.0.1",
"types-Pillow>=9.4.0.17",
"pytest>=7.2.2",
"hypothesis>=6.68.2",
"tox>=4.18.0",
"flake8>=3.9.2",
]
[tool.pdm.scripts]
serpent = {call = "serpent.cli.command:main"}
degen = {shell = "find ../Data \\( -name '*.fna' -o -name '*.fasta' \\) -print0 | xargs -0 rg -ce '^[^>@;].*[WSMKRYBDHVZ-]'"}
degen-amino = {shell = "find ../Data -name '*.faa' -print0 | xargs -0 rg -ce '^[^>@;].*[UOBJZX-]'"}
doctest = {shell = "pytest --doctest-modules src/serpent/"}
fasta = {shell = "find ../Data -name '*.f*a' -print0 | xargs -0 ls -xt"}
[tool.mypy]
files = "src"
python_version = "3.8"
# Start off with these
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
# Getting these passing should be easy
strict_equality = true
strict_concatenate = true
# Gradually stricter options:
check_untyped_defs = true
# disallow_untyped_defs = true
# disallow_incomplete_defs = true
# strict = true
show_error_codes = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
warn_unreachable = true
# You can disable imports or control per-module/file settings here
[[tool.mypy.overrides]]
module = [
"argh.*",
"matplotlib.*",
]
ignore_missing_imports = true
[tool.pylint]
py-version = "3.8"
jobs = "0"
reports.output-format = "colorized"
# Good variable names which should always be accepted
good-names = [
"i",
"n",
]
# good-names-rgxs="^[_a-z][_a-z0-9]?$"
[tool.pylint.messages_control]
enable = [
"useless-suppression",
]
disable = [
"bad-indentation",
]