-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: Massive reorganization (broken) * tests: Add basic povme tests * docs: add start * Fix docs title * Fix docs code color * Cleanup cli * Reorganize some files * Cleanup some test files * Move pocket_id test info * chore: fix mypy.ini * tests: fix * refactor: reorganize * refactor: start migration to pydantic * fix: get 4nss test running * refactor: modular writing on POVME * tests: Enable logging * tests: cleanup * refactor: fix pocket detection * Cleanup docs
- Loading branch information
1 parent
ab929dc
commit 0b51725
Showing
66 changed files
with
12,106 additions
and
5,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[tool.black] | ||
target-version = [ | ||
"py312", | ||
] | ||
line-length = 88 | ||
color = true | ||
exclude = "/(\n \\.git\n | \\.hg\n | \\.mypy_cache\n | \\.tox\n | \\.venv\n | _build\n | buck-out\n | build\n | dist\n | env\n | venv\n)/\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[run] | ||
branch = true | ||
source = tests | ||
|
||
[paths] | ||
source = povme | ||
|
||
[report] | ||
show_missing = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Check http://editorconfig.org for more information | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
end_of_line = lf | ||
|
||
[*.{py, pyi}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.bat] | ||
indent_style = tab | ||
end_of_line = crlf | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.{yml, yaml}] | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[LICENSE] | ||
insert_final_newline = false | ||
|
||
[*.{diff,patch}] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SCM syntax highlighting | ||
pixi.lock linguist-language=YAML linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Codecov workflow | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
name: codecov | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Install pixi | ||
uses: prefix-dev/[email protected] | ||
|
||
- name: Setup environment | ||
run: pixi install | ||
|
||
- name: Get test coverage | ||
run: pixi run tests | ||
|
||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
env_vars: OS,PYTHON | ||
fail_ci_if_error: true | ||
verbose: true | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Deploy documentation | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
name: docs | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install pixi | ||
uses: prefix-dev/[email protected] | ||
|
||
- name: Setup environment | ||
run: pixi install | ||
|
||
- name: Build documentation | ||
run: pixi run docs | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'public/' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pixi | ||
uses: prefix-dev/[email protected] | ||
|
||
- name: Setup environment | ||
run: pixi install | ||
|
||
- name: Run tests | ||
run: pixi run tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
*.pyc | ||
.DS_Store | ||
|
||
# pixi environments | ||
.pixi | ||
*.egg-info | ||
|
||
# Documentation | ||
api | ||
public | ||
|
||
__pycache__ | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[settings] | ||
py_version = 312 | ||
line_length = 88 | ||
known_typing = typing,types,typing_extensions,mypy,mypy_extensions | ||
sections = FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
profile = black | ||
include_trailing_comma = true | ||
multi_line_output = 3 | ||
indent = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml | ||
MD007: | ||
indent: 4 | ||
MD013: false | ||
MD022: false | ||
MD024: false | ||
MD026: false | ||
MD028: false | ||
MD030: | ||
ol_multi: 2 | ||
ol_single: 2 | ||
ul_multi: 3 | ||
ul_single: 3 | ||
MD031: false | ||
MD032: false | ||
MD033: false | ||
MD036: false | ||
MD038: false | ||
MD041: false | ||
MD046: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[mypy] | ||
python_version = 3.12 | ||
pretty = true | ||
show_traceback = true | ||
color_output = true | ||
allow_redefinition = false | ||
check_untyped_defs = true | ||
disallow_any_generics = true | ||
disallow_incomplete_defs = true | ||
ignore_missing_imports = true | ||
implicit_reexport = false | ||
no_implicit_optional = true | ||
show_column_numbers = true | ||
show_error_codes = true | ||
show_error_context = true | ||
strict_equality = true | ||
strict_optional = true | ||
warn_no_return = true | ||
warn_redundant_casts = true | ||
warn_return_any = true | ||
warn_unreachable = true | ||
warn_unused_configs = true | ||
warn_unused_ignores = true | ||
exclude = (?x)(^public/*$) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[pytest] | ||
norecursedirs = | ||
povme | ||
*.egg | ||
.eggs | ||
dist | ||
build | ||
docs | ||
.tox | ||
.git | ||
__pycache__ | ||
doctest_optionflags = | ||
NUMBER | ||
NORMALIZE_WHITESPACE | ||
IGNORE_EXCEPTION_DETAIL | ||
addopts = | ||
--strict-markers | ||
--tb=short | ||
--doctest-modules | ||
--doctest-continue-on-failure | ||
--maxfail=2 -rf | ||
testpaths = tests | ||
pythonpaths = ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
target-version = "py312" | ||
line-length = 88 | ||
indent-width = 4 | ||
exclude = [ | ||
".git", | ||
".hg", | ||
".mypy_cache", | ||
".tox", | ||
".venv", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"env", | ||
"venv", | ||
] | ||
|
||
[format] | ||
quote-style = "double" | ||
indent-style = "space" | ||
skip-magic-trailing-comma = false | ||
docstring-code-format = true | ||
docstring-code-line-length = "dynamic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.