plothist-utils 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. plothist_utils-0.0.1/.github/release.yaml +5 -0
  2. plothist_utils-0.0.1/.github/workflows/cd.yaml +52 -0
  3. plothist_utils-0.0.1/.github/workflows/ci.yaml +36 -0
  4. plothist_utils-0.0.1/.github/workflows/pr.yaml +21 -0
  5. plothist_utils-0.0.1/.gitignore +9 -0
  6. plothist_utils-0.0.1/.pre-commit-config.yaml +61 -0
  7. plothist_utils-0.0.1/AUTHORS.md +2 -0
  8. plothist_utils-0.0.1/LICENSE +28 -0
  9. plothist_utils-0.0.1/PKG-INFO +45 -0
  10. plothist_utils-0.0.1/README.md +31 -0
  11. plothist_utils-0.0.1/noxfile.py +29 -0
  12. plothist_utils-0.0.1/pyproject.toml +67 -0
  13. plothist_utils-0.0.1/src/plothist_utils/__init__.py +6 -0
  14. plothist_utils-0.0.1/src/plothist_utils/_version.py +21 -0
  15. plothist_utils-0.0.1/src/plothist_utils/_version.pyi +2 -0
  16. plothist_utils-0.0.1/src/plothist_utils/data/dummy_data.csv +100001 -0
  17. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernmath/LICENSE_LMMath +28 -0
  18. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernmath/latinmodern-math.otf +0 -0
  19. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/LICENSE_LMRoman +28 -0
  20. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman10-bold.otf +0 -0
  21. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman10-bolditalic.otf +0 -0
  22. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman10-italic.otf +0 -0
  23. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman10-regular.otf +0 -0
  24. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman12-bold.otf +0 -0
  25. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman12-italic.otf +0 -0
  26. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman12-regular.otf +0 -0
  27. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman17-regular.otf +0 -0
  28. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman5-bold.otf +0 -0
  29. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman5-regular.otf +0 -0
  30. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman6-bold.otf +0 -0
  31. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman6-regular.otf +0 -0
  32. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman7-bold.otf +0 -0
  33. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman7-italic.otf +0 -0
  34. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman7-regular.otf +0 -0
  35. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman8-bold.otf +0 -0
  36. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman8-italic.otf +0 -0
  37. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman8-regular.otf +0 -0
  38. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman9-bold.otf +0 -0
  39. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman9-italic.otf +0 -0
  40. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmroman9-regular.otf +0 -0
  41. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromancaps10-oblique.otf +0 -0
  42. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromancaps10-regular.otf +0 -0
  43. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromandemi10-oblique.otf +0 -0
  44. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromandemi10-regular.otf +0 -0
  45. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromandunh10-oblique.otf +0 -0
  46. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromandunh10-regular.otf +0 -0
  47. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromanslant10-bold.otf +0 -0
  48. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromanslant10-regular.otf +0 -0
  49. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromanslant12-regular.otf +0 -0
  50. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromanslant17-regular.otf +0 -0
  51. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromanslant8-regular.otf +0 -0
  52. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromanslant9-regular.otf +0 -0
  53. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernroman/lmromanunsl10-regular.otf +0 -0
  54. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/LICENSE_LMSans +28 -0
  55. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans10-bold.otf +0 -0
  56. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans10-boldoblique.otf +0 -0
  57. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans10-oblique.otf +0 -0
  58. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans10-regular.otf +0 -0
  59. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans12-oblique.otf +0 -0
  60. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans12-regular.otf +0 -0
  61. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans17-oblique.otf +0 -0
  62. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans17-regular.otf +0 -0
  63. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans8-oblique.otf +0 -0
  64. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans8-regular.otf +0 -0
  65. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans9-oblique.otf +0 -0
  66. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsans9-regular.otf +0 -0
  67. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsansdemicond10-oblique.otf +0 -0
  68. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsansdemicond10-regular.otf +0 -0
  69. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-bold.otf +0 -0
  70. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-boldoblique.otf +0 -0
  71. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-oblique.otf +0 -0
  72. plothist_utils-0.0.1/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-regular.otf +0 -0
  73. plothist_utils-0.0.1/src/plothist_utils/get_dummy_data.py +19 -0
  74. plothist_utils-0.0.1/src/plothist_utils/metadata/.svg_metadata.yaml +4 -0
  75. plothist_utils-0.0.1/tests/test_fonts.py +33 -0
  76. plothist_utils-0.0.1/tests/test_get_data.py +33 -0
  77. plothist_utils-0.0.1/uv.lock +1125 -0
@@ -0,0 +1,5 @@
1
+ changelog:
2
+ exclude:
3
+ authors:
4
+ - dependabot
5
+ - pre-commit-ci
@@ -0,0 +1,52 @@
1
+ name: CD
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - main
8
+ release:
9
+ types:
10
+ - published
11
+
12
+ jobs:
13
+ build:
14
+ name: Build distribution 📦
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ persist-credentials: false
21
+ - name: Install uv and set the python version
22
+ uses: astral-sh/setup-uv@v5
23
+ with:
24
+ version: "0.6.8"
25
+ - name: Build distribution
26
+ run: uv build
27
+ - name: Store the distribution packages
28
+ uses: actions/upload-artifact@v4
29
+ with:
30
+ name: python-package-distributions
31
+ path: dist/
32
+
33
+ publish-to-pypi:
34
+ name: Publish Python 🐍 distribution 📦 to PyPI
35
+ if: github.event_name == 'release' && github.event.action == 'published'
36
+ needs:
37
+ - build
38
+ runs-on: ubuntu-latest
39
+ environment:
40
+ name: pypi
41
+ url: https://pypi.org/p/plothist_utils
42
+ permissions:
43
+ id-token: write
44
+
45
+ steps:
46
+ - name: Download all the dists
47
+ uses: actions/download-artifact@v4
48
+ with:
49
+ name: python-package-distributions
50
+ path: dist/
51
+ - name: Publish distribution 📦 to PyPI
52
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,36 @@
1
+ # This workflow will install Python dependencies, run tests with a variety of Python versions
2
+ name: CI
3
+
4
+ on:
5
+ push:
6
+ branches: ["main"]
7
+ pull_request:
8
+ branches: ["main"]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Install uv and set the python version
22
+ uses: astral-sh/setup-uv@v5
23
+ with:
24
+ version: "0.6.8"
25
+ python-version: ${{ matrix.python-version }}
26
+
27
+ - name: Install the project
28
+ run: uv sync --group dev --group test
29
+
30
+ - name: Run pre-commit
31
+ run: |
32
+ uv run pre-commit run --all-files
33
+
34
+ - name: Test with pytest
35
+ run: |
36
+ uv run python -m pytest
@@ -0,0 +1,21 @@
1
+ name: "Lint PR"
2
+
3
+ on:
4
+ pull_request_target:
5
+ types:
6
+ - opened
7
+ - edited
8
+ - synchronize
9
+ - reopened
10
+
11
+ permissions:
12
+ pull-requests: read
13
+
14
+ jobs:
15
+ main:
16
+ name: Validate PR title
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: amannn/action-semantic-pull-request@v5
20
+ env:
21
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,9 @@
1
+ __pycache__/
2
+ .vscode/
3
+ _build/
4
+ test/
5
+ metadata.yaml
6
+ .venv
7
+
8
+ # Version file
9
+ _version.py
@@ -0,0 +1,61 @@
1
+ ci:
2
+ autoupdate_commit_msg: "chore: update pre-commit hooks"
3
+ autofix_commit_msg: "style: pre-commit fixes"
4
+ autoupdate_schedule: monthly
5
+
6
+ repos:
7
+ - repo: https://github.com/pre-commit/pre-commit-hooks
8
+ rev: v5.0.0
9
+ hooks:
10
+ - id: check-case-conflict
11
+ - id: check-merge-conflict
12
+ - id: check-toml
13
+ - id: check-yaml
14
+ - id: debug-statements
15
+ - id: end-of-file-fixer
16
+ - id: mixed-line-ending
17
+ - id: trailing-whitespace
18
+ exclude: '.*\.svg$'
19
+ - id: name-tests-test
20
+ args: ["--pytest-test-first"]
21
+
22
+ - repo: https://github.com/astral-sh/ruff-pre-commit
23
+ rev: v0.11.2
24
+ hooks:
25
+ - id: ruff
26
+ args: ["--fix", "--show-fixes"]
27
+ - id: ruff-format
28
+
29
+ - repo: https://github.com/codespell-project/codespell
30
+ rev: v2.4.1
31
+ hooks:
32
+ - id: codespell
33
+ additional_dependencies:
34
+ - tomli
35
+
36
+ - repo: https://github.com/python-jsonschema/check-jsonschema
37
+ rev: 0.31.3
38
+ hooks:
39
+ - id: check-github-workflows
40
+ args: ["--verbose"]
41
+
42
+ - repo: https://github.com/pre-commit/mirrors-mypy
43
+ rev: v1.15.0
44
+ hooks:
45
+ - id: mypy
46
+ files: src
47
+ additional_dependencies:
48
+ - types-requests
49
+ - types-pyyaml
50
+
51
+ - repo: https://github.com/python-jsonschema/check-jsonschema
52
+ rev: 0.32.1
53
+ hooks:
54
+ - id: check-readthedocs
55
+ - id: check-dependabot
56
+ - id: check-github-workflows
57
+
58
+ - repo: https://github.com/henryiii/validate-pyproject-schema-store
59
+ rev: 2025.02.24
60
+ hooks:
61
+ - id: validate-pyproject
@@ -0,0 +1,2 @@
1
+ Cyrille Praz ([@cyrraz](https://github.com/cyrraz))
2
+ Tristan Fillinger ([@0ctagon](https://github.com/0ctagon))
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2023-2025, Cyrille Praz, Tristan Fillinger
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.4
2
+ Name: plothist_utils
3
+ Version: 0.0.1
4
+ Summary: Utilities for the plothist package
5
+ Project-URL: Homepage, https://github.com/0ctagon/plothist_utils
6
+ Project-URL: Documentation, https://plothist.readthedocs.io/
7
+ Project-URL: Bug Tracker, https://github.com/0ctagon/plothist_utils/issues
8
+ Author-email: Cyrille Praz <cyrraz.code@protonmail.com>, Tristan Fillinger <tristan.github@gmail.com>
9
+ License-File: AUTHORS.md
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.9
12
+ Requires-Dist: numpy>=1.14.5
13
+ Description-Content-Type: text/markdown
14
+
15
+ # plothist_utils
16
+ [![CI Status][ci-badge]][ci-link]
17
+ [![CD Status][cd-badge]][cd-link]
18
+ [![PyPI version][pypi-version]][pypi-link]
19
+ <!-- [![Conda-Forge][conda-badge]][conda-link] -->
20
+
21
+ Sub-package to hold the fonts and some data to make the examples of [plothist](https://github.com/cyrraz/plothist).
22
+
23
+ [ci-badge]: https://github.com/0ctagon/plothist_utils/actions/workflows/ci.yaml/badge.svg
24
+ [ci-link]: https://github.com/0ctagon/plothist_utils/actions/workflows/ci.yaml?query=branch%3Amain
25
+ [cd-badge]: https://github.com/0ctagon/plothist_utils/actions/workflows/cd.yaml/badge.svg
26
+ [cd-link]: https://github.com/0ctagon/plothist_utils/actions/workflows/cd.yaml?query=branch%3Amain
27
+ [pypi-link]: https://pypi.org/project/plothist_utils/
28
+ [pypi-version]: https://badge.fury.io/py/plothist_utils.svg
29
+
30
+
31
+ ## Fonts
32
+ Fonts distributed in this package have open licenses and can be redistributed. While it would be preferable to download the files from their original repositories, there is no convenient way to do that due to varying repo structures. The following fonts are included:
33
+
34
+
35
+ #### Latin Modern Math
36
+
37
+ https://mirrors.cicku.me/ctan/fonts/lm-math/
38
+
39
+ #### Latin Modern Roman
40
+
41
+ https://www.1001fonts.com/latin-modern-roman-font.html
42
+
43
+ #### Latin Modern Sans
44
+
45
+ https://www.1001fonts.com/latin-modern-sans-font.html
@@ -0,0 +1,31 @@
1
+ # plothist_utils
2
+ [![CI Status][ci-badge]][ci-link]
3
+ [![CD Status][cd-badge]][cd-link]
4
+ [![PyPI version][pypi-version]][pypi-link]
5
+ <!-- [![Conda-Forge][conda-badge]][conda-link] -->
6
+
7
+ Sub-package to hold the fonts and some data to make the examples of [plothist](https://github.com/cyrraz/plothist).
8
+
9
+ [ci-badge]: https://github.com/0ctagon/plothist_utils/actions/workflows/ci.yaml/badge.svg
10
+ [ci-link]: https://github.com/0ctagon/plothist_utils/actions/workflows/ci.yaml?query=branch%3Amain
11
+ [cd-badge]: https://github.com/0ctagon/plothist_utils/actions/workflows/cd.yaml/badge.svg
12
+ [cd-link]: https://github.com/0ctagon/plothist_utils/actions/workflows/cd.yaml?query=branch%3Amain
13
+ [pypi-link]: https://pypi.org/project/plothist_utils/
14
+ [pypi-version]: https://badge.fury.io/py/plothist_utils.svg
15
+
16
+
17
+ ## Fonts
18
+ Fonts distributed in this package have open licenses and can be redistributed. While it would be preferable to download the files from their original repositories, there is no convenient way to do that due to varying repo structures. The following fonts are included:
19
+
20
+
21
+ #### Latin Modern Math
22
+
23
+ https://mirrors.cicku.me/ctan/fonts/lm-math/
24
+
25
+ #### Latin Modern Roman
26
+
27
+ https://www.1001fonts.com/latin-modern-roman-font.html
28
+
29
+ #### Latin Modern Sans
30
+
31
+ https://www.1001fonts.com/latin-modern-sans-font.html
@@ -0,0 +1,29 @@
1
+ from __future__ import annotations
2
+
3
+ import nox
4
+
5
+ nox.options.sessions = ["lint", "tests"]
6
+ nox.needs_version = ">=2025.2.9"
7
+ nox.options.default_venv_backend = "uv|venv"
8
+
9
+ PYTHON_ALL_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
10
+
11
+
12
+ @nox.session(reuse_venv=True)
13
+ def lint(session: nox.Session) -> None:
14
+ """
15
+ Run the linter.
16
+ """
17
+ session.install("pre-commit")
18
+ session.run("pre-commit", "run", "--all-files", *session.posargs)
19
+
20
+
21
+ @nox.session(python=PYTHON_ALL_VERSIONS)
22
+ def tests(session: nox.Session) -> None:
23
+ """
24
+ Run the unit and regular tests.
25
+ """
26
+ pyproject = nox.project.load_toml("pyproject.toml")
27
+ session.install("-e", ".")
28
+ session.install(*nox.project.dependency_groups(pyproject, "test"))
29
+ session.run("pytest", *session.posargs)
@@ -0,0 +1,67 @@
1
+ [build-system]
2
+ requires = ["hatchling", "hatch-vcs"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "plothist_utils"
7
+ description = "Utilities for the plothist package"
8
+ authors = [
9
+ {name = "Cyrille Praz", email = "cyrraz.code@protonmail.com"},
10
+ {name = "Tristan Fillinger", email = "tristan.github@gmail.com"},
11
+ ]
12
+ readme = "README.md"
13
+ requires-python = ">=3.9"
14
+ dependencies = [
15
+ "numpy>=1.14.5",
16
+ ]
17
+ dynamic = ["version"]
18
+
19
+ [project.urls]
20
+ Homepage = "https://github.com/0ctagon/plothist_utils"
21
+ Documentation = "https://plothist.readthedocs.io/"
22
+ "Bug Tracker" = "https://github.com/0ctagon/plothist_utils/issues"
23
+
24
+ [tool.codespell]
25
+ skip = '*.pdf,./test/*,*.svg,./docs/html/*'
26
+ quiet-level = 3
27
+ write-changes = true
28
+
29
+ [dependency-groups]
30
+ dev = [
31
+ "pre-commit>=4.1.0",
32
+ ]
33
+ test = [
34
+ "pytest>=8.3.5",
35
+ "pytest-cov>=4.1.0",
36
+ "matplotlib>=3.0.0",
37
+ ]
38
+
39
+
40
+ [tool.hatch]
41
+ version.source = "vcs"
42
+ build.hooks.vcs.version-file = "src/plothist_utils/_version.py"
43
+
44
+ [tool.ruff.lint]
45
+ extend-select = [
46
+ "B", # flake8-bugbear
47
+ "I", # isort
48
+ "C4", # flake8-comprehensions
49
+ "ISC", # flake8-implicit-str-concat
50
+ "G", # flake8-logging-format
51
+ "PGH", # pygrep-hooks
52
+ "PIE", # flake8-pie
53
+ "RUF", # Ruff-specific
54
+ "UP", # pyupgrade
55
+ "YTT", # flake8-2020
56
+ "EXE", # flake8-executable
57
+ "NPY", # NumPy specific rules
58
+ "TID251", # flake8-tidy-imports
59
+ "SIM", # flake8-simplify
60
+ "RET", # flake8-return
61
+ "PD", # pandas-vet
62
+ ]
63
+ ignore = [
64
+ "E402", # module level import not at top of file
65
+ "NPY002", # Replace legacy `np.random` call with `np.random.Generator`
66
+ "PD901", # Avoid using the generic variable name `df` for DataFrames
67
+ ]
@@ -0,0 +1,6 @@
1
+ from __future__ import annotations
2
+
3
+ from ._version import version as __version__
4
+ from .get_dummy_data import get_dummy_data
5
+
6
+ __all__ = ("__version__", "get_dummy_data")
@@ -0,0 +1,21 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
6
+ TYPE_CHECKING = False
7
+ if TYPE_CHECKING:
8
+ from typing import Tuple
9
+ from typing import Union
10
+
11
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
12
+ else:
13
+ VERSION_TUPLE = object
14
+
15
+ version: str
16
+ __version__: str
17
+ __version_tuple__: VERSION_TUPLE
18
+ version_tuple: VERSION_TUPLE
19
+
20
+ __version__ = version = '0.0.1'
21
+ __version_tuple__ = version_tuple = (0, 0, 1)
@@ -0,0 +1,2 @@
1
+ version: str
2
+ version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]