Skip to content

Commit f4ae8da

Browse files
authored
Python version rebuild (#20)
* Temporarily deleted meta information * Small changes in requirements.txt, added pre-commit * MME, MPV restructured * pre-commit style fix * orth extraction utils, config skeleton * Depth, Lidar, Custom configs * Added config to metric function parameters * Style fixes * Added MAX_NN parameter to config * Added min cluster size to config * Parametrized functions with config * Added pytest to requirements.txt * Fixed relative imports * More docstrings and formatting * tests structure, metric tests * package docs files * formatter fixes * style and tests CI * Poetry files * Small import update in __init__ * Massive tests update, small fixes in MOM * test fixes * removed poetry lock * 0.0.4 version, docs fixes Co-authored-by: Arthur_Ch <56088401+ArthurChains@users.noreply.github.com>
1 parent ac700c1 commit f4ae8da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+973
-671
lines changed

.editorconfig

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/style.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Code style
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events
8+
[ push, pull_request ]
9+
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
13+
# This workflow contains a single job called "style"
14+
style:
15+
16+
# The type of runner that the job will run on
17+
runs-on: ubuntu-latest
18+
19+
# A strategy creates a build matrix for your jobs
20+
strategy:
21+
22+
# You can define a matrix of different job configurations
23+
matrix:
24+
25+
# Each option you define in the matrix has a key and value
26+
python-version: [ 3.8 ]
27+
28+
# Steps represent a sequence of tasks that will be executed as part of the job
29+
steps:
30+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31+
- name: Set up Git repository
32+
uses: actions/checkout@v2
33+
34+
# Setup Python with version from matrix
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v2
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
40+
# Install requirements
41+
- name: Install requirements
42+
43+
# Runs command-line programs using the operating system's shell
44+
run: |
45+
python -m pip install --upgrade pip wheel setuptools
46+
python -m pip install -r requirements.txt
47+
python -m pip list
48+
49+
# Install pre-commit from .pre-commit-config.yaml
50+
- name: Install pre-commit
51+
run: |
52+
pre-commit install
53+
54+
# Run pre-commit on all the files in the repo
55+
- name: Run pre-commit
56+
run: |
57+
pre-commit run --all-files --color always --verbose --show-diff-on-failure

.github/tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Check tests
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events
8+
[ push, pull_request ]
9+
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
13+
# This workflow contains a single job called "style"
14+
build-and-test:
15+
16+
# The type of runner that the job will run on
17+
runs-on: ${{ matrix.os }}
18+
19+
# A strategy creates a build matrix for your jobs
20+
strategy:
21+
22+
# You can define a matrix of different job configurations
23+
matrix:
24+
os: [macos-latest, windows-latest, ubuntu-latest]
25+
26+
# Each option you define in the matrix has a key and value
27+
python-version: [ 3.8 ]
28+
29+
# Steps represent a sequence of tasks that will be executed as part of the job
30+
steps:
31+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32+
- name: Set up Git repository
33+
uses: actions/checkout@v2
34+
35+
# Setup Python with version from matrix
36+
- name: Set up Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
41+
# Install requirements
42+
- name: Install requirements
43+
shell: bash
44+
# Runs command-line programs using the operating system's shell
45+
run: |
46+
python -m pip install --upgrade pip wheel setuptools
47+
python -m pip install -r requirements.txt
48+
49+
# Run tests from /tests directory
50+
- name: Run tests
51+
run: |
52+
python -m pytest

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ wheels/
2424
*.egg-info/
2525
.installed.cfg
2626
*.egg
27+
poetry.lock
2728

2829
# PyInstaller
2930
# Usually these files are written by a python script from a template
@@ -102,4 +103,5 @@ ENV/
102103
.mypy_cache/
103104

104105
# IDE settings
105-
.vscode/
106+
.vscode/
107+
.idea/

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.4.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: requirements-txt-fixer
9+
- repo: https://github.com/psf/black
10+
rev: 21.7b0
11+
hooks:
12+
- id: black

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

AUTHORS.rst

Lines changed: 0 additions & 13 deletions
This file was deleted.

CHANGELOG.md

Whitespace-only changes.

HISTORY.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Apache Software License 2.0
22

3-
Copyright (c) 2021, Anastasiia Kornilova
3+
Copyright (c) 2022, Skolkovo Institute of Science and Technology (Skoltech)
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -13,4 +13,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
1313
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
16-

0 commit comments

Comments
 (0)