-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
124 lines (110 loc) · 3.19 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = 'gtfs_segments'
description = "GTFS Segments: A fast and efficient library to generate bus stop spacings"
# Support Python 3.9+.
requires-python = ">=3.9"
version = "2.1.7"
dependencies = [
"geopandas >= 0.12.0",
"scipy",
"shapely",
"numpy >= 1.25.0",
"pandas >= 2.0.0",
"matplotlib",
"utm",
"contextily",
"requests",
"isoweek",
"faust-cchardet",
"charset_normalizer",
"folium",
"thefuzz",
]
authors = [
{name = "Saipraneeth Devunuri", email = "[email protected]"},
{name = "Lewis Lehe", email = "[email protected]"},
]
maintainers = [
{name = "Saipraneeth Devunuri", email = "[email protected]"}
]
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE", name = "MIT License"}
keywords=["Python", "GTFS", "Transit", "Stop Spacings", "GIS"]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.9",
]
[tool.setuptools]
packages = ["gtfs_segments","gtfs_segments.partridge_mod"]
[project.urls]
Homepage = "https://github.com/UTEL-UIUC/gtfs_segments"
Documentation = "https://gtfs-segments.readthedocs.io"
Repository = "https://github.com/UTEL-UIUC/gtfs_segments"
"Bug Tracker" = "https://github.com/UTEL-UIUC/gtfs_segments/issues"
[tool.ruff]
src = ["gtfs_segments"]
# Set the maximum line length to 100.
line-length = 100
indent-width = 4
# Assume Python 3.9+
target-version = "py39"
[tool.ruff.lint]
exclude = ["*.ipynb"]
select = ["E", "F", "W", "Q", "I"]
ignore = ["E203","E501"]
extend-select = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
exclude = ["*.ipynb"]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
env_list =
py{39,310,311}
minversion = 4.11.3
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
[testenv]
description = run the tests with unittest
deps = -rrequirements.txt
commands =
python -m unittest
[testenv:lint]
description = run linters
skip_install = true
deps = flake8==6.1.0
commands =
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
"""
[tool.mypy]
disallow_untyped_defs = true
warn_unused_configs = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "gtfs_segments.*"
ignore_missing_imports = true