| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
| |
Fixes #868.
|
|
|
| |
Related to #760.
|
|
|
|
|
|
|
| |
* Python syntax upgraded using `pyupgrade --py3-plus`
* Travis no longer uses `sudo`. See https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
See #760 for Python Version Support Timeline and related dicussion.
|
|
|
| |
Pygments added the `wrapcode` option in version 2.4. Users need to have 2.4+ installed to see the change. However, as earlier versions accepted arbitrary keywords passed to the HTMLFormatter, no error will be raised if the user has an older version of Pygments installed.
|
| |
|
| |
|
|
|
|
|
| |
Move Markdown parsing from the extra extension to a separate
extension called md_in_html.
|
| |
|
| |
|
|
|
|
|
|
| |
Remove misleading escaped_chars_in_js test
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
|
|
|
| |
Fixes #854.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
### 1. Summary
I fix a typo in a word “successfully”.
### 2. Argumentation
+ [**Cambridge Dictionary**](https://dictionary.cambridge.org/dictionary/english/successfully)
+ [**Merriam-Webster**](https://www.merriam-webster.com/dictionary/successful)
+ [**Lexico (powered by Oxford)**](https://www.lexico.com/en/definition/successfully)
Thanks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the event that a test fails, a more specific assert will usually
provide more useful information about what went wrong.
Prefer assertIs(..., True) over assertTrue() to assert the type as well
as the truthy value. This is recommended by Python:
https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTrue
> Note that this is equivalent to bool(expr) is True and not to expr is
> True (use assertIs(expr, True) for the latter). This method should
> also be avoided when more specific methods are available (e.g.
> assertEqual(a, b) instead of assertTrue(a == b)), because they provide
> a better error message in case of failure.
|
| |
|
|
|
|
|
|
| |
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Avoids installing the package (and any potential dependencies) to the
virtualenv before running lint or static commands. The package is not
required to be installed to do simple static code analysis. Results in a
slightly faster run, as fetching and installing dependencies is skipped.
For additional information on the configuration option, see:
https://tox.readthedocs.io/en/latest/config.html#confval-skip_install=BOOL
> Do not install the current package. This can be used when you need the
> virtualenv management but do not want to install the current package
> into that environment.
|
|
|
|
|
|
|
|
| |
Reduce load on PyPI servers and slightly speed up builds.
For more information, see:
https://docs.travis-ci.com/user/caching/#pip-cache
|
| |
|
|
|
|
|
| |
Not deleting the `build` dir before a new build could result in a dirty
build. See pypa/wheel#297.
|
|
|
|
|
|
| |
Some distributions of `pkg_resources` remove the vendored copy of `packaging. Additionally, the vendored copy is not publicly documented and should not be relied on exclusively. Regardless, if `pkg_resources` is installed at all, then we can be fairly certain one of `packaging` or `pkg_resources._vendor.packaging` will be available. That being the case, there is no need to list `packaging` as a dependency.
Fixes #825.
|
|
|
|
|
|
|
|
| |
Add pep517check environment to tox
Split version info into a separate file, load it using importlib
Fixes #823.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This should avoid any warnings. We use `unsafe_load` because users may
need to pass in actual Python objects. As this is only available from
the CLI, the user has much worse problems if an attacker can use this
as an attach vector.
|
|
|
|
|
|
| |
Part of the discussion in #798.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
|
|
|
| |
Fixes #793.
|
|
|
| |
Python is dropping support for PY3.4 on 2019-03-16. Therefore we are dropping support as well. See #760.
|
|
|
|
| |
Closes #786.
|
|
|
|
|
| |
Recursively run substitution to handle overlapping matches.
Fixes #458.
|
|
|
| |
In computing, `whitespace` is a word. See https://en.wikipedia.org/wiki/Whitespace_character.
|
|
|
|
|
|
| |
All whitespace characters should be treated the same by inline patterns.
Previoulsy, emphasis patterns were only accounting for spaces, but not
other whitepsace characters such as newlines. Fixes #783.
|
|
|
| |
Document a new label type for issues and PR which include discussions regarding policies and development process. See #760 for an example.
|
|
|
|
|
| |
Adjust pattern to allow for escaped hashes, but take care to not treat
escaped escapes before hashes as escaped hashes. Close #762.
|
|
|
| |
Use a vendored Pep562 backport to simulate Python 3.7's new PEP 562 feature. For Python3.7 and later, default to the official implementation.
|
| |
|
|
|
| |
This fixes #755
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Use "testing" extras_require
This centralized testing requirements and allows for
`pip install -e .[testing]` etc.
pytidylib is kept separate according to
https://github.com/Python-Markdown/markdown/pull/754/files#r233561159.
* Travis: simplify installation of deps
* Travis: use xenial by default, trusty for py34
* Travis: codecov: use flags
* Travis: only install aspell for checkspelling job
* Remove coverage version restriction
|
| |
|
| |
|
|
|
| |
Previously only newlines preceded by whitespace were collapsed. Fixes #742.
|
| |
|
|
|
|
| |
This essentially implements the closest we can get to PEP 562 which allows for modules to control `__dir__` and `__getattr__` in order to deprecate attributes. Here we provide a wrapper class for the module in `util`. If a module has attributes that need to deprecated, we derive from the wrapper class and define the attributes as functions with the `property` decorator and the provided `deprecated` decorator. The class is instantiated with the module's `__name__` attribute and the class will properly replace the module with the wrapped module. When accessing the depracted attributes, a warning is raised. Closes #739.
|
| |
|
|
|
|
|
| |
Its too easy to forget to update the Markdown version manually in the
docs config. This ensures it is included automatically.
|
|
|
|
| |
This is the version where setuptools.build_meta was introduced.
|
|
|
|
|
|
|
|
| |
Update version format to be PEP 440 compliant in preparation for #732.
Add `pyproject.toml` file and configure tox to use it. Define requirement for `setuptools>=36` which validates and normalizes the version format.
|
| |
|
|
|
|
| |
Block level elements should be defined per instance, not as base class variables.
|