Skip to content

Commit b003038

Browse files
committed
Initial Commit
0 parents  commit b003038

36 files changed

+4039
-0
lines changed

.ci/before.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip3 install --upgrade git+https://github.com/bokeh/colorcet.git git+https://github.com/matplotlib/cmocean.git

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = tab
6+
indent_size = 4
7+
insert_final_newline = true
8+
end_of_line = lf
9+
10+
[*.{yml,yaml,ksy}]
11+
indent_style = space
12+
indent_size = 2

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.mdt filter=lfs diff=lfs merge=lfs -text
2+
*.png filter=lfs diff=lfs merge=lfs -text
3+
*.jpg filter=lfs diff=lfs merge=lfs -text
4+
*.pal filter=lfs diff=lfs merge=lfs -text
5+
*.256 filter=lfs diff=lfs merge=lfs -text

.github/.templateMarker

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
KOLANICH/python_project_boilerplate.py

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
allow:
8+
- dependency-type: "all"

.github/workflows/CI.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- name: typical python workflow
13+
uses: KOLANICH-GHActions/typical-python-workflow@master
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
__pycache__
2+
*.pyc
3+
*.pyo
4+
/*.egg-info
5+
/build
6+
/dist
7+
/.eggs
8+
/test_data
9+
/kaitai_struct_formats
10+
.ipynb_checkpoints

.gitlab-ci.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
image: registry.gitlab.com/kaitaistructcompile.py/kaitai_struct_python_docker:latest
2+
3+
stages:
4+
- build
5+
- test
6+
7+
variables:
8+
GIT_DEPTH: "1"
9+
DOCKER_DRIVER: overlay2
10+
SAST_ANALYZER_IMAGE_TAG: latest
11+
SAST_DISABLE_DIND: "true"
12+
SAST_CONFIDENCE_LEVEL: 5
13+
CODECLIMATE_VERSION: latest
14+
15+
include:
16+
- template: SAST.gitlab-ci.yml
17+
- template: Code-Quality.gitlab-ci.yml
18+
19+
20+
build:
21+
tags:
22+
- shared
23+
- linux
24+
25+
stage: build
26+
variables:
27+
GIT_DEPTH: "1"
28+
29+
before_script:
30+
- source ./.ci/before.sh
31+
32+
script:
33+
- python3 setup.py bdist_wheel
34+
- pip3 install --upgrade ./dist/*.whl
35+
- mkdir ./wheels
36+
- mv ./dist/*.whl ./wheels/NTMDTRead-0.CI-py3-none-any.whl
37+
#- coverage run -a --branch --source=NTMDTRead -m pytest --junitxml=./rspec.xml ./tests/test.py
38+
- coverage run -a --branch --source=NTMDTRead ./examples/matplotlibColorMapConvert.py
39+
- coverage report -m || true;
40+
- coverage xml
41+
42+
cache:
43+
paths:
44+
- /usr/local/site-packages
45+
- /usr/local/lib/python*/site-packages
46+
- kaitai_struct_formats
47+
48+
artifacts:
49+
paths:
50+
- wheels
51+
- palletes
52+
reports:
53+
junit: ./rspec.xml
54+
cobertura: ./coverage.xml

.reuse/dep5

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: gwyddion
3+
Upstream-Contact: David Necas (Yeti) <[email protected]>, Petr Klapetek <[email protected]>
4+
Source: https://sourceforge.net/p/gwyddion/code/HEAD/tree/trunk/gwyddion/modules/file/nt-mdt.c
5+
6+
Files: NTMDTRead/kaitai/nt_mdt.py
7+
Copyright: KOLANICH, 2017
8+
Copyright: 2004-2017 David Necas (Yeti), Petr Klapetek
9+
License: GPL-2.0-or-later
10+
11+
Files: NTMDTRead/NDimData.py NTMDTRead/NTMDTReader.py examples/show.py
12+
Copyright: KOLANICH, 2017
13+
License: GPL-3.0-or-later
14+
Disclaimer: Usage of GPL-3.0 is not considered to be an approval of so called "intellectual property" system. It must be abolished. GPL is upgraded because GPL 3.0 feels better, and if have to use GPL (evil by itself) at all, let's try to extract as much good from this necessary evil as possible. Tivoization is evil.
15+
16+
Files: .ci .github NTMDTRead/utils NTMDTRead/palettes .gitignore .gitattributes .editorconfig .gitmodules ReadMe.md Code_Of_Conduct.md .gitlab-ci.yml pyproject.toml setup.py setup.cfg NTMDTRead/kaitai/nt_mdt_256.py NTMDTRead/kaitai/nt_mdt_color_table.py NTMDTRead/kaitai/nt_mdt_pal.py examples/matplotlibColorMapConvert.py NTMDTRead/kaitaiParseBase.py NTMDTRead/kaitai/ieee754_float.py NTMDTRead/kaitai/f10le.py NTMDTRead/colors.py NTMDTRead/NTMDTReaderTSV.py NTMDTRead/NT-MDTFileSchema.ini
17+
Copyright: KOLANICH
18+
License: Unlicense

0 commit comments

Comments
 (0)