Commit graph

176 commits

Author SHA1 Message Date
4224776f60
Upgrade numpy 2026-11-24 15:19:23 +01:00
4169da38b1
Upgrade statsmodels 2026-11-24 15:17:07 +01:00
706b0938c2
Upgrade packaging 2026-11-24 12:53:49 +01:00
c7f10f4c7f
Upgrade utm 2026-11-24 12:26:12 +01:00
4bc87eaf18
Upgrade rpy2 2026-11-24 12:22:24 +01:00
b44fc5f826
Upgrade googlemaps 2026-11-24 12:14:55 +01:00
629e3e6e3d
Upgrade geopy 2026-11-24 12:14:06 +01:00
dfc5cb7fb6
Upgrade ordered-set 2026-11-24 12:13:19 +01:00
9801baadee
Upgrade psycopg2 2026-11-24 12:12:10 +01:00
dcb2f82deb
Merge branch 'poetry-2' into develop
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m22s
2026-11-24 12:03:27 +01:00
95c760a0c3
Migrate to Poetry 2 and the standard [project] table
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m23s
2026-11-24 11:58:26 +01:00
754303ca71
Update the paper submodule to v1.0.2 2026-11-24 11:41:11 +01:00
5cc8a13719
Update the email address 2026-11-24 11:39:14 +01:00
3c6d3cbc65
Merge branch 'rename-to-velofy' into develop
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m39s
2026-11-24 11:16:26 +01:00
510c28c91e
Move the paper repository to Forgejo as velofy-forecasting 2026-11-24 11:15:38 +01:00
abc3ec5b3c
Rewrite the Forgejo links instead of GitHub links in the nox session 2026-11-24 11:15:20 +01:00
ce2cdd6f3e
Rename urban-meal-delivery into velofy in texts and notebook outputs 2026-11-24 10:56:25 +01:00
447533cceb
Point the links in the README, docs, and notebooks to Forgejo 2026-11-24 10:55:25 +01:00
8eb0dda0e1
Point the project URLs and texts to velofy 2026-11-24 10:34:32 +01:00
fa5b2690ad
Call the manage CLI in the notebooks 2026-11-24 10:28:38 +01:00
8e2536f45a
Replace the umd alias with velofy 2026-11-24 10:26:51 +01:00
e7a2d4a3cb
Rename the umd CLI into manage 2026-11-24 10:02:34 +01:00
4855209392
Rename the urban_meal_delivery package into velofy 2026-11-23 18:06:53 +01:00
a39d636876
Drop the temporary test schema in its own transaction
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m39s
2026-11-23 16:45:38 +01:00
f253c09f43
Run the test suite on the Forgejo runner
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m44s
2026-11-23 16:27:04 +01:00
2a3450f537
Mark the Python 3.8 baseline
Some checks failed
CI / fast (without R) (push) Failing after 15s
CI / slow (with R) (push) Failing after 16s
baseline-py38
2026-11-23 13:37:46 +01:00
830f44e3cc
Merge branch 'simulation-data' into develop
Some checks failed
CI / fast (without R) (push) Has been cancelled
CI / slow (with R) (push) Has been cancelled
2021-09-16 13:21:42 +02:00
419c7e6bf6
Add tests for the Order ORM model
- so far, the check constraints were untested
  + the tests mirror the tests for the `ReplayedOrder` model
    with some variations
- shorten some import names
- fix some typos
2021-09-16 12:05:22 +02:00
e4e543bd40
Add ORM models for the simulation data
- add new ORM models `ReplaySimulation` and `ReplayedOrder`
  to store the data generated by the routing simulations
- add migrations script to create the corresponding database tables
  + create "replay_simulations" and "replayed_orders" tables
  + add missing check constraints to "orders" table
  + add unique constraint to "orders" table to enable compound key
  + drop unnecessary check constraints from the "orders" table
- add tests for the new ORM models
  + add `simulation`, `replayed_order`, `make_replay_order()`, and
    `pre_order` fixtures
  + add `ReplayedOrderFactor` faker class
- fix some typos
2021-09-16 11:58:55 +02:00
41f75f507d
Use a unified DATE constant for convenience 2021-09-16 11:53:40 +02:00
f0eb9d3b6f
There is no 'too complex function'
We check a function's cognitive complexity only with `mccabe` (=C901)
and not with WPS231 as the two overlap in most cases.
2021-09-15 14:51:56 +02:00
6091ad95c6
Fix failing tests due to randomization 2021-09-15 12:00:03 +02:00
f891fac3dc
Refactor tests.db.fake_data.factories into a package 2021-09-15 11:58:17 +02:00
7e23033d84
There is no 'too deep nesting' 2021-09-15 11:58:13 +02:00
5978b0e92f
Modules are never 'too complex' 2021-09-15 11:47:38 +02:00
d03c2f91fb
Merge branch 'main' into develop 2021-09-13 11:37:37 +02:00
0f60640bc0
Show how the Google Maps API is integrated
Some checks failed
CI / fast (without R) (push) Has been cancelled
CI / slow (with R) (push) Has been cancelled
v0.4.0.post0
- show an example order's path from the restaurant to the customer's
  delivery address as it is travelled by a courier
