Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 5d87f2c

Browse files
authored
Merge pull request #183 from OpenSourceEconomics/speed_up_and_extract
Speed up parametric estimation, extract function locpoly into kernreg package, and set up continuous integration workflow with tox and GitHub Actions
2 parents 3ff5ec9 + 8d08d24 commit 5d87f2c

81 files changed

Lines changed: 2546 additions & 2025 deletions

File tree

Some content is hidden

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

.codacy.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
exclude_paths:
2-
- development/working/*
2+
- development/*
33
- setup.py
44
- docs/presentation/*
55
- docs/conf.py
6-
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Continuous Integration Workflow
2+
on:
3+
push:
4+
# branches:
5+
# - main
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
env:
11+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
12+
13+
jobs:
14+
15+
run-tests:
16+
17+
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
23+
python-version: ['3.7', '3.8']
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: conda-incubator/setup-miniconda@v2
28+
with:
29+
auto-update-conda: true
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install core dependencies.
33+
shell: bash -l {0}
34+
run: conda install -c conda-forge tox-conda
35+
36+
- name: Run pytest
37+
shell: bash -l {0}
38+
run: tox -e pytest
39+
40+
pre-commit:
41+
42+
name: Run pre-commit.
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- uses: actions/checkout@v2
47+
48+
- name: Set up Python 3.8
49+
uses: actions/setup-python@v1
50+
with:
51+
python-version: 3.8
52+
53+
- name: Install dependencies
54+
run: pip install tox
55+
56+
- name: Run pre-commit
57+
run: tox -e pre-commit
58+
59+
docs:
60+
61+
name: Run documentation.
62+
runs-on: ubuntu-latest
63+
64+
steps:
65+
- uses: actions/checkout@v2
66+
- uses: conda-incubator/setup-miniconda@v2
67+
with:
68+
auto-update-conda: true
69+
python-version: 3.8
70+
71+
- name: Install core dependencies.
72+
shell: bash -l {0}
73+
run: conda install -c conda-forge tox-conda
74+
75+
- name: Build docs
76+
shell: bash -l {0}
77+
run: tox -e sphinx

.pre-commit-config.yaml

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: 19.3b0
4-
hooks:
5-
- id: black
6-
language_version: python3.7
7-
exclude: ^docs/
82
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v1.2.3
3+
rev: v3.4.0
4+
hooks:
5+
- id: check-added-large-files
6+
args: ['--maxkb=100']
7+
- id: check-merge-conflict
8+
- id: check-yaml
9+
exclude: meta.yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- repo: https://github.com/asottile/pyupgrade
13+
rev: v2.10.0
1014
hooks:
11-
- id: flake8
15+
- id: pyupgrade
16+
args: [--py36-plus]
1217
- repo: https://github.com/timothycrosley/isort
13-
rev: 4.3.20
18+
rev: 5.7.0
1419
hooks:
1520
- id: isort
1621
name: isort
@@ -19,4 +24,24 @@ repos:
1924
require_serial: true
2025
language: python
2126
types: [python]
22-
27+
- repo: https://github.com/psf/black
28+
rev: 20.8b1
29+
hooks:
30+
- id: black
31+
- repo: https://github.com/asottile/blacken-docs
32+
rev: v1.9.2
33+
hooks:
34+
- id: blacken-docs
35+
additional_dependencies: [black]
36+
- repo: https://gitlab.com/pycqa/flake8
37+
rev: 3.8.4
38+
hooks:
39+
- id: flake8
40+
additional_dependencies: [
41+
flake8-alfred,
42+
flake8-bugbear,
43+
flake8-builtins,
44+
flake8-pytest-style,
45+
pydocstyle,
46+
Pygments,
47+
]

0 commit comments

Comments
 (0)