-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (97 loc) · 2.5 KB
/
pyproject.toml
File metadata and controls
109 lines (97 loc) · 2.5 KB
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
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "rls"
version = "0.1.0"
description = "Reef Life Survey data processor"
license = "MIT"
authors = ["Yanir Seroussi <rls@yanirseroussi.com>"]
readme = "README.md"
repository = "https://github.com/yanirs/rls-data"
keywords = []
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.poetry.dependencies]
python = "^3.10"
Cartopy = "^0.22.0"
defopt = "^6.3.0"
pandas = "^1.4.2"
requests = "^2.33.0"
Scrapy = "^2.11.1"
Pillow = "^12.2.0"
[tool.poetry.group.dev.dependencies]
jupyter = "^1.0.0"
pre-commit = "^2.18.1"
pytest = "^9.0.3"
pytest-cov = "^4.1.0"
pytest-mock = "^3.7.0"
types-requests = "^2.28.11.17"
mypy = "^1.2.0"
[tool.poetry.scripts]
rls-data = "rls:run_cli"
[tool.ruff]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"C408", # unnecessary-collection-call
"D203", # one-blank-line-before-class
"D212", # multi-line-summary-first-line
"PD002", # pandas-use-of-inplace-argument
"RUF001", # ambiguous-unicode-character-string
"S101", # assert
]
[tool.ruff.per-file-ignores]
# No need for doc requirements on test files.
"tests/test_*.py" = ["D100", "D103"]
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
ignore_missing_imports = true
show_error_codes = true
strict = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_decorators = false
[tool.pytest.ini_options]
# Directories that are not visited by pytest collector:
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__"
# Extra options:
addopts = [
"--strict-markers",
"--doctest-modules",
"--cov=rls",
"--cov-report=term:skip-covered",
"--cov-report=html",
"--cov-branch",
"--cov-append",
]