- explain how to use the Google Maps API directly
- show how the API is integrated into the data model
2021-09-13 11:30:17 +02:00
f6b331883e
Merge branch 'release-0.4.0' into main
Some checks failed
CI / fast (without R) (push) Has been cancelled
CI / slow (with R) (push) Has been cancelled
v0.4.0
2021-09-13 11:22:42 +02:00
5eabd541e8
Merge branch 'release-0.4.0' into develop 2021-09-13 11:22:01 +02:00
19d7b6f3cc
Finalize release 0.4.0 2021-09-13 11:20:53 +02:00
97b75f2579
Merge branch 'google-maps' into develop 2021-09-13 11:11:53 +02:00
d83ff2e273
Add Order.draw() and Path.draw()
- `Order.draw()` plots a `Courier`'s path from the
  `Order.pickup_address` to the `Order.delivery_address`
- `Path.draw()` plots a `Courier`'s path between any two
  `Address` objects
2021-09-13 10:33:35 +02:00
2449492aba
Add Path.from_order() convenience method
Special case of `Path.from_addresses()` to create a single
`Path` object from an `Order.restaurant` to the `Customer`.
2021-09-13 09:57:25 +02:00
2d324b77eb
Rename DistanceMatrix into Path
- a `Path` is a better description for an instance of the model
- the `Location`s en route are renamed into `.waypoints`
- generic `assoc` is renamed into `path` in the test suite
2021-09-12 17:33:48 +02:00
2d08afa309
Upgrade sqlalchemy
Adapt code to prevent new warnings and errors (as of SQLAlchemy 1.4):
- Overlapping foreign key columns could be set in a conflicting way
  => This is prevented by the application logic
  => Ignore the warning by setting a `overlaps` flag
- Transaction already rolled back
  => This only happens when tests cause an `IntegrityError` on purpose
  => Filter away the corresponding warning in the fixture
- Query returns `Row` objects and not scalars
  => Add genexpr to pull out `primary_id`
2021-09-12 16:52:51 +02:00
3bef9ca38d
Remove flake8-expression-complexity ...
... from the dev dependencies.

Longer queries in SQLAlchemy get flagged even though they are not
complicated. Other expressions are generally not that complicated.
2021-09-12 16:52:44 +02:00
1c19da2f70
Solve all issues detected by PyCharm
- as of September 2021, PyCharm is used to write some of the code
- PyCharm's built-in code styler, linter, and type checker issued
  some warnings that are resolved in this commit
  + spelling mistakes
  + all instance attributes must be specified explicitly
    in a class's __init__() method
    => use `functools.cached_property` for caching
  + make `tuple`s explicit with `(...)`
  + one test failed randomly although everything is ok
    => adjust the fixture's return value (stub for Google Directions API)
  + reformulate SQL so that PyCharm can understand the symbols
2021-09-12 16:51:12 +02:00
1268aba017
Pin the dependencies ...
... after upgrading:
- alembic
- geopy
- googlemaps
- psycopg2
- rpy2
- dev dependencies
  + coverage       + darglint      + flake8      + flake8-annotations
  + flake8-black   + flake8-comprehensions       + flake8-docstrings
  + flake8-pytest-style            + pre-commit  + pytest
  + pytest-cov     + pytest-mock   + sphinx      + sphinx-autodoc-typehints
- research dependencies
  + jupyterlab     + matplotlib    + numpy       + pandas
- transient dependencies
  + argcomplete    + argon2-cffi   + attrs       + babel
  + bleach         + certifi       + cffi        + cfgv
  + chardset-normalizer            + colorlog    + debugpy
  + decorator      + defusedxml    + distlib     + geographiclib
  + gitdb          + gitpython     + greenlet    + identify
  + idna           + importlib-resources         + ipykernel
  + ipython        + jinja2        + json5       + jupyter-client
  + kiwisolver     + mako          + markupsafe
  + nbclient       + nbconvert     + nbformat    + nodeenv
  + notebook       + parso         + pathspec    + pbr
  + pillow         + platformdirs  + pluggy      + prometheus-client
  + prompt-toolkit + pycodestyle   + pydocstyle  + pyflakes
  + pygments       + pyristent     + python-dateutil
  + pywin32        + pywinpty      + pyzmq       + regex
  + requests       + scipy         + send2trash  + six
  + smmap          + sphinxcontrib-htmlhelp
  + sphinxcontrib-serializinghtml  + stevedore   + terminado
  + textfixtures   + testpath      + traitlets   + typed-ast
  + typing-extensions              + tzdata      + tzlocal
  + urllib3        + virtualenv    + zipp
2021-09-12 16:51:12 +02:00
6636e56ec8
Upgrade flake8-pytest-style
The newly introduced "P023" error code must be disabled explicitly.
2021-09-12 16:51:11 +02:00
fa3b761054
Remove pytest-randomly from the dev dependencies
- problem: because of the randomization of test cases, every once in a
  while, the schema holding the test db already exists and cannot be
  created a second time (background: we run all tests against a db
  created with `metadate.create_all()` by SQLAlchemy at once and
  a db created by running all incremental Alchemy migration scripts)
- quick fix: possible, we could find a way to run all tests against
  one of the two test db's in random order and then against the other
  => in the interest of time, we simply do not randomize the test cases
2021-09-12 16:51:11 +02:00