Skip to content

Commit f446cff

Browse files
committed
initial commit
0 parents  commit f446cff

21 files changed

Lines changed: 1225 additions & 0 deletions

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
max-line-length = 88
3+
select = C,E,F,W,B,B950
4+
ignore = E203, E501, W503
5+
exclude = docs/conf.py, .virtualenv

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab:
2+
3+
name: Lint code
4+
on:
5+
workflow_call:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
lint:
12+
name: Linting code
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.13'
19+
cache: pip
20+
- run: python -m pip install black flake8 pydocstyle
21+
- run: python -m black --check .
22+
- run: python -m flake8 .
23+
- run: python -m pydocstyle .

.github/workflows/test.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab:
2+
3+
name: Unit tests
4+
on:
5+
pull_request:
6+
workflow_call:
7+
push:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
lint:
20+
uses: ./.github/workflows/lint.yml
21+
secrets: inherit
22+
23+
test:
24+
name: Run tests (${{ matrix.os }}, Python ${{ matrix.python_version }}
25+
needs: lint
26+
runs-on: ${{ matrix.os }}
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
os:
31+
- ubuntu-latest
32+
- windows-latest
33+
- macos-latest
34+
python_version:
35+
- '3.13'
36+
- '3.12'
37+
- '3.11'
38+
- '3.10'
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- uses: actions/setup-python@v5
44+
with:
45+
python-version: '${{matrix.python_version}}'
46+
cache: 'pip'
47+
48+
- run: python -m pip install --prefer-binary .[tests]
49+
50+
- run: python -m pytest
51+
52+
- uses: codecov/codecov-action@v4
53+
with:
54+
fail_ci_if_error: true
55+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.virtualenv
2+
.virtualenv/*
3+
.virtualenv/**
4+
dist
5+
dist/*
6+
dist/**
7+
build
8+
build/*
9+
build/**
10+
docs/build/*
11+
docs/build/**
12+
*.egg-info
13+
*.egg-info/*
14+
*.egg-info/**
15+
*~
16+
**/*~
17+
*.swp
18+
**/*.swp
19+
*.pyc
20+
**/*.pyc
21+
.DS_Store
22+
*/.DS_Store
23+
**/.DS_Store
24+
src/**/*.so
25+
src/**/*.c
26+
src/**/*.o
27+
28+
docs/_build/
29+
docs/data/*.mapdb
30+
docs/data/*.mapdb.p
31+
**/.ipynb_checkpoints
32+
docs/jupyter_execute/
33+
docs/user-guide/user-manual/travel_times_to_helsinki_railway_station.csv
34+
docs/user-guide/user-manual/detailed_itineraries.gpkg
35+
36+
.tox
37+
.coverage
38+
coverage.xml
39+
.vscode/*
40+
41+
.config/r5py.yml

.pylintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
good-names=i,
2+
j,
3+
k,
4+
e,
5+
ex,
6+
id,
7+
Run,
8+
_

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- **0.0.0** (9999-99-99):
2+
- Initial release

0 commit comments

Comments
 (0)