Skip to content

Commit

Permalink
processing file to change point clouds to 2 classes, street lights an…
Browse files Browse the repository at this point in the history
…d the rest. + addition of everything needed for the cookiecutter
  • Loading branch information
adamvln committed Mar 20, 2024
1 parent 93976f2 commit 83fafaa
Show file tree
Hide file tree
Showing 11 changed files with 772 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[flake8]
exclude =
.git,
.github,
.idea,
env/*,
venv/*,
__pycache__,
*/.ipynb_checkpoints/*

extend-ignore =
# D103 Missing docstring in public function
D103,
# D07 Missing docstring in __init__
D107
# D205 1 blank line required between summary line and description
D205,
# D400 First line should end with a period
D400,
# D401 First line should be in imperative mood
D401

# Example of excluding errors per file
#per-file-ignores = __init__.py:F401

max-complexity = 8
max-line-length = 99
statistics=True
26 changes: 26 additions & 0 deletions .flake8_nb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[flake8_nb]
exclude =
.git,
env/*,
venv/*,
__pycache__,
*/.ipynb_checkpoints/*
*.py

extend-ignore =
# D100 Missing docstring in public module
D100,
# D103 Missing docstring in public function
D103,
# D07 Missing docstring in __init__
D107
# D205 1 blank line required between summary line and description
D205,
# D400 First line should end with a period
D400,
# D401 First line should be in imperative mood
D401

max-complexity = 8
max-line-length = 99
statistics=True
32 changes: 32 additions & 0 deletions .github/workflows/flake_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Install Python packages and flake all

on:
push:
pull_request:


jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8 flake8-bugbear flake8-comprehensions flake8-docstrings flake8-fixme mccabe pep8-naming
- name: flake
run: |
flake8
221 changes: 221 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
# Adapt to your needs. This version includes typical data files we work with, along with the default python template.

# Text / html
*.csv
*.txt
*.html

# Geo data
*.gml
*.shp
*.cpg
*.dbf
*.shx
*.prj
*.gpkg
*.tfw
*.TIF
*.tif

# Pointcloud data
*.laz
*.las
*.LAZ
*.ply

# Images
*.png
*.jpg
*.bmp

# Numpy compressed
*.npz

# QGIS projects
*.qgz

# Mac OS
*.DS_Store


### Default .gitignore for python ###
# see https://github.com/github/gitignore/blob/main/Python.gitignore

# 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/
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
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# 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
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .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

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

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

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

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

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# AzureML
*.amlignore
*.amltmp
*.ipynb_aml_checkpoints

Data/
test_results/
log/jobs_outputs/
wandb/

data/

/dataset/full_pc
/dataset/bb_pc
dataset/blend_files
dataset/dae
dataset/point_clouds
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args:
- "--line-length=99"
- repo: https://github.com/s-weigand/flake8-nb
rev: v0.5.3
hooks:
- id: flake8-nb
additional_dependencies: [
'flake8-bugbear',
'flake8-comprehensions',
'flake8-docstrings',
'flake8-fixme',
'mccabe',
'pep8-naming',
]
- repo: https://github.com/PYCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [
'flake8-bugbear==23.3.23',
'flake8-comprehensions==3.12.0',
'flake8-docstrings==1.7.0',
'flake8-fixme==1.1.1',
'flake8-string-format==0.3.0',
'mccabe==0.7.0',
'pep8-naming==0.13.3',
]
default_language_version:
python: python3.9
Loading

0 comments on commit 83fafaa

Please sign in to comment.