forked from guillermo-carrasco/TACA
-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
45 lines (38 loc) · 1.22 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
# === LINTING ================================================================
[tool.ruff]
exclude = ["tests_old/**"]
[tool.ruff.lint]
select = [
# Ruff default rules
# ------------------------------
"E4", # pycodestyle Imports
"E7", # pycodestyle Statements
"E9", # pycodestyle Runtime
"F", # Pyflakes
# Additional Comment
# ------------------------------------------------------
"I", # isort Best-practice sorting of imports
"UP", # pyupgrade Make sure syntax is up-to-date
]
ignore = [
"E402", # Module level import not at top of file
"E722", # Do not use bare 'except'
"E741", # Ambiguous variable name
]
[tool.mypy]
ignore_missing_imports = true
follow_imports = 'skip'
exclude = "build"
# === Testing ================================================================
[tool.pytest.ini_options]
# Omit deprecation warnings from 3rd party packages
filterwarnings = [
'ignore::DeprecationWarning:couchdb.*',
'ignore::DeprecationWarning:pkg_resources.*',
]
# Default addopts
addopts = "--ignore tests_old/"
[tool.coverage.run]
# The comment "# pragma: no cover" can be used to exclude a line from coverage
source = ["taca"]
omit = ["**/__init__.py"]