markdown-pycon 1.0.0__tar.gz → 1.0.2__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.
- markdown_pycon-1.0.2/AI_POLICY.md +15 -0
- markdown_pycon-1.0.2/CHANGELOG.md +31 -0
- markdown_pycon-1.0.2/CODE_OF_CONDUCT.md +84 -0
- markdown_pycon-1.0.2/CONTRIBUTING.md +110 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/LICENSE +1 -1
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/PKG-INFO +14 -10
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/README.md +7 -3
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/config/git-changelog.toml +1 -1
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/config/pytest.ini +2 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/config/ruff.toml +17 -25
- markdown_pycon-1.0.2/config/ty.toml +6 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/config/vscode/launch.json +12 -3
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/config/vscode/settings.json +1 -3
- markdown_pycon-1.0.2/config/zed/debug.json +44 -0
- markdown_pycon-1.0.2/config/zed/settings.json +43 -0
- markdown_pycon-1.0.2/config/zed/tasks.json +72 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/docs/.overrides/main.html +5 -7
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/docs/.overrides/partials/comments.html +2 -2
- markdown_pycon-1.0.2/docs/changelog.md +5 -0
- markdown_pycon-1.0.2/docs/code_of_conduct.md +5 -0
- markdown_pycon-1.0.2/docs/contributing.md +5 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/docs/credits.md +1 -2
- markdown_pycon-1.0.0/docs/css/mkdocstrings.css → markdown_pycon-1.0.2/docs/css/apidocs.css +1 -7
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/docs/index.md +1 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/docs/license.md +1 -0
- markdown_pycon-1.0.2/docs/reference/api.md +7 -0
- markdown_pycon-1.0.2/duties.py +248 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/pyproject.toml +31 -27
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/scripts/gen_credits.py +36 -25
- markdown_pycon-1.0.2/scripts/get_version.py +49 -0
- markdown_pycon-1.0.2/scripts/make +1 -0
- markdown_pycon-1.0.0/scripts/make → markdown_pycon-1.0.2/scripts/make.py +91 -31
- markdown_pycon-1.0.2/src/markdown_pycon/__init__.py +28 -0
- markdown_pycon-1.0.2/src/markdown_pycon/_internal/__init__.py +17 -0
- {markdown_pycon-1.0.0/src/markdown_pycon → markdown_pycon-1.0.2/src/markdown_pycon/_internal}/debug.py +30 -14
- markdown_pycon-1.0.0/src/markdown_pycon/_extension.py → markdown_pycon-1.0.2/src/markdown_pycon/_internal/extension.py +28 -16
- markdown_pycon-1.0.2/tests/__init__.py +25 -0
- markdown_pycon-1.0.2/tests/conftest.py +32 -0
- markdown_pycon-1.0.2/tests/test_api.py +201 -0
- markdown_pycon-1.0.2/tests/test_extension.py +36 -0
- markdown_pycon-1.0.2/zensical.toml +186 -0
- markdown_pycon-1.0.0/CHANGELOG.md +0 -15
- markdown_pycon-1.0.0/CODE_OF_CONDUCT.md +0 -133
- markdown_pycon-1.0.0/CONTRIBUTING.md +0 -148
- markdown_pycon-1.0.0/config/mypy.ini +0 -5
- markdown_pycon-1.0.0/docs/changelog.md +0 -1
- markdown_pycon-1.0.0/docs/code_of_conduct.md +0 -1
- markdown_pycon-1.0.0/docs/contributing.md +0 -1
- markdown_pycon-1.0.0/docs/css/insiders.css +0 -124
- markdown_pycon-1.0.0/docs/css/material.css +0 -4
- markdown_pycon-1.0.0/docs/insiders/changelog.md +0 -7
- markdown_pycon-1.0.0/docs/insiders/goals.yml +0 -16
- markdown_pycon-1.0.0/docs/insiders/index.md +0 -239
- markdown_pycon-1.0.0/docs/insiders/installation.md +0 -88
- markdown_pycon-1.0.0/docs/js/insiders.js +0 -74
- markdown_pycon-1.0.0/duties.py +0 -235
- markdown_pycon-1.0.0/mkdocs.yml +0 -175
- markdown_pycon-1.0.0/scripts/gen_ref_nav.py +0 -37
- markdown_pycon-1.0.0/scripts/insiders.py +0 -206
- markdown_pycon-1.0.0/src/markdown_pycon/__init__.py +0 -10
- markdown_pycon-1.0.0/tests/__init__.py +0 -7
- markdown_pycon-1.0.0/tests/conftest.py +0 -14
- markdown_pycon-1.0.0/tests/test_extension.py +0 -18
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/config/coverage.ini +0 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/config/vscode/tasks.json +0 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/docs/js/feedback.js +0 -0
- {markdown_pycon-1.0.0 → markdown_pycon-1.0.2}/src/markdown_pycon/py.typed +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# AI Contribution Policy
|
|
2
|
+
|
|
3
|
+
We accept AI-*assisted* contributions, both for code and documentation, with the following expectations:
|
|
4
|
+
|
|
5
|
+
- AI-assisted contributions must disclaim their use of AI.
|
|
6
|
+
- Contributors must fully understand the proposed changes and be able to explain why they are the correct approach.
|
|
7
|
+
- Issues must be created before creating pull requests (unless there is already a relevant issue).
|
|
8
|
+
- Issue and pull request templates must be followed.
|
|
9
|
+
- Comments (including bodies) in issues and pull requests must be written by humans. If you use LLMs to translate from one language to another, please include your original comment and the translated one.
|
|
10
|
+
- Git commits must be authored by humans, not AI/bot accounts or identities.
|
|
11
|
+
- Git commit messages must be written by humans, in English. If you cannot write English, please state so in the pull request body and we will write the commit messages ourselves.
|
|
12
|
+
|
|
13
|
+
Failure to comply with any of these requirements will result in issues or pull requests being closed immediately without comment. Repeated violations of this policy will result in a ban of the offending accounts/identities from contributing to this project and any related project from the same author/organization.
|
|
14
|
+
|
|
15
|
+
We do not accept AI-generated content in community spaces we maintain or moderate, such as GitHub discussions or Matrix rooms.
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
## [1.0.2](https://github.com/pawamoy/markdown-pycon/releases/tag/1.0.2) - 2026-10-06
|
|
10
|
+
|
|
11
|
+
<small>[Compare with 1.0.1](https://github.com/pawamoy/markdown-pycon/compare/1.0.1...1.0.2)</small>
|
|
12
|
+
|
|
13
|
+
### Build
|
|
14
|
+
|
|
15
|
+
- Drop support for Python 3.10 ([8059348](https://github.com/pawamoy/markdown-pycon/commit/805934803b8a1401cac64b946e5d901b2b09e3a3) by Timothée Mazzucotelli).
|
|
16
|
+
|
|
17
|
+
## [1.0.1](https://github.com/pawamoy/markdown-pycon/releases/tag/1.0.1) - 2025-01-10
|
|
18
|
+
|
|
19
|
+
<small>[Compare with 1.0.0](https://github.com/pawamoy/markdown-pycon/compare/1.0.0...1.0.1)</small>
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- Stash highlighted code as HTML instead of reinserting block as markup ([0224c71](https://github.com/pawamoy/markdown-pycon/commit/0224c7122a4f3b97dc203f33b8f6a983db64affb) by Timothée Mazzucotelli). [Issue-1](https://github.com/pawamoy/markdown-pycon/issues/1)
|
|
24
|
+
|
|
25
|
+
## [1.0.0](https://github.com/pawamoy/markdown-pycon/releases/tag/1.0.0) - 2024-10-12
|
|
26
|
+
|
|
27
|
+
<small>[Compare with first commit](https://github.com/pawamoy/markdown-pycon/compare/5323fb8fae96b9f53bbbaaf7c3d4c64e33c94bbf...1.0.0)</small>
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
- Make the project public! ([c01beb9](https://github.com/pawamoy/markdown-pycon/commit/c01beb98f17d8d1e78bc153d0c87d2258ff25170) 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,110 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome, and they are greatly appreciated. Every little bit helps, and credit will always be given.
|
|
4
|
+
|
|
5
|
+
**Please always create an issue before working on a new feature or a bug fix, so that we can discuss the implementation and make sure that your work will be merged.**
|
|
6
|
+
|
|
7
|
+
## Environment setup
|
|
8
|
+
|
|
9
|
+
Install [uv](https://github.com/astral-sh/uv) and [direnv](https://direnv.net/), fork and clone the repository, then:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
cd markdown-pycon
|
|
13
|
+
direnv allow
|
|
14
|
+
make setup
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You now have the dependencies installed.
|
|
18
|
+
|
|
19
|
+
Run `make help` to see all the available actions!
|
|
20
|
+
|
|
21
|
+
## Tasks
|
|
22
|
+
|
|
23
|
+
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, while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
|
|
24
|
+
|
|
25
|
+
If you work in VSCode, we provide [an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup) for the project.
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
As usual:
|
|
30
|
+
|
|
31
|
+
1. create a new branch: `git switch -c feature-or-bugfix-name`
|
|
32
|
+
1. edit the code and/or the documentation
|
|
33
|
+
|
|
34
|
+
**Before committing:**
|
|
35
|
+
|
|
36
|
+
1. run `make format` to auto-format the code
|
|
37
|
+
1. run `make check` to check everything (fix any warning)
|
|
38
|
+
1. run `make test` to run the tests (fix any issue)
|
|
39
|
+
1. if you updated the documentation or the project dependencies:
|
|
40
|
+
1. run `make docs`
|
|
41
|
+
1. go to http://localhost:8000 and check that everything looks good
|
|
42
|
+
1. follow our [commit message convention](#commit-message-convention)
|
|
43
|
+
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
Don't bother updating the changelog, we will take care of this.
|
|
47
|
+
|
|
48
|
+
## Commit message convention
|
|
49
|
+
|
|
50
|
+
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):
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
<type>[(scope)]: Subject
|
|
54
|
+
|
|
55
|
+
[Body]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**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.
|
|
59
|
+
|
|
60
|
+
Scope and body are optional. Type can be:
|
|
61
|
+
|
|
62
|
+
- `build`: About packaging, building wheels, etc.
|
|
63
|
+
- `chore`: About packaging or repo/files management.
|
|
64
|
+
- `ci`: About Continuous Integration.
|
|
65
|
+
- `deps`: Dependencies update.
|
|
66
|
+
- `docs`: About documentation.
|
|
67
|
+
- `feat`: New feature.
|
|
68
|
+
- `fix`: Bug fix.
|
|
69
|
+
- `perf`: About performance.
|
|
70
|
+
- `refactor`: Changes that are not features or bug fixes.
|
|
71
|
+
- `style`: A change in code style/format.
|
|
72
|
+
- `tests`: About tests.
|
|
73
|
+
|
|
74
|
+
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:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
Body.
|
|
78
|
+
|
|
79
|
+
Issue #10: https://github.com/namespace/project/issues/10
|
|
80
|
+
Related to PR namespace/other-project#15: https://github.com/namespace/other-project/pull/15
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
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).
|
|
84
|
+
|
|
85
|
+
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.
|
|
86
|
+
|
|
87
|
+
## Pull requests guidelines
|
|
88
|
+
|
|
89
|
+
Link to any related issue in the Pull Request message.
|
|
90
|
+
|
|
91
|
+
During the review, we recommend using fixups:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# SHA is the SHA of the commit you want to fix
|
|
95
|
+
git commit --fixup=SHA
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Once all the changes are approved, you can squash your commits:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
git rebase -i --autosquash main
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
And force-push:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
git push -f
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ISC License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2023, Timothée Mazzucotelli
|
|
3
|
+
Copyright (c) 2023, Timothée Mazzucotelli and contributors
|
|
4
4
|
|
|
5
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
6
|
purpose with or without fee is hereby granted, provided that the above
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-pycon
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Markdown extension to parse `pycon` code blocks without indentation or fences.
|
|
5
|
-
Author-Email:
|
|
6
|
-
License: ISC
|
|
5
|
+
Author-Email: Timothée Mazzucotelli <dev@pawamoy.fr>
|
|
6
|
+
License-Expression: ISC
|
|
7
|
+
License-File: LICENSE
|
|
7
8
|
Classifier: Development Status :: 4 - Beta
|
|
8
9
|
Classifier: Intended Audience :: Developers
|
|
9
10
|
Classifier: Programming Language :: Python
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
11
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
18
|
Classifier: Topic :: Documentation
|
|
19
19
|
Classifier: Topic :: Software Development
|
|
20
20
|
Classifier: Topic :: Utilities
|
|
@@ -27,16 +27,15 @@ Project-URL: Issues, https://github.com/pawamoy/markdown-pycon/issues
|
|
|
27
27
|
Project-URL: Discussions, https://github.com/pawamoy/markdown-pycon/discussions
|
|
28
28
|
Project-URL: Gitter, https://gitter.im/markdown-pycon/community
|
|
29
29
|
Project-URL: Funding, https://github.com/sponsors/pawamoy
|
|
30
|
-
Requires-Python: >=3.
|
|
30
|
+
Requires-Python: >=3.11
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
|
|
33
33
|
# Markdown PyCon
|
|
34
34
|
|
|
35
35
|
[](https://github.com/pawamoy/markdown-pycon/actions?query=workflow%3Aci)
|
|
36
|
-
[](https://pawamoy.github.io/markdown-pycon/)
|
|
37
37
|
[](https://pypi.org/project/markdown-pycon/)
|
|
38
|
-
[](https://app.gitter.im/#/room/#markdown-pycon:gitter.im)
|
|
38
|
+
[](https://app.gitter.im/#/room/#markdown-pycon:gitter.im)
|
|
40
39
|
|
|
41
40
|
Markdown extension to parse `pycon` code blocks without indentation or fences.
|
|
42
41
|
|
|
@@ -88,3 +87,8 @@ This is a pycon code block
|
|
|
88
87
|
|
|
89
88
|
[Doctest flags](https://docs.python.org/3/library/doctest.html#option-flags)
|
|
90
89
|
will be removed from the code lines.
|
|
90
|
+
|
|
91
|
+
## Sponsors
|
|
92
|
+
|
|
93
|
+
<!-- sponsors-start -->
|
|
94
|
+
<!-- sponsors-end -->
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
# Markdown PyCon
|
|
2
2
|
|
|
3
3
|
[](https://github.com/pawamoy/markdown-pycon/actions?query=workflow%3Aci)
|
|
4
|
-
[](https://pawamoy.github.io/markdown-pycon/)
|
|
5
5
|
[](https://pypi.org/project/markdown-pycon/)
|
|
6
|
-
[](https://app.gitter.im/#/room/#markdown-pycon:gitter.im)
|
|
6
|
+
[](https://app.gitter.im/#/room/#markdown-pycon:gitter.im)
|
|
8
7
|
|
|
9
8
|
Markdown extension to parse `pycon` code blocks without indentation or fences.
|
|
10
9
|
|
|
@@ -56,3 +55,8 @@ This is a pycon code block
|
|
|
56
55
|
|
|
57
56
|
[Doctest flags](https://docs.python.org/3/library/doctest.html#option-flags)
|
|
58
57
|
will be removed from the code lines.
|
|
58
|
+
|
|
59
|
+
## Sponsors
|
|
60
|
+
|
|
61
|
+
<!-- sponsors-start -->
|
|
62
|
+
<!-- sponsors-end -->
|
|
@@ -10,5 +10,7 @@ testpaths =
|
|
|
10
10
|
# action:message_regex:warning_class:module_regex:line
|
|
11
11
|
filterwarnings =
|
|
12
12
|
error
|
|
13
|
+
default::EncodingWarning
|
|
14
|
+
error::EncodingWarning:markdown_pycon
|
|
13
15
|
# TODO: remove once pytest-xdist 4 is released
|
|
14
16
|
ignore:.*rsyncdir:DeprecationWarning:xdist
|
|
@@ -1,34 +1,14 @@
|
|
|
1
|
-
target-version = "
|
|
1
|
+
target-version = "py311"
|
|
2
2
|
line-length = 120
|
|
3
|
+
output-format = "concise"
|
|
3
4
|
|
|
4
5
|
[lint]
|
|
5
6
|
exclude = [
|
|
6
7
|
"tests/fixtures/*.py",
|
|
7
8
|
]
|
|
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
|
-
]
|
|
9
|
+
select = ["ALL"]
|
|
28
10
|
ignore = [
|
|
29
11
|
"A001", # Variable is shadowing a Python builtin
|
|
30
|
-
"ANN101", # Missing type annotation for self
|
|
31
|
-
"ANN102", # Missing type annotation for cls
|
|
32
12
|
"ANN204", # Missing return type annotation for special method __str__
|
|
33
13
|
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
|
|
34
14
|
"ARG005", # Unused lambda argument
|
|
@@ -36,28 +16,40 @@ ignore = [
|
|
|
36
16
|
"D105", # Missing docstring in magic method
|
|
37
17
|
"D417", # Missing argument description in the docstring
|
|
38
18
|
"E501", # Line too long
|
|
19
|
+
"EM101", # String literal when raising exception
|
|
20
|
+
"EM102", # f-string when raising exception
|
|
39
21
|
"ERA001", # Commented out code
|
|
22
|
+
"FIX", # TODO, FIXME, etc.
|
|
40
23
|
"G004", # Logging statement uses f-string
|
|
41
24
|
"PLR0911", # Too many return statements
|
|
42
25
|
"PLR0912", # Too many branches
|
|
43
26
|
"PLR0913", # Too many arguments to function call
|
|
44
27
|
"PLR0915", # Too many statements
|
|
45
28
|
"SLF001", # Private member accessed
|
|
29
|
+
"TD002", # Missing author in TODO
|
|
30
|
+
"TD003", # Missing issue link for TODO
|
|
46
31
|
"TRY003", # Avoid specifying long messages outside the exception class
|
|
47
32
|
]
|
|
48
33
|
|
|
49
34
|
[lint.per-file-ignores]
|
|
50
|
-
"src
|
|
35
|
+
"src/**/cli.py" = [
|
|
51
36
|
"T201", # Print statement
|
|
52
37
|
]
|
|
53
38
|
"src/*/debug.py" = [
|
|
54
39
|
"T201", # Print statement
|
|
55
40
|
]
|
|
41
|
+
"!src/*/*.py" = [
|
|
42
|
+
"D100", # Missing docstring in public module
|
|
43
|
+
]
|
|
44
|
+
"!src/**.py" = [
|
|
45
|
+
"D101", # Missing docstring in public class
|
|
46
|
+
"D103", # Missing docstring in public function
|
|
47
|
+
]
|
|
56
48
|
"scripts/*.py" = [
|
|
57
49
|
"INP001", # File is part of an implicit namespace package
|
|
58
50
|
"T201", # Print statement
|
|
59
51
|
]
|
|
60
|
-
"tests
|
|
52
|
+
"tests/**.py" = [
|
|
61
53
|
"ARG005", # Unused lambda argument
|
|
62
54
|
"FBT001", # Boolean positional arg in function definition
|
|
63
55
|
"PLR2004", # Magic value used in comparison
|
|
@@ -7,17 +7,26 @@
|
|
|
7
7
|
"request": "launch",
|
|
8
8
|
"program": "${file}",
|
|
9
9
|
"console": "integratedTerminal",
|
|
10
|
-
"justMyCode": false
|
|
10
|
+
"justMyCode": false,
|
|
11
|
+
"args": "${command:pickArgs}"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "run",
|
|
15
|
+
"type": "debugpy",
|
|
16
|
+
"request": "launch",
|
|
17
|
+
"module": "markdown_pycon",
|
|
18
|
+
"console": "integratedTerminal",
|
|
19
|
+
"justMyCode": false,
|
|
20
|
+
"args": "${command:pickArgs}"
|
|
11
21
|
},
|
|
12
22
|
{
|
|
13
23
|
"name": "docs",
|
|
14
24
|
"type": "debugpy",
|
|
15
25
|
"request": "launch",
|
|
16
|
-
"module": "
|
|
26
|
+
"module": "zensical",
|
|
17
27
|
"justMyCode": false,
|
|
18
28
|
"args": [
|
|
19
29
|
"serve",
|
|
20
|
-
"-v"
|
|
21
30
|
]
|
|
22
31
|
},
|
|
23
32
|
{
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
"**/.venvs*/**": true,
|
|
5
5
|
"**/venv*/**": true
|
|
6
6
|
},
|
|
7
|
-
"mypy-type-checker.args": [
|
|
8
|
-
"--config-file=config/mypy.ini"
|
|
9
|
-
],
|
|
10
7
|
"python.testing.unittestEnabled": false,
|
|
11
8
|
"python.testing.pytestEnabled": true,
|
|
12
9
|
"python.testing.pytestArgs": [
|
|
@@ -19,6 +16,7 @@
|
|
|
19
16
|
"ruff.lint.args": [
|
|
20
17
|
"--config=config/ruff.toml"
|
|
21
18
|
],
|
|
19
|
+
"ty.configurationFile": "config/ty.toml",
|
|
22
20
|
"yaml.schemas": {
|
|
23
21
|
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
|
|
24
22
|
},
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Project-local debug tasks
|
|
2
|
+
//
|
|
3
|
+
// For more documentation on how to configure debug tasks,
|
|
4
|
+
// see: https://zed.dev/docs/debugger
|
|
5
|
+
[
|
|
6
|
+
{
|
|
7
|
+
"label": "python (current file)",
|
|
8
|
+
"adapter": "Debugpy",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"program": "$ZED_FILE",
|
|
11
|
+
"justMyCode": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"label": "run",
|
|
15
|
+
"adapter": "Debugpy",
|
|
16
|
+
"request": "launch",
|
|
17
|
+
"module": "markdown_pycon",
|
|
18
|
+
"justMyCode": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"label": "docs",
|
|
22
|
+
"adapter": "Debugpy",
|
|
23
|
+
"request": "launch",
|
|
24
|
+
"module": "zensical",
|
|
25
|
+
"args": [
|
|
26
|
+
"serve"
|
|
27
|
+
],
|
|
28
|
+
"justMyCode": false
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "test",
|
|
32
|
+
"adapter": "Debugpy",
|
|
33
|
+
"request": "launch",
|
|
34
|
+
"module": "pytest",
|
|
35
|
+
"args": [
|
|
36
|
+
"-c=config/pytest.ini",
|
|
37
|
+
"-vvv",
|
|
38
|
+
"--no-cov",
|
|
39
|
+
"--dist=no",
|
|
40
|
+
"tests"
|
|
41
|
+
],
|
|
42
|
+
"justMyCode": false
|
|
43
|
+
}
|
|
44
|
+
]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Zed settings
|
|
2
|
+
//
|
|
3
|
+
// For information on how to configure Zed, see the Zed
|
|
4
|
+
// documentation: https://zed.dev/docs/configuring-zed
|
|
5
|
+
//
|
|
6
|
+
// To see all of Zed's default settings without changing your
|
|
7
|
+
// custom settings, run `zed: open default settings` from the
|
|
8
|
+
// command palette (cmd-shift-p / ctrl-shift-p)
|
|
9
|
+
{
|
|
10
|
+
"languages": {
|
|
11
|
+
"YAML": {
|
|
12
|
+
"auto_indent_on_paste": false,
|
|
13
|
+
"auto_indent": "preserve_indent",
|
|
14
|
+
"format_on_save": "off"
|
|
15
|
+
},
|
|
16
|
+
"Python": {
|
|
17
|
+
"language_servers": ["ty", "ruff"],
|
|
18
|
+
"code_actions_on_format": {
|
|
19
|
+
"source.organizeImports.ruff": true
|
|
20
|
+
},
|
|
21
|
+
"formatter": {
|
|
22
|
+
"language_server": {
|
|
23
|
+
"name": "ruff"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"lsp": {
|
|
29
|
+
"ty": {
|
|
30
|
+
"settings": {
|
|
31
|
+
"configurationFile": "config/ty.toml"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"ruff": {
|
|
35
|
+
"initialization_options": {
|
|
36
|
+
"settings": {
|
|
37
|
+
"configurationPreference": "filesystemFirst",
|
|
38
|
+
"configuration": "config/ruff.toml"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"label": "changelog",
|
|
4
|
+
"command": "scripts/make",
|
|
5
|
+
"args": ["changelog"]
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"label": "check",
|
|
9
|
+
"command": "scripts/make",
|
|
10
|
+
"args": ["check"]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"label": "check-quality",
|
|
14
|
+
"command": "scripts/make",
|
|
15
|
+
"args": ["check-quality"]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"label": "check-types",
|
|
19
|
+
"command": "scripts/make",
|
|
20
|
+
"args": ["check-types"]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"label": "check-docs",
|
|
24
|
+
"command": "scripts/make",
|
|
25
|
+
"args": ["check-docs"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"label": "check-api",
|
|
29
|
+
"command": "scripts/make",
|
|
30
|
+
"args": ["check-api"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"label": "clean",
|
|
34
|
+
"command": "scripts/make",
|
|
35
|
+
"args": ["clean"]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": "docs",
|
|
39
|
+
"command": "scripts/make",
|
|
40
|
+
"args": ["docs"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"label": "docs-deploy",
|
|
44
|
+
"command": "scripts/make",
|
|
45
|
+
"args": ["docs-deploy"]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"label": "format",
|
|
49
|
+
"command": "scripts/make",
|
|
50
|
+
"args": ["format"]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"label": "release",
|
|
54
|
+
"command": "scripts/make",
|
|
55
|
+
"args": ["release"]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "setup",
|
|
59
|
+
"command": "scripts/make",
|
|
60
|
+
"args": ["setup"]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"label": "test",
|
|
64
|
+
"command": "scripts/make",
|
|
65
|
+
"args": ["test", "coverage"]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "vscode",
|
|
69
|
+
"command": "scripts/make",
|
|
70
|
+
"args": ["vscode"]
|
|
71
|
+
}
|
|
72
|
+
]
|