Skip to content

Commit 52dd681

Browse files
committed
Initial public release
0 parents  commit 52dd681

77 files changed

Lines changed: 8277 additions & 0 deletions

Some content is hidden

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

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-FileCopyrightText: 2023 Gert van Dijk
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
/.coverage
6+
/.direnv
7+
/.git
8+
/.mypy_cache
9+
/.pytest_cache
10+
/.pytest-cov
11+
/.reuse
12+
/.ruff_cache
13+
/.vscode
14+
/dist

.envrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2023 Gert van Dijk <github@gertvandijk.nl>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
layout python python3.10

.flake8

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-FileCopyrightText: 2023 Gert van Dijk <github@gertvandijk.nl>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
# Flake8 does not support reading from pyproject.toml files.
6+
# https://github.com/PyCQA/flake8/issues/234
7+
8+
[flake8]
9+
# Match black's default
10+
max-line-length = 88
11+
extend-exclude =
12+
*.egg-info/,
13+
./.mypy_cache,
14+
./.pytest_cache,
15+
./build,
16+
./dist,
17+
./.direnv

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-FileCopyrightText: 2023 Gert van Dijk <github@gertvandijk.nl>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
*.egg-info/
6+
__pycache__/
7+
/.pytest_cache
8+
/build
9+
/dist
10+
/.direnv
11+
/.coverage
12+
/.pytest-cov

.vscode/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2023 Gert van Dijk <github@gertvandijk.nl>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
/*.log

.vscode/extensions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
"cameron.vscode-pytest",
4+
"charliermarsh.ruff",
5+
"exiasr.hadolint",
6+
"ms-python.isort",
7+
"ms-python.python",
8+
"ms-python.vscode-pylance",
9+
"ryanluker.vscode-coverage-gutters",
10+
"timonwong.shellcheck",
11+
]
12+
}

.vscode/extensions.json.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2023 Gert van Dijk <github@gertvandijk.nl>
2+
3+
SPDX-License-Identifier: CC0-1.0

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
// Overriding default Python debug test launcher command to disable coverage
6+
// (via env var below), because coverage reporting interferes with the
7+
// debugger.
8+
// https://code.visualstudio.com/docs/python/testing#_pytest-configuration-settings
9+
"name": "Python: Debug Tests",
10+
"type": "python",
11+
"request": "launch",
12+
"program": "${file}",
13+
"env": {
14+
"PYTEST_ADDOPTS": "--no-cov",
15+
},
16+
"purpose": [
17+
"debug-test",
18+
],
19+
"console": "integratedTerminal",
20+
"justMyCode": false,
21+
}
22+
]
23+
}

.vscode/launch.json.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2023 Gert van Dijk <github@gertvandijk.nl>
2+
3+
SPDX-License-Identifier: CC0-1.0

.vscode/settings.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"files.associations": {
3+
".dockerignore": "ignore", // auto-interprets wrongly as Python somehow
4+
},
5+
"files.exclude": {
6+
".coverage": true,
7+
".direnv/": true,
8+
".pytest_cache/": true,
9+
".pytest-cov/": true,
10+
".ruff_cache/": true,
11+
"**/__pycache__/": true,
12+
"**/.mypy_cache/": true,
13+
"**/*.egg-info/": true,
14+
"dist/": true,
15+
},
16+
"files.insertFinalNewline": true,
17+
"python.linting.mypyEnabled": true,
18+
"python.linting.enabled": true,
19+
"python.analysis.diagnosticMode": "workspace",
20+
"python.analysis.indexing": true,
21+
"python.analysis.typeCheckingMode": "strict",
22+
"python.formatting.provider": "black",
23+
"editor.rulers": [
24+
88, // black's default
25+
],
26+
// https://github.com/microsoft/vscode-isort#import-sorting-on-save
27+
"[python]": {
28+
"editor.codeActionsOnSave": {
29+
"source.organizeImports": true,
30+
}
31+
},
32+
// for the 'ms-python.isort' extension.
33+
// keep in sync with /run-all-linters script.
34+
"isort.args": [
35+
"--profile",
36+
"black",
37+
],
38+
// Enable to run black+isort on every (manual) save, perhaps in user-level settings.
39+
// "editor.formatOnSave": true,
40+
"python.testing.pytestEnabled": true,
41+
// For Pytest IntelliSense
42+
// https://marketplace.visualstudio.com/items?itemName=Cameron.vscode-pytest
43+
"pytest.command": "\"${command:python.interpreterPath}\" -m pytest",
44+
"coverage-gutters.coverageFileNames": [
45+
"coverage.xml",
46+
],
47+
"coverage-gutters.coverageBaseDir": ".pytest-cov",
48+
"coverage-gutters.coverageReportFileName": "html/index.html",
49+
"shellcheck.executablePath": "shellcheck",
50+
"shellcheck.useWorkspaceRootAsCwd": true,
51+
// for the 'timonwong.shellcheck' extension.
52+
// keep in sync with /run-all-linters script.
53+
"shellcheck.customArgs": [
54+
"--norc",
55+
],
56+
}

0 commit comments

Comments
 (0)