Skip to content

Commit bfb3c1a

Browse files
committed
fix: update Makefile, rename docs to doc, upgrade setup, clean
1 parent 531d666 commit bfb3c1a

File tree

86 files changed

+215
-152
lines changed

Some content is hidden

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

86 files changed

+215
-152
lines changed

.github/workflows/pandora_ci.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,31 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16+
1617
- name: Set up Python 3.x
1718
uses: actions/setup-python@v2
1819
with:
1920
python-version: '3.7'
21+
2022
- name: Install Pandora with dependencies
2123
run: |
22-
make install-github-ci
24+
python -m pip install --upgrade pip
25+
pip install codecov
26+
pip install .[dev]
27+
2328
- name: Test with pytest
2429
run: |
25-
make test-github-ci
30+
export NUMBA_DISABLE_JIT="1"
31+
pytest -m "not notebook_tests" --junitxml=pytest-report.xml --cov-config=.coveragerc --cov-report xml --cov
32+
2633
- name: Upload coverage to Codecov
2734
uses: codecov/codecov-action@v1
35+
2836
- name: Create source distribution
2937
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3038
run: |
31-
make distribute-github-ci
39+
python -m build --sdist
40+
3241
- name: Publish package on pypi
3342
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3443
uses: pypa/gh-action-pypi-publish@release/v1

.gitignore

+90-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,97 @@
1-
# Python
1+
# Compiled python files
2+
*.py[cod]
3+
*$py.class
4+
*.pyc
5+
6+
# C extensions
7+
*.so
8+
9+
# Cache python
210
__pycache__/
11+
12+
# Python egg metadata, regenerated from source files by setuptools
13+
/*.egg-info
14+
/.eggs/
15+
develop-eggs/
16+
wheels/
17+
.installed.cfg
18+
*.egg
19+
20+
# Setuptools build and distribution directories
21+
/dist/
22+
/build/
23+
sdist/
24+
25+
# Virtualenv
26+
/venv/
27+
28+
# Tox
29+
.tox
30+
31+
# Pytest
32+
.pytest_cache/
33+
pytest-report.xml
34+
nosetests.xml
35+
36+
# Python coverage output
337
.coverage
38+
.coverage.*
439
coverage.xml
5-
nosetests.xml
40+
/htmlcov/
41+
42+
# pylint report
643
pylint-report.txt
7-
*.egg-info/
844

9-
# Jupyter
10-
.ipynb_checkpoints/
11-
output/
45+
# Debug file logging
46+
debug.log
1247

13-
# Virtualenv
14-
/venv/
48+
# Documentation build and API
49+
docs/build/
50+
docs/_build/
51+
docs/source/api_reference/
52+
docs/source/apidoc/
53+
54+
# Installer logs
55+
pip-log.txt
56+
pip-delete-this-directory.txt
57+
58+
# Code quality
59+
pylint-report.xml
60+
61+
# Translations
62+
*.mo
63+
*.pot
64+
65+
# Django stuff:
66+
*.log
67+
local_settings.py
68+
69+
# Flask stuff:
70+
instance/
71+
.webassets-cache
72+
73+
# Scrapy stuff:
74+
.scrapy
75+
76+
# Jupyter Notebook
77+
.ipynb_checkpoints
78+
output
79+
80+
# pyenv
81+
.python-version
82+
83+
# dotenv
84+
.env
85+
86+
# mkdocs documentation
87+
/site
88+
89+
# mypy
90+
.mypy_cache/
91+
92+
# IDE settings
93+
.vscode/
94+
.idea/
1595

16-
#doc sphinx
17-
doc/build/
18-
doc/sources/api_reference/
96+
# Swap file
97+
*.swp

.gitlab/merge_request_templates/MR.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Si la Merge Request est en cours de développement, merci d'ajouter le mot clé
1818

1919
Si la Merge Request est prête, merci de valider les étapes suivantes:
2020
- [ ] mise à jour de la documentation
21-
- ajout de paramètres dans https://gitlab.cnes.fr/OutilsCommuns/CorrelateurChaine3D/pandora/-/blob/master/doc/sources/userguide/usage.rst
21+
- ajout de paramètres dans https://gitlab.cnes.fr/OutilsCommuns/CorrelateurChaine3D/pandora/-/blob/master/docs/source/userguide/usage.rst
2222
- suppression des warnings éventuels lors de la génération de la doc
2323
- vérification visuelle des parties ajoutées dans la doc (cf. #138)
2424
- [ ] mise à jour du changelog

.pre-commit-config.yaml

+16-9
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,38 @@ repos:
33
hooks:
44
- id: black
55
name: black
6-
entry: black --line-length=120
6+
entry: black
77
language: system
88
files: \.py$
99
stages: [commit]
1010
types: [python]
11+
1112
- id: pylint
1213
name: PyLint
13-
entry: python -m pylint --rcfile=.pylintrc
14+
entry: pylint --rcfile=.pylintrc
1415
language: system
1516
files: \.py$
17+
types: [python]
1618
stages: [commit]
19+
1720
- id: mypy
1821
name: mypy
1922
entry: mypy
2023
language: system
2124
files: \.py$
2225
stages: [ commit ]
26+
27+
- id: jupyter-nb-clear-output
28+
name: jupyter-nb-clear-output
29+
files: \.ipynb$
30+
stages: [commit]
31+
language: system
32+
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
33+
2334
- id: sphinx-checking
2435
name: Checking Sphinx building
25-
entry: python setup.py build_sphinx
36+
entry: sphinx-build -M html docs/source/ docs/build -W --keep-going
2637
language: system
27-
files: ^(doc/.*|pandora/.*)$
38+
files: ^(docs/.*|pandora/.*)$
2839
pass_filenames: False
29-
stages: [push]
30-
- repo: https://github.com/kynan/nbstripout
31-
rev: 0.6.0
32-
hooks:
33-
- id: nbstripout
40+
stages: [push]

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 2
55

66
# Build documentation in the docs/ directory with Sphinx
77
sphinx:
8-
configuration: doc/sources/conf.py
8+
configuration: docs/source/conf.py
99

1010
python:
1111
version: 3.7

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Here are some rules to apply when developing a new functionality:
7878

7979
# Pre-commit validation
8080

81-
Pre-commit hooks (black, pylint, mypy, sphinx-checking, nbstripout) for code analysis can be installed:
81+
Pre-commit hooks (black, pylint, mypy, sphinx-checking, jupyter-nb-clear-output) for code analysis can be installed:
8282
```
8383
pre-commit install
8484
```

0 commit comments

Comments
 (0)