Skip to content

Commit

Permalink
apply reformat (#329)
Browse files Browse the repository at this point in the history
Signed-off-by: cfujitsang <cfujitsang@nvidia.com>
  • Loading branch information
Caenorst committed Dec 9, 2020
1 parent c537bf7 commit 8e99be5
Show file tree
Hide file tree
Showing 586 changed files with 24,064 additions and 264,844 deletions.
25 changes: 1 addition & 24 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,4 @@ ignore =
# these ignores are from flake8-comprehensions; please fix!
C400,C401,C402,C403,C404,C405,C407,C411
per-file-ignores = __init__.py: F401
exclude = .git, tests/, build/,
examples/ImageRecon,
examples/renderers/SoftRas,
examples/renderers/test,
examples/renderers/NMR,
examples/SuperResolution,
kaolin/cuda,
kaolin/datasets/scannet.py,
kaolin/datasets/shapenet.py,
kaolin/datasets/usdfile.py,
kaolin/engine,
kaolin/graphics/dib_renderer,
kaolin/graphics/DIBRenderer.py,
kaolin/graphics/NeuralMeshRenderer.py,
kaolin/graphics/nmr,
kaolin/helpers.py,
kaolin/mathutils,
kaolin/metrics,
kaolin/models,
kaolin/rep,
kaolin/testing,
kaolin/transforms,
kaolin/vision,
kaolin/visualize
exclude = .git, tests/, build/, _build/, .eggs/
211 changes: 14 additions & 197 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,203 +1,20 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject
artifacts
cuda_*.exe
miniconda3.exe
vs_buildtools.exe

# Rope project settings
.ropeproject

# mkdocs documentation
/site
# all folders starting with _ are local
_*/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/


# sphinx build folder
_build

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
# generated folders
kaolin/version.py
build/
kaolin.egg-info
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db

# Editor backup files #
#######################
*~


######
# Docs
######

docs/_build


# # Datasets directory, possibly generated by tests
# datasets/

# Test generated files (dataloader tests create temporary dirs)
tests/datasets_eval/

tests/visualize/results/

# Default data directory
data/

# 'public' directory, where docs are hosted as a gitlab page
public/

# previous code versions
*_old*

# vscode
**/.vscode/**

# Results directory for examples
examples/renderers/DIB-R/results/
examples/renderers/NMR/results/
# byte-compiled python files
*.py[cod]

# example outputs
cache/
log/
# pip cache
.cache
105 changes: 75 additions & 30 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,84 @@
image: "pytorch/pytorch:1.2-cuda10.0-cudnn7-devel"

before_script:
- pip install --upgrade pip>=18.0.0
- pip install flake8==3.7.9 \
flake8-bugbear==20.1.4 \
flake8-comprehensions==3.2.2 \
flake8-mypy==17.8.0 \
flake8-pyi==19.3.0 \
pytest==5.4.2 \
pytest-cov==2.8.1
- pip install --no-dependencies -r requirements.txt
- apt-get update && apt-get -y install libglib2.0-0 # needed by opencv

stages:
- build
- test

build general:
tags:
- kaolin
# ----

build linux:
tags: [kaolin]
stage: build
image: "docker:19.03.9"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- ci/build-linux.sh
artifacts:
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
paths: ['artifacts/']
when: always

build windows:
tags: [kaolin_windows]
stage: build
script:
- ci\build-windows.ps1
artifacts:
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
paths: ['artifacts/']
when: always

build linux no cache:
when: manual
tags: [kaolin]
stage: build
image: "docker:19.03.9"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- ci/build-linux-no-cache.sh
artifacts:
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
paths: ['artifacts/']
when: always

build windows no cache:
when: manual
tags: [kaolin_windows]
stage: build
script:
- python setup.py build_ext --inplace -j$(nproc --all)
- python setup.py install
- python -c 'import kaolin; print(kaolin.__version__)'
- ci\build-windows-no-cache.ps1
artifacts:
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
paths: ['artifacts/']
when: always


# ----

flake8 linux:
tags: [kaolin]
stage: test
needs: ['build linux']
image: "docker:19.03.0"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- ci/flake8-linux.sh

full test:
tags:
- kaolin
pytest linux:
tags: [kaolin]
stage: test
needs: ['build linux']
image: "docker:19.03.9"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- flake8 --config=.flake8 .
- source setenv.sh
- python setup.py develop
- pytest --cov=kaolin/ tests/
- tests/examples/run/test_classification.sh
- tests/examples/run/test_nmr.sh
- tests/examples/run/test_softras_examples.sh
- ci/pytest-linux.sh

test windows:
tags: [kaolin_windows]
stage: test
needs: ['build windows']
script:
- ci\test-windows.bat

0 comments on commit 8e99be5

Please sign in to comment.