Skip to content

Commit c6170db

Browse files
authored
Merge pull request #13 from rambo/poetry
Use poetry for package management
2 parents 3bb7205 + a8e080c commit c6170db

40 files changed

Lines changed: 1695 additions & 192 deletions

.bumpversion.cfg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[bumpversion]
2+
current_version = 2.2.0
3+
commit = False
4+
tag = False
5+
6+
[bumpversion:file:pyproject.toml]
7+
search = version = "{current_version}"
8+
replace = version = "{new_version}"
9+
10+
[bumpversion:file:src/scpi/__init__.py]
11+
search = __version__ = "{current_version}"
12+
replace = __version__ = "{new_version}"
13+
14+
[bumpversion:file:tests/test_scpi.py]
15+
search = __version__ == "{current_version}"
16+
replace = __version__ == "{new_version}"

.dockerignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# General good ideas to ignore
2+
.idea
3+
.git
4+
.cache
5+
.venv
6+
7+
# docker build files (so just changing them does not invalidate *all* caches)
8+
.dockerignore
9+
Dockerfile
10+
11+
# Byte-compiled / optimized / DLL files
12+
**/__pycache__/
13+
**/*.py[cod]
14+
**/*$py.class
15+
16+
# Distribution / packaging
17+
**/.Python
18+
**/build/
19+
**/develop-eggs/
20+
**/dist/
21+
**/downloads/
22+
**/eggs/
23+
**/.eggs/
24+
**/lib/
25+
**/lib64/
26+
**/parts/
27+
**/sdist/
28+
**/var/
29+
**/wheels/
30+
**/pip-wheel-metadata/
31+
**/share/python-wheels/
32+
**/*.egg-info/
33+
**/.installed.cfg
34+
**/*.egg
35+
36+
# Unit test / coverage reports
37+
**/htmlcov/
38+
**/.tox/
39+
**/.nox/
40+
**/.coverage
41+
**/.coverage.*
42+
**/.cache
43+
**/nosetests.xml
44+
**/coverage.xml
45+
**/*.cover
46+
**/*.py,cover
47+
**/.hypothesis/
48+
**/.pytest_cache/
49+
50+
# mypy
51+
**/.mypy_cache/
52+
**/.dmypy.json
53+
**/dmypy.json

.flake8

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[flake8]
22
max-line-length = 120
3-

.gitignore

Lines changed: 117 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,135 @@
1+
# IDE settings
12
.idea
2-
MANIFEST
3-
.DS_Store
4-
._*
3+
4+
# ci artefacts
5+
pytest*.xml
6+
7+
# Byte-compiled / optimized / DLL files
8+
__pycache__/
59
*.py[cod]
10+
*$py.class
611

712
# C extensions
813
*.so
914

10-
# Packages
11-
*.egg
12-
*.egg-info
13-
dist
14-
build
15-
eggs
16-
parts
17-
bin
18-
var
19-
sdist
20-
develop-eggs
15+
# Distribution / packaging
16+
.Python
17+
build/
18+
develop-eggs/
19+
dist/
20+
downloads/
21+
eggs/
22+
.eggs/
23+
lib/
24+
lib64/
25+
parts/
26+
sdist/
27+
var/
28+
wheels/
29+
pip-wheel-metadata/
30+
share/python-wheels/
31+
*.egg-info/
2132
.installed.cfg
22-
lib
23-
lib64
24-
__pycache__
33+
*.egg
34+
MANIFEST
35+
36+
# PyInstaller
37+
# Usually these files are written by a python script from a template
38+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
39+
*.manifest
40+
*.spec
2541

2642
# Installer logs
2743
pip-log.txt
44+
pip-delete-this-directory.txt
2845

2946
# Unit test / coverage reports
47+
htmlcov/
48+
.tox/
49+
.nox/
3050
.coverage
31-
.tox
51+
.coverage.*
52+
.cache
3253
nosetests.xml
54+
coverage.xml
55+
*.cover
56+
*.py,cover
57+
.hypothesis/
58+
.pytest_cache/
3359

3460
# Translations
3561
*.mo
62+
*.pot
63+
64+
# Django stuff:
65+
*.log
66+
local_settings.py
67+
db.sqlite3
68+
db.sqlite3-journal
69+
70+
# Flask stuff:
71+
instance/
72+
.webassets-cache
73+
74+
# Scrapy stuff:
75+
.scrapy
76+
77+
# Sphinx documentation
78+
docs/_build/
79+
80+
# PyBuilder
81+
target/
82+
83+
# Jupyter Notebook
84+
.ipynb_checkpoints
85+
86+
# IPython
87+
profile_default/
88+
ipython_config.py
89+
90+
# pyenv
91+
.python-version
92+
93+
# pipenv
94+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
96+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
97+
# install all needed dependencies.
98+
#Pipfile.lock
99+
100+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
101+
__pypackages__/
102+
103+
# Celery stuff
104+
celerybeat-schedule
105+
celerybeat.pid
106+
107+
# SageMath parsed files
108+
*.sage.py
109+
110+
# Environments
111+
.env
112+
.venv
113+
env/
114+
venv/
115+
ENV/
116+
env.bak/
117+
venv.bak/
118+
119+
# Spyder project settings
120+
.spyderproject
121+
.spyproject
122+
123+
# Rope project settings
124+
.ropeproject
125+
126+
# mkdocs documentation
127+
/site
128+
129+
# mypy
130+
.mypy_cache/
131+
.dmypy.json
132+
dmypy.json
36133

37-
# Mr Developer
38-
.mr.developer.cfg
39-
.project
40-
.pydevproject
41-
/venv*/
134+
# Pyre type checker
135+
.pyre/

.pre-commit-config.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
default_language_version:
4+
python: python3.7
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v2.4.0
8+
hooks:
9+
- id: no-commit-to-branch
10+
- id: check-executables-have-shebangs
11+
- id: check-ast
12+
- id: check-toml
13+
- id: trailing-whitespace
14+
- id: end-of-file-fixer
15+
- id: check-yaml
16+
- id: check-added-large-files
17+
- id: check-case-conflict
18+
- id: check-json
19+
- id: check-merge-conflict
20+
- id: check-symlinks
21+
- id: pretty-format-json
22+
args:
23+
- --autofix
24+
- repo: https://github.com/psf/black
25+
rev: 20.8b1
26+
hooks:
27+
- id: black
28+
language_version: python3.7
29+
#- repo: https://github.com/pre-commit/mirrors-mypy
30+
# rev: v0.800
31+
# hooks:
32+
# - id: mypy
33+
# language: system
34+
# args: [--strict] #, --ignore-missing-imports]
35+
#- repo: https://github.com/pre-commit/mirrors-pylint
36+
# rev: v2.4.4
37+
# hooks:
38+
# - id: pylint
39+
# language: system
40+
- repo: https://github.com/Lucas-C/pre-commit-hooks
41+
rev: v1.1.7
42+
hooks:
43+
- id: forbid-crlf
44+
- id: remove-crlf
45+
- id: forbid-tabs
46+
- id: remove-tabs
47+
- repo: https://github.com/PyCQA/bandit
48+
rev: 1.6.2
49+
hooks:
50+
- id: bandit
51+
args: ["--skip=B101"]
52+
- repo: git://github.com/Lucas-C/pre-commit-hooks-markup
53+
rev: v1.0.0
54+
hooks:
55+
- id: rst-linter
56+
- repo: https://github.com/Yelp/detect-secrets
57+
rev: v1.0.3
58+
hooks:
59+
- id: detect-secrets
60+
language: system
61+
exclude: "poetry.lock"
62+
# args: ['--baseline', '.secrets.baseline']

0 commit comments

Comments
 (0)