-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
165 lines (154 loc) · 3.21 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
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
164
165
[tool.poetry]
name = "fcsjanitor"
version = "0.8.0"
description = "Clean up CyTOF FCS files as per the Standard Biotools recommendations"
authors = ["Miles Smith <miles-smith@omrf.org>"]
license = "GPL-3.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
pytometry = "^0.1.2"
scanpy = "^1.9.1"
tqdm = "^4.66.1"
numpy = "^1.23.4"
loguru = "^0.7.2"
typer = "^0.9.0"
rich = "^13.6.0"
flowkit = "^1.0.1"
[tool.poetry.group.dev.dependencies]
black = "^23.9.1"
pytest = "^7.4.2"
mypy = "^1.0.0"
ruff = "^0.0.292"
types-python-dateutil = "^2.8.19.14"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
janitor = "fcsjanitor.cli:app"
[tool.mypy]
# mypy configurations: http://bit.ly/2zEl9WI
python_version = 3.10
pretty = true
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
follow_imports_for_stubs = false
ignore_missing_imports = false
implicit_reexport = false
strict_optional = true
strict_equality = true
no_implicit_optional = true
warn_no_return = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_return_any = true
warn_unreachable = true
show_error_codes = true
show_column_numbers = true
show_error_context = true
[tool.isort]
known_typing = "typing,types,typing_extensions,mypy,mypy_extensions"
sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
include_trailing_comma = true
default_section = "FIRSTPARTY"
multi_line_output = 3
indent = 4
force_grid_wrap = 0
use_parentheses = true
line_length = 80
[tool.black]
line-length = 120
target-version = ["py310"]
skip-string-normalization = true
[tool.ruff]
target-version = "py310"
line-length = 120
select = [
"A",
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"I001",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
]
# E127, E128 are hard to silence in certain nested formatting situations.
# E265, E266 talk about comment formatting which is too opinionated.
# E402 warns on imports coming after statements. There are important use cases
# like demandimport (https://fburl.com/demandimport) that require statements
# before imports.
# E501 is not flexible enough, we're using B950 instead.
# E722 is a duplicate of B001.
# P207 is a duplicate of B003.
# W503 talks about operator formatting which is too opinionated.
# E203 conflicts with Black
ignore = [
"B027",
"E265",
"E266",
"E402",
"E501",
"E722",
"E203",
"E241",
"FBT003",
"S105",
"S106",
"S107",
"C901",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
]
unfixable = [
"F401",
"UP007",
]
exclude = [
".git",
".hg",
"__pycache__",
"_bin/*",
"_build/*",
"_ig_fbcode_wheel/*",
"buck-out/*",
"third-party-buck/*",
"third-party2/*",
"dist",
".venv",
".nox",
".mypy_cache",
".pytype",
".svn",
"__pypackages__",
]
src = ["src"]
[tool.ruff.mccabe]
max-complexity = 50
[tool.ruff.isort]
known-first-party = ["readcounts"]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"