Skip to content

Commit fcd4087

Browse files
committed
init repo
1 parent fbb87fd commit fcd4087

File tree

117 files changed

+18832
-0
lines changed

Some content is hidden

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

117 files changed

+18832
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Label the issue**
14+
Please label the 'severity' and 'urgency' of this issue. You can choose:
15+
16+
`urgency_high` - This is a very urgent issue and should be resolved as soon as possible
17+
18+
`urgency_moderate` - This is a moderately urgent issue
19+
20+
`urgency_low` - This issue is not urgent
21+
22+
`severity_major` - This is a severe bug
23+
24+
`severity_moderate` - This is a moderately severe bug
25+
26+
`severity_minor` - This is a minor bug with minimal impact
27+
28+
**To Reproduce**
29+
Steps to reproduce the behavior:
30+
1. Go to '...'
31+
2. Click on '....'
32+
3. Scroll down to '....'
33+
4. See error
34+
35+
**Expected behavior**
36+
A clear and concise description of what you expected to happen.
37+
38+
**Screenshots**
39+
If applicable, add screenshots to help explain your problem.
40+
41+
**Versioning (please complete the following information):**
42+
- OS: [e.g. Ubuntu 18.04]
43+
- COMPAS [e.g. v02.09.02]
44+
45+
**Additional context**
46+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# workflow_run:
8+
# workflows: ['COMPAS compile test']
9+
# types:
10+
# - completed
11+
12+
13+
jobs:
14+
15+
release:
16+
runs-on: ubuntu-latest
17+
concurrency: release
18+
permissions:
19+
id-token: write
20+
contents: write
21+
22+
steps:
23+
- uses: actions/checkout@v4.2.2
24+
with:
25+
fetch-depth: 0
26+
ref: main
27+
28+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.9'
31+
cache: 'pip' # Enable caching for pip dependencies
32+
33+
34+
- name: Semantic Version Release
35+
id: release
36+
# Adjust tag with desired version if applicable.
37+
uses: python-semantic-release/python-semantic-release@v9.12.0
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
git_committer_name: "github-actions"
41+
git_committer_email: "actions@users.noreply.github.com"
42+
43+
44+
- name: build dist for pypi
45+
if: steps.release.outputs.released == 'true'
46+
run: |
47+
python -m pip install --upgrade build
48+
python -m build --sdist --wheel --outdir dist/
49+
50+
- name: pypi-publish
51+
if: steps.release.outputs.released == 'true'
52+
uses: pypa/gh-action-pypi-publish@v1.12.3

.gitignore

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
out_test
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
31+
*_version.py
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.nox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*.cover
53+
*.py,cover
54+
.hypothesis/
55+
.pytest_cache/
56+
cover/
57+
58+
# Translations
59+
*.mo
60+
*.pot
61+
62+
# Django stuff:
63+
*.log
64+
local_settings.py
65+
db.sqlite3
66+
db.sqlite3-journal
67+
68+
# Flask stuff:
69+
instance/
70+
.webassets-cache
71+
72+
# Scrapy stuff:
73+
.scrapy
74+
75+
# Sphinx documentation
76+
docs/_build/
77+
78+
# PyBuilder
79+
.pybuilder/
80+
target/
81+
82+
# Jupyter Notebook
83+
.ipynb_checkpoints
84+
85+
# IPython
86+
profile_default/
87+
ipython_config.py
88+
89+
# pyenv
90+
# For a library or package, you might want to ignore these files since the code is
91+
# intended to run in multiple environments; otherwise, check them in:
92+
# .python-version
93+
94+
# pipenv
95+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
97+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
98+
# install all needed dependencies.
99+
#Pipfile.lock
100+
101+
# poetry
102+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
103+
# This is especially recommended for binary packages to ensure reproducibility, and is more
104+
# commonly ignored for libraries.
105+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
106+
#poetry.lock
107+
108+
# pdm
109+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
110+
#pdm.lock
111+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
112+
# in version control.
113+
# https://pdm.fming.dev/#use-with-ide
114+
.pdm.toml
115+
116+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
117+
__pypackages__/
118+
119+
# Celery stuff
120+
celerybeat-schedule
121+
celerybeat.pid
122+
123+
# SageMath parsed files
124+
*.sage.py
125+
126+
# Environments
127+
.env
128+
.venv
129+
env/
130+
venv/
131+
ENV/
132+
env.bak/
133+
venv.bak/
134+
135+
# Spyder project settings
136+
.spyderproject
137+
.spyproject
138+
139+
# Rope project settings
140+
.ropeproject
141+
142+
# mkdocs documentation
143+
/site
144+
145+
# mypy
146+
.mypy_cache/
147+
.dmypy.json
148+
dmypy.json
149+
150+
# Pyre type checker
151+
.pyre/
152+
153+
# pytype static type analyzer
154+
.pytype/
155+
156+
# Cython debug symbols
157+
cython_debug/
158+
159+
# PyCharm
160+
.idea/
161+
/src/acquisition_plotting/_version.py

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: 22.3.0
4+
hooks:
5+
- id: black
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v2.0.0
8+
hooks:
9+
- id: flake8
10+
- id: requirements-txt-fixer
11+
- id: trailing-whitespace
12+
- repo: https://github.com/pre-commit/mirrors-isort
13+
rev: v5.10.1
14+
hooks:
15+
- id: isort

compas_python_utils/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
__all__ = []
3+
4+
__author__ = "Team COMPAS"
5+
__email__ = "compas email"
6+
__uri__ = "https://github.com/TeamCOMPAS/COMPAS"
7+
__license__ = "MIT"
8+
__description__ = "COMPAS"
9+
__copyright__ = "Copyright 2022 COMPAS developers"
10+
__contributors__ = "https://github.com/TeamCOMPAS/COMPAS/graphs/contributors"
11+
__version__ = "0.0.1"

0 commit comments

Comments
 (0)