devboard 0.0.0__tar.gz → 0.1.0__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 (71) hide show
  1. devboard-0.1.0/CHANGELOG.md +20 -0
  2. devboard-0.1.0/CODE_OF_CONDUCT.md +84 -0
  3. devboard-0.1.0/CONTRIBUTING.md +122 -0
  4. devboard-0.1.0/LICENSE +15 -0
  5. devboard-0.1.0/PKG-INFO +62 -0
  6. devboard-0.1.0/README.md +26 -0
  7. devboard-0.1.0/config/coverage.ini +25 -0
  8. devboard-0.1.0/config/git-changelog.toml +9 -0
  9. devboard-0.1.0/config/mypy.ini +5 -0
  10. devboard-0.1.0/config/pytest.ini +16 -0
  11. devboard-0.1.0/config/ruff.toml +91 -0
  12. devboard-0.1.0/config/vscode/launch.json +57 -0
  13. devboard-0.1.0/config/vscode/settings.json +33 -0
  14. devboard-0.1.0/config/vscode/tasks.json +97 -0
  15. devboard-0.1.0/docs/.overrides/main.html +14 -0
  16. devboard-0.1.0/docs/.overrides/partials/comments.html +57 -0
  17. devboard-0.1.0/docs/.overrides/partials/path-item.html +22 -0
  18. devboard-0.1.0/docs/changelog.md +5 -0
  19. devboard-0.1.0/docs/code_of_conduct.md +5 -0
  20. devboard-0.1.0/docs/contributing.md +5 -0
  21. devboard-0.1.0/docs/credits.md +9 -0
  22. devboard-0.1.0/docs/css/material.css +4 -0
  23. devboard-0.1.0/docs/css/mkdocstrings.css +72 -0
  24. devboard-0.1.0/docs/examples/columns/commit.py +25 -0
  25. devboard-0.1.0/docs/examples/columns/commit_pull.py +30 -0
  26. devboard-0.1.0/docs/examples/columns/commit_pull_push.py +35 -0
  27. devboard-0.1.0/docs/examples/columns/commit_pull_push_release.py +40 -0
  28. devboard-0.1.0/docs/examples/columns/notify.py +63 -0
  29. devboard-0.1.0/docs/examples/columns/pull.py +25 -0
  30. devboard-0.1.0/docs/examples/columns/push.py +25 -0
  31. devboard-0.1.0/docs/examples/columns/release.py +25 -0
  32. devboard-0.1.0/docs/examples/repositories.py +131 -0
  33. devboard-0.1.0/docs/examples/screenshot.py +51 -0
  34. devboard-0.1.0/docs/index.md +145 -0
  35. devboard-0.1.0/docs/js/feedback.js +14 -0
  36. devboard-0.1.0/docs/license.md +11 -0
  37. devboard-0.1.0/docs/reference/api.md +7 -0
  38. devboard-0.1.0/docs/tutorial.md +594 -0
  39. devboard-0.1.0/duties.py +209 -0
  40. devboard-0.1.0/mkdocs.yml +177 -0
  41. devboard-0.1.0/pyproject.toml +121 -0
  42. devboard-0.1.0/scripts/gen_credits.py +179 -0
  43. devboard-0.1.0/scripts/get_version.py +31 -0
  44. devboard-0.1.0/scripts/make +1 -0
  45. devboard-0.1.0/scripts/make.py +224 -0
  46. devboard-0.1.0/src/devboard/__init__.py +31 -0
  47. devboard-0.1.0/src/devboard/__main__.py +14 -0
  48. devboard-0.1.0/src/devboard/_internal/__init__.py +0 -0
  49. devboard-0.1.0/src/devboard/_internal/app.py +152 -0
  50. devboard-0.1.0/src/devboard/_internal/board.py +141 -0
  51. devboard-0.1.0/src/devboard/_internal/cli.py +65 -0
  52. devboard-0.1.0/src/devboard/_internal/datatable.py +228 -0
  53. devboard-0.1.0/src/devboard/_internal/debug.py +107 -0
  54. devboard-0.1.0/src/devboard/_internal/default_board.py +207 -0
  55. devboard-0.1.0/src/devboard/_internal/devboard.tcss +40 -0
  56. devboard-0.1.0/src/devboard/_internal/modal.py +45 -0
  57. devboard-0.1.0/src/devboard/_internal/notifications.py +24 -0
  58. devboard-0.1.0/src/devboard/_internal/projects.py +203 -0
  59. devboard-0.1.0/src/devboard/py.typed +0 -0
  60. devboard-0.1.0/tests/__init__.py +7 -0
  61. devboard-0.1.0/tests/conftest.py +1 -0
  62. devboard-0.1.0/tests/test_api.py +183 -0
  63. devboard-0.1.0/tests/test_cli.py +52 -0
  64. devboard-0.0.0/PKG-INFO +0 -15
  65. devboard-0.0.0/README.md +0 -6
  66. devboard-0.0.0/devboard.egg-info/PKG-INFO +0 -15
  67. devboard-0.0.0/devboard.egg-info/SOURCES.txt +0 -6
  68. devboard-0.0.0/devboard.egg-info/dependency_links.txt +0 -1
  69. devboard-0.0.0/devboard.egg-info/top_level.txt +0 -1
  70. devboard-0.0.0/pyproject.toml +0 -8
  71. devboard-0.0.0/setup.cfg +0 -4
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ <!-- insertion marker -->
9
+ ## [0.1.0](https://github.com/pawamoy/devboard/releases/tag/0.1.0) - 2025-11-08
10
+
11
+ <small>[Compare with first commit](https://github.com/pawamoy/devboard/compare/286120e957168a9162d5a8dc19c7dd72fb0a6d65...0.1.0)</small>
12
+
13
+ ### Features
14
+
15
+ - Release Insiders project to the public ([ce7aad4](https://github.com/pawamoy/devboard/commit/ce7aad4c6c2da3924aebcf143f3a0d1068573297) by Timothée Mazzucotelli).
16
+
17
+ ### Code Refactoring
18
+
19
+ - Update imports ([976e578](https://github.com/pawamoy/devboard/commit/976e57897d92431c60f510efbe6d8be5516747cd) by Timothée Mazzucotelli).
20
+ - Move submodules under internal folder ([9ec90e1](https://github.com/pawamoy/devboard/commit/9ec90e11392d86022213e7dc4cfcfd520fa7783c) by Timothée Mazzucotelli).
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ * Trolling, insulting or derogatory comments, and personal or political attacks
23
+ * Public or private harassment
24
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at dev@pawamoy.fr. All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+ ## Enforcement Guidelines
44
+
45
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+ ### 1. Correction
48
+
49
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+ ### 2. Warning
54
+
55
+ **Community Impact**: A violation through a single incident or series of actions.
56
+
57
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+ ### 3. Temporary Ban
60
+
61
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+ ### 4. Permanent Ban
66
+
67
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+ ## Attribution
72
+
73
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74
+
75
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76
+
77
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78
+
79
+ [homepage]: https://www.contributor-covenant.org
80
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81
+ [Mozilla CoC]: https://github.com/mozilla/diversity
82
+ [FAQ]: https://www.contributor-covenant.org/faq
83
+ [translations]: https://www.contributor-covenant.org/translations
84
+
@@ -0,0 +1,122 @@
1
+ # Contributing
2
+
3
+ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
4
+
5
+ ## Environment setup
6
+
7
+ Nothing easier!
8
+
9
+ Fork and clone the repository, then:
10
+
11
+ ```bash
12
+ cd devboard
13
+ make setup
14
+ ```
15
+
16
+ > NOTE: If it fails for some reason, you'll need to install [uv](https://github.com/astral-sh/uv) manually.
17
+ >
18
+ > You can install it with:
19
+ >
20
+ > ```bash
21
+ > curl -LsSf https://astral.sh/uv/install.sh | sh
22
+ > ```
23
+ >
24
+ > Now you can try running `make setup` again, or simply `uv sync`.
25
+
26
+ You now have the dependencies installed.
27
+
28
+ You can run the application with `make run devboard [ARGS...]`.
29
+
30
+ Run `make help` to see all the available actions!
31
+
32
+ ## Tasks
33
+
34
+ The entry-point to run commands and tasks is the `make` Python script, located in the `scripts` directory. Try running `make` to show the available commands and tasks. The *commands* do not need the Python dependencies to be installed,
35
+ while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
36
+
37
+ If you work in VSCode, we provide [an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup) for the project.
38
+
39
+ ## Development
40
+
41
+ As usual:
42
+
43
+ 1. create a new branch: `git switch -c feature-or-bugfix-name`
44
+ 1. edit the code and/or the documentation
45
+
46
+ **Before committing:**
47
+
48
+ 1. run `make format` to auto-format the code
49
+ 1. run `make check` to check everything (fix any warning)
50
+ 1. run `make test` to run the tests (fix any issue)
51
+ 1. if you updated the documentation or the project dependencies:
52
+ 1. run `make docs`
53
+ 1. go to http://localhost:8000 and check that everything looks good
54
+ 1. follow our [commit message convention](#commit-message-convention)
55
+
56
+ If you are unsure about how to fix or ignore a warning, just let the continuous integration fail, and we will help you during review.
57
+
58
+ Don't bother updating the changelog, we will take care of this.
59
+
60
+ ## Commit message convention
61
+
62
+ Commit messages must follow our convention based on the [Angular style](https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message) or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.html):
63
+
64
+ ```
65
+ <type>[(scope)]: Subject
66
+
67
+ [Body]
68
+ ```
69
+
70
+ **Subject and body must be valid Markdown.** Subject must have proper casing (uppercase for first letter if it makes sense), but no dot at the end, and no punctuation in general.
71
+
72
+ Scope and body are optional. Type can be:
73
+
74
+ - `build`: About packaging, building wheels, etc.
75
+ - `chore`: About packaging or repo/files management.
76
+ - `ci`: About Continuous Integration.
77
+ - `deps`: Dependencies update.
78
+ - `docs`: About documentation.
79
+ - `feat`: New feature.
80
+ - `fix`: Bug fix.
81
+ - `perf`: About performance.
82
+ - `refactor`: Changes that are not features or bug fixes.
83
+ - `style`: A change in code style/format.
84
+ - `tests`: About tests.
85
+
86
+ If you write a body, please add trailers at the end (for example issues and PR references, or co-authors), without relying on GitHub's flavored Markdown:
87
+
88
+ ```
89
+ Body.
90
+
91
+ Issue #10: https://github.com/namespace/project/issues/10
92
+ Related to PR namespace/other-project#15: https://github.com/namespace/other-project/pull/15
93
+ ```
94
+
95
+ These "trailers" must appear at the end of the body, without any blank lines between them. The trailer title can contain any character except colons `:`. We expect a full URI for each trailer, not just GitHub autolinks (for example, full GitHub URLs for commits and issues, not the hash or the #issue-number).
96
+
97
+ We do not enforce a line length on commit messages summary and body, but please avoid very long summaries, and very long lines in the body, unless they are part of code blocks that must not be wrapped.
98
+
99
+ ## Pull requests guidelines
100
+
101
+ Link to any related issue in the Pull Request message.
102
+
103
+ During the review, we recommend using fixups:
104
+
105
+ ```bash
106
+ # SHA is the SHA of the commit you want to fix
107
+ git commit --fixup=SHA
108
+ ```
109
+
110
+ Once all the changes are approved, you can squash your commits:
111
+
112
+ ```bash
113
+ git rebase -i --autosquash main
114
+ ```
115
+
116
+ And force-push:
117
+
118
+ ```bash
119
+ git push -f
120
+ ```
121
+
122
+ If this seems all too complicated, you can push or force-push each new commit, and we will squash them ourselves if needed, before merging.
devboard-0.1.0/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2023, Timothée Mazzucotelli
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: devboard
3
+ Version: 0.1.0
4
+ Summary: A development dashboard for your projects.
5
+ Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
6
+ License-Expression: ISC
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Topic :: Documentation
19
+ Classifier: Topic :: Software Development
20
+ Classifier: Topic :: Utilities
21
+ Classifier: Typing :: Typed
22
+ Project-URL: Homepage, https://pawamoy.github.io/devboard
23
+ Project-URL: Documentation, https://pawamoy.github.io/devboard
24
+ Project-URL: Changelog, https://pawamoy.github.io/devboard/changelog
25
+ Project-URL: Repository, https://github.com/pawamoy/devboard
26
+ Project-URL: Issues, https://github.com/pawamoy/devboard/issues
27
+ Project-URL: Discussions, https://github.com/pawamoy/devboard/discussions
28
+ Project-URL: Gitter, https://gitter.im/devboard/community
29
+ Project-URL: Funding, https://github.com/sponsors/pawamoy
30
+ Requires-Python: >=3.10
31
+ Requires-Dist: textual>=0.40
32
+ Requires-Dist: gitpython>=3.1
33
+ Requires-Dist: appdirs>=1.4.4
34
+ Requires-Dist: tomli>=2.0; python_version < "3.11"
35
+ Description-Content-Type: text/markdown
36
+
37
+ # Devboard
38
+
39
+ [![ci](https://github.com/pawamoy/devboard/workflows/ci/badge.svg)](https://github.com/pawamoy/devboard/actions?query=workflow%3Aci)
40
+ [![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://pawamoy.github.io/devboard/)
41
+ [![pypi version](https://img.shields.io/pypi/v/devboard.svg)](https://pypi.org/project/devboard/)
42
+ [![gitter](https://img.shields.io/badge/matrix-chat-4DB798.svg?style=flat)](https://app.gitter.im/#/room/#devboard:gitter.im)
43
+
44
+ A development dashboard for your projects.
45
+
46
+ ## Installation
47
+
48
+ ```bash
49
+ pip install devboard
50
+ ```
51
+
52
+ With [`uv`](https://docs.astral.sh/uv/):
53
+
54
+ ```bash
55
+ uv tool install devboard
56
+ ```
57
+
58
+ ## Sponsors
59
+
60
+ <!-- sponsors-start -->
61
+ <!-- sponsors-end -->
62
+
@@ -0,0 +1,26 @@
1
+ # Devboard
2
+
3
+ [![ci](https://github.com/pawamoy/devboard/workflows/ci/badge.svg)](https://github.com/pawamoy/devboard/actions?query=workflow%3Aci)
4
+ [![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://pawamoy.github.io/devboard/)
5
+ [![pypi version](https://img.shields.io/pypi/v/devboard.svg)](https://pypi.org/project/devboard/)
6
+ [![gitter](https://img.shields.io/badge/matrix-chat-4DB798.svg?style=flat)](https://app.gitter.im/#/room/#devboard:gitter.im)
7
+
8
+ A development dashboard for your projects.
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ pip install devboard
14
+ ```
15
+
16
+ With [`uv`](https://docs.astral.sh/uv/):
17
+
18
+ ```bash
19
+ uv tool install devboard
20
+ ```
21
+
22
+ ## Sponsors
23
+
24
+ <!-- sponsors-start -->
25
+ <!-- sponsors-end -->
26
+
@@ -0,0 +1,25 @@
1
+ [coverage:run]
2
+ branch = true
3
+ parallel = true
4
+ source =
5
+ src/
6
+ tests/
7
+
8
+ [coverage:paths]
9
+ equivalent =
10
+ src/
11
+ .venv/lib/*/site-packages/
12
+ .venvs/*/lib/*/site-packages/
13
+
14
+ [coverage:report]
15
+ precision = 2
16
+ omit =
17
+ src/*/__init__.py
18
+ src/*/__main__.py
19
+ tests/__init__.py
20
+ exclude_lines =
21
+ pragma: no cover
22
+ if TYPE_CHECKING
23
+
24
+ [coverage:json]
25
+ output = htmlcov/coverage.json
@@ -0,0 +1,9 @@
1
+ bump = "auto"
2
+ convention = "angular"
3
+ in-place = true
4
+ output = "CHANGELOG.md"
5
+ parse-refs = false
6
+ parse-trailers = true
7
+ sections = ["build", "deps", "feat", "fix", "refactor"]
8
+ template = "keepachangelog"
9
+ versioning = "pep440"
@@ -0,0 +1,5 @@
1
+ [mypy]
2
+ ignore_missing_imports = true
3
+ exclude = tests/fixtures/
4
+ warn_unused_ignores = true
5
+ show_error_codes = true
@@ -0,0 +1,16 @@
1
+ [pytest]
2
+ python_files =
3
+ test_*.py
4
+ addopts =
5
+ --cov
6
+ --cov-config config/coverage.ini
7
+ testpaths =
8
+ tests
9
+
10
+ # action:message_regex:warning_class:module_regex:line
11
+ filterwarnings =
12
+ error
13
+ default::EncodingWarning
14
+ error::EncodingWarning:devboard
15
+ # TODO: remove once pytest-xdist 4 is released
16
+ ignore:.*rsyncdir:DeprecationWarning:xdist
@@ -0,0 +1,91 @@
1
+ target-version = "py39"
2
+ line-length = 120
3
+
4
+ [lint]
5
+ exclude = [
6
+ "tests/fixtures/*.py",
7
+ ]
8
+ select = [
9
+ "A", "ANN", "ARG",
10
+ "B", "BLE",
11
+ "C", "C4",
12
+ "COM",
13
+ "D", "DTZ",
14
+ "E", "ERA", "EXE",
15
+ "F", "FBT",
16
+ "G",
17
+ "I", "ICN", "INP", "ISC",
18
+ "N",
19
+ "PGH", "PIE", "PL", "PLC", "PLE", "PLR", "PLW", "PT", "PYI",
20
+ "Q",
21
+ "RUF", "RSE", "RET",
22
+ "S", "SIM", "SLF",
23
+ "T", "T10", "T20", "TCH", "TID", "TRY",
24
+ "UP",
25
+ "W",
26
+ "YTT",
27
+ ]
28
+ ignore = [
29
+ "A001", # Variable is shadowing a Python builtin
30
+ "ANN101", # Missing type annotation for self
31
+ "ANN102", # Missing type annotation for cls
32
+ "ANN204", # Missing return type annotation for special method __str__
33
+ "ANN401", # Dynamically typed expressions (typing.Any) are disallowed
34
+ "ARG005", # Unused lambda argument
35
+ "C901", # Too complex
36
+ "D105", # Missing docstring in magic method
37
+ "D417", # Missing argument description in the docstring
38
+ "E501", # Line too long
39
+ "ERA001", # Commented out code
40
+ "G004", # Logging statement uses f-string
41
+ "PLR0911", # Too many return statements
42
+ "PLR0912", # Too many branches
43
+ "PLR0913", # Too many arguments to function call
44
+ "PLR0915", # Too many statements
45
+ "SLF001", # Private member accessed
46
+ "TRY003", # Avoid specifying long messages outside the exception class
47
+ ]
48
+
49
+ [lint.per-file-ignores]
50
+ "src/**/cli.py" = [
51
+ "T201", # Print statement
52
+ ]
53
+ "src/*/debug.py" = [
54
+ "T201", # Print statement
55
+ ]
56
+ "!src/*/*.py" = [
57
+ "D100", # Missing docstring in public module
58
+ ]
59
+ "!src/**.py" = [
60
+ "D101", # Missing docstring in public class
61
+ "D103", # Missing docstring in public function
62
+ ]
63
+ "scripts/*.py" = [
64
+ "INP001", # File is part of an implicit namespace package
65
+ "T201", # Print statement
66
+ ]
67
+ "tests/**.py" = [
68
+ "ARG005", # Unused lambda argument
69
+ "FBT001", # Boolean positional arg in function definition
70
+ "PLR2004", # Magic value used in comparison
71
+ "S101", # Use of assert detected
72
+ ]
73
+
74
+ [lint.flake8-quotes]
75
+ docstring-quotes = "double"
76
+
77
+ [lint.flake8-tidy-imports]
78
+ ban-relative-imports = "all"
79
+
80
+ [lint.isort]
81
+ known-first-party = ["devboard"]
82
+
83
+ [lint.pydocstyle]
84
+ convention = "google"
85
+
86
+ [format]
87
+ exclude = [
88
+ "tests/fixtures/*.py",
89
+ ]
90
+ docstring-code-format = true
91
+ docstring-code-line-length = 80
@@ -0,0 +1,57 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "python (current file)",
6
+ "type": "debugpy",
7
+ "request": "launch",
8
+ "program": "${file}",
9
+ "console": "integratedTerminal",
10
+ "justMyCode": false,
11
+ "args": "${command:pickArgs}"
12
+ },
13
+ {
14
+ "name": "run",
15
+ "type": "debugpy",
16
+ "request": "launch",
17
+ "module": "devboard",
18
+ "console": "integratedTerminal",
19
+ "justMyCode": false,
20
+ "args": "${command:pickArgs}"
21
+ },
22
+ {
23
+ "name": "docs",
24
+ "type": "debugpy",
25
+ "request": "launch",
26
+ "module": "mkdocs",
27
+ "justMyCode": false,
28
+ "args": [
29
+ "serve",
30
+ "-v"
31
+ ]
32
+ },
33
+ {
34
+ "name": "test",
35
+ "type": "debugpy",
36
+ "request": "launch",
37
+ "module": "pytest",
38
+ "justMyCode": false,
39
+ "args": [
40
+ "-c=config/pytest.ini",
41
+ "-vvv",
42
+ "--no-cov",
43
+ "--dist=no",
44
+ "tests",
45
+ "-k=${input:tests_selection}"
46
+ ]
47
+ }
48
+ ],
49
+ "inputs": [
50
+ {
51
+ "id": "tests_selection",
52
+ "type": "promptString",
53
+ "description": "Tests selection",
54
+ "default": ""
55
+ }
56
+ ]
57
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "files.watcherExclude": {
3
+ "**/.venv*/**": true,
4
+ "**/.venvs*/**": true,
5
+ "**/venv*/**": true
6
+ },
7
+ "mypy-type-checker.args": [
8
+ "--config-file=config/mypy.ini"
9
+ ],
10
+ "python.testing.unittestEnabled": false,
11
+ "python.testing.pytestEnabled": true,
12
+ "python.testing.pytestArgs": [
13
+ "--config-file=config/pytest.ini"
14
+ ],
15
+ "ruff.enable": true,
16
+ "ruff.format.args": [
17
+ "--config=config/ruff.toml"
18
+ ],
19
+ "ruff.lint.args": [
20
+ "--config=config/ruff.toml"
21
+ ],
22
+ "yaml.schemas": {
23
+ "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
24
+ },
25
+ "yaml.customTags": [
26
+ "!ENV scalar",
27
+ "!ENV sequence",
28
+ "!relative scalar",
29
+ "tag:yaml.org,2002:python/name:materialx.emoji.to_svg",
30
+ "tag:yaml.org,2002:python/name:materialx.emoji.twemoji",
31
+ "tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
32
+ ]
33
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "label": "changelog",
6
+ "type": "process",
7
+ "command": "scripts/make",
8
+ "args": ["changelog"]
9
+ },
10
+ {
11
+ "label": "check",
12
+ "type": "process",
13
+ "command": "scripts/make",
14
+ "args": ["check"]
15
+ },
16
+ {
17
+ "label": "check-quality",
18
+ "type": "process",
19
+ "command": "scripts/make",
20
+ "args": ["check-quality"]
21
+ },
22
+ {
23
+ "label": "check-types",
24
+ "type": "process",
25
+ "command": "scripts/make",
26
+ "args": ["check-types"]
27
+ },
28
+ {
29
+ "label": "check-docs",
30
+ "type": "process",
31
+ "command": "scripts/make",
32
+ "args": ["check-docs"]
33
+ },
34
+ {
35
+ "label": "check-api",
36
+ "type": "process",
37
+ "command": "scripts/make",
38
+ "args": ["check-api"]
39
+ },
40
+ {
41
+ "label": "clean",
42
+ "type": "process",
43
+ "command": "scripts/make",
44
+ "args": ["clean"]
45
+ },
46
+ {
47
+ "label": "docs",
48
+ "type": "process",
49
+ "command": "scripts/make",
50
+ "args": ["docs"]
51
+ },
52
+ {
53
+ "label": "docs-deploy",
54
+ "type": "process",
55
+ "command": "scripts/make",
56
+ "args": ["docs-deploy"]
57
+ },
58
+ {
59
+ "label": "format",
60
+ "type": "process",
61
+ "command": "scripts/make",
62
+ "args": ["format"]
63
+ },
64
+ {
65
+ "label": "release",
66
+ "type": "process",
67
+ "command": "scripts/make",
68
+ "args": ["release", "${input:version}"]
69
+ },
70
+ {
71
+ "label": "setup",
72
+ "type": "process",
73
+ "command": "scripts/make",
74
+ "args": ["setup"]
75
+ },
76
+ {
77
+ "label": "test",
78
+ "type": "process",
79
+ "command": "scripts/make",
80
+ "args": ["test", "coverage"],
81
+ "group": "test"
82
+ },
83
+ {
84
+ "label": "vscode",
85
+ "type": "process",
86
+ "command": "scripts/make",
87
+ "args": ["vscode"]
88
+ }
89
+ ],
90
+ "inputs": [
91
+ {
92
+ "id": "version",
93
+ "type": "promptString",
94
+ "description": "Version"
95
+ }
96
+ ]
97
+ }