pax_global_header 0000666 0000000 0000000 00000000064 14540654044 0014520 g ustar 00root root 0000000 0000000 52 comment=199651fafc98fa3ed8fb7f91a8877f776ecbe9c7 mdformat-0.7.17/ 0000775 0000000 0000000 00000000000 14540654044 0013425 5 ustar 00root root 0000000 0000000 mdformat-0.7.17/.bumpversion.cfg 0000664 0000000 0000000 00000001571 14540654044 0016541 0 ustar 00root root 0000000 0000000 [bumpversion] commit = True tag = True tag_name = {new_version} current_version = 0.7.17 [bumpversion:file:pyproject.toml] search = version = "{current_version}" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT replace = version = "{new_version}" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT [bumpversion:file:src/mdformat/__init__.py] search = __version__ = "{current_version}" replace = __version__ = "{new_version}" [bumpversion:file:docs/users/installation_and_usage.md] search = rev: {current_version} # Use the ref you want to point at replace = rev: {new_version} # Use the ref you want to point at [bumpversion:file:docs/conf.py] search = release = '{current_version}' # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT replace = release = '{new_version}' # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT mdformat-0.7.17/.flake8 0000664 0000000 0000000 00000000233 14540654044 0014576 0 ustar 00root root 0000000 0000000 [flake8] max-line-length = 88 max-complexity = 10 # These checks violate PEP8 so let's ignore them extend-ignore = E203 extend-exclude = */site-packages/* mdformat-0.7.17/.gitattributes 0000664 0000000 0000000 00000000136 14540654044 0016320 0 ustar 00root root 0000000 0000000 # Don't do text manipulations (line ending changes). Tests require # unchanged files. * -text mdformat-0.7.17/.github/ 0000775 0000000 0000000 00000000000 14540654044 0014765 5 ustar 00root root 0000000 0000000 mdformat-0.7.17/.github/workflows/ 0000775 0000000 0000000 00000000000 14540654044 0017022 5 ustar 00root root 0000000 0000000 mdformat-0.7.17/.github/workflows/tests.yaml 0000664 0000000 0000000 00000004232 14540654044 0021051 0 ustar 00root root 0000000 0000000 name: Tests on: push: branches: [ master ] tags: [ '[0-9]+.[0-9]+.[0-9]+*' ] pull_request: branches: [ master ] jobs: linters: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: python-version: '3.8' - name: Installation (deps and package) run: | pip install . pre-commit mypy==0.910 -r tests/requirements.txt - name: run linters run: | mdformat --check docs/ README.md mypy src/ tests/ pre-commit run -a pre-commit try-repo . mdformat --files README.md tests: runs-on: ${{ matrix.os }} strategy: matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12-dev'] os: [ubuntu-latest, macos-latest, windows-latest] continue-on-error: ${{ matrix.python-version == '3.12-dev' }} steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Installation (deps and package) run: | pip install . -r tests/requirements.txt - name: Test with pytest run: | pytest --cov --cov-fail-under=100 - name: Report coverage if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' uses: codecov/codecov-action@v2 allgood: runs-on: ubuntu-latest needs: - linters - tests steps: - run: echo "Great success!" pypi-publish: # Only publish if all other jobs succeed needs: [ allgood ] if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: python-version: '3.8' - name: Install build and publish tools run: | pip install build twine - name: Build and check run: | rm -rf dist/ && python -m build twine check --strict dist/* - name: Publish run: | twine upload dist/* env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} mdformat-0.7.17/.gitignore 0000664 0000000 0000000 00000003456 14540654044 0015425 0 ustar 00root root 0000000 0000000 # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ pip-wheel-metadata/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # IntelliJ .idea/ # VS Code .vscode/ mdformat-0.7.17/.pre-commit-config.yaml 0000664 0000000 0000000 00000002622 14540654044 0017710 0 ustar 00root root 0000000 0000000 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0 hooks: - id: check-yaml - id: check-toml - repo: https://github.com/pre-commit/pygrep-hooks rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316 # frozen: v1.10.0 hooks: - id: python-use-type-annotations - id: python-check-blanket-noqa - id: python-check-blanket-type-ignore - repo: https://github.com/asottile/yesqa rev: f2ae90cf9e1661ade79d0881186ce4fd7ba6ee79 # frozen: v1.5.0 hooks: - id: yesqa additional_dependencies: - flake8-bugbear - flake8-builtins - flake8-comprehensions - repo: https://github.com/MarcoGorelli/absolufy-imports rev: 1683a63d850e065495c05b771e4a20db010a58e7 # frozen: v0.3.1 hooks: - id: absolufy-imports - repo: https://github.com/PyCQA/isort rev: dbf82f2dd09ae41d9355bcd7ab69187a19e6bf2f # frozen: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black rev: 193ee766ca496871f93621d6b58d57a6564ff81b # frozen: 23.7.0 hooks: - id: black - repo: https://github.com/myint/docformatter rev: dfefe062799848234b4cd60b04aa633c0608025e # frozen: v1.7.5 hooks: - id: docformatter - repo: https://github.com/PyCQA/flake8 rev: 10f4af6dbcf93456ba7df762278ae61ba3120dc6 # frozen: 6.1.0 hooks: - id: flake8 additional_dependencies: - flake8-bugbear - flake8-builtins - flake8-comprehensions mdformat-0.7.17/.pre-commit-hooks.yaml 0000664 0000000 0000000 00000000270 14540654044 0017563 0 ustar 00root root 0000000 0000000 - id: mdformat name: mdformat description: "CommonMark compliant Markdown formatter" entry: mdformat language: python types: [markdown] minimum_pre_commit_version: '1.0.0' mdformat-0.7.17/.readthedocs.yaml 0000664 0000000 0000000 00000000631 14540654044 0016654 0 ustar 00root root 0000000 0000000 # .readthedocs.yaml # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details # Required version: 2 # Build documentation in the docs/ directory with Sphinx sphinx: fail_on_warning: true # Optionally set the version of Python and requirements required to build your docs python: version: '3.8' install: - requirements: docs/requirements.txt mdformat-0.7.17/LICENSE 0000664 0000000 0000000 00000002060 14540654044 0014430 0 ustar 00root root 0000000 0000000 MIT License Copyright (c) 2021 Taneli Hukkinen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. mdformat-0.7.17/MANIFEST.in 0000664 0000000 0000000 00000000036 14540654044 0015162 0 ustar 00root root 0000000 0000000 include src/mdformat/py.typed mdformat-0.7.17/README.md 0000664 0000000 0000000 00000014220 14540654044 0014703 0 ustar 00root root 0000000 0000000