Skip to content

Commit

Permalink
Merge pull request #13 from martibosch/develop
Browse files Browse the repository at this point in the history
Move `_gaussain_kernel1d` from scipy to the detectree codebase.
  • Loading branch information
martibosch authored Oct 24, 2022
2 parents 9d20e82 + 2344a49 commit 7a70662
Show file tree
Hide file tree
Showing 19 changed files with 559 additions and 696 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: dev

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:

- name: checkout code repository
uses: actions/checkout@v3

- name: run pre-commit
uses: pre-commit/action@v3.0.0

tests:

name: Python ${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
include:
- environment-file: environment-dev.yml
miniforge-variant: Mambaforge
miniforge-version: 4.14.0-0

defaults:
run:
shell: bash -l {0}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: setup conda environment with mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
use-mamba: true
activate-environment: detectree-dev
python-version: ${{ matrix.python-version }}
condarc-file: ${{ matrix.condarc-file }}
environment-file: ${{ matrix.environment-file }}
miniforge-variant: ${{ matrix.miniforge-variant }}
miniforge-version: ${{ matrix.miniforge-version }}

- name: install detectree
run: |
pip install .
conda list
conda info --all
- name: test docs
run: make -C ./docs html

- name: test code
run: |
coverage run --source ./detectree --module pytest --verbose
coverage xml -i
coverage report -m
- name: upload coverage report
uses: codecov/codecov-action@v3
73 changes: 0 additions & 73 deletions .github/workflows/tests.yml

This file was deleted.

17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
exclude: 'docs|node_modules|migrations|.git|.tox'
exclude: 'docs|node_modules|migrations|.tox'
default_stages: [commit]
fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.18.2
hooks:
- id: check-github-workflows

- repo: https://github.com/psf/black
rev: 21.5b1
rev: 22.10.0
hooks:
- id: black

- repo: https://github.com/timothycrosley/isort
rev: 5.8.0
rev: 5.10.1
hooks:
- id: isort

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
rev: 5.0.4
hooks:
- id: flake8
args: ['--config=setup.cfg']
additional_dependencies: [flake8-isort]

- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
files: ^detectree
args: ['--config=setup.cfg']
Loading

0 comments on commit 7a70662

Please sign in to comment.