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

Commit 4031003

Browse files
authored
Merge pull request #55 from signaux-faibles/develop
M: merge in main for 21.03 release
2 parents 5f78c90 + 73aed5d commit 4031003

Some content is hidden

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

46 files changed

+3161
-1
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
MONGO_URL=mongodb://your_mongo_url
2+
MONGO_DB=the_name_of_thedb
3+
MONGO_COLLECTION=my_awesome_data
4+
MIN_EFFECTIF=10

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
notebooks/*.ipynb filter=strip-notebook-output

.githooks.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[pre-commit]
2+
command = python3 -m black . && pylint ./**/*.py
3+
4+
[pre-push]
5+
command = pytest

.github/workflows/.gitkeep

Whitespace-only changes.

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
branches:
6+
- main
7+
- develop
8+
jobs:
9+
CI:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python 3.8
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.6
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install -r requirements.txt
21+
- name: Run pylint
22+
run: |
23+
python -m pylint --rcfile=./.pylintrc ./**/*.py
24+
- name: Test with pytest
25+
run: |
26+
python -m pytest
27+
env:
28+
MIN_EFFECTIF: 10

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dist/
1414
downloads/
1515
eggs/
1616
.eggs/
17-
lib/
1817
lib64/
1918
parts/
2019
sdist/
@@ -127,3 +126,14 @@ dmypy.json
127126

128127
# Pyre type checker
129128
.pyre/
129+
130+
# ignore notebooks prefaced with "dev"
131+
notebooks/dev-*
132+
notebooks/val-*
133+
134+
# ignore documentation file of variables
135+
variables.json
136+
137+
# ignore model run outputs
138+
model_runs/*
139+
.vscode

0 commit comments

Comments
 (0)