Skip to content

Commit

Permalink
Merge pull request #15 from johnfraney/update-python-versions
Browse files Browse the repository at this point in the history
chore: Python & package updates
  • Loading branch information
johnfraney committed Sep 4, 2023
2 parents ff30aff + 3bd3855 commit e7b5f82
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 167 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [johnfraney]
ko_fi: johnfraney
25 changes: 25 additions & 0 deletions .github/workflows/github-actions-nox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Tox
on: push

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry tox
- name: Run Tox
run: |
tox run -e ${{ matrix.python-version }}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This package helps improve a Python project's documentation by ensuring that cod

Flake8 Markdown can be installed from PyPI using `pip` or your package manager of choice:

```
```shell
pip install flake8-markdown
```

Expand Down
206 changes: 70 additions & 136 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
include = [
"LICENSE",
]
include = ["LICENSE"]

[tool.poetry.dependencies]
python = ">=3.7"
python = ">=3.8"
flake8 = ">=5.0.0"

[tool.poetry.dev-dependencies]
Expand Down
9 changes: 2 additions & 7 deletions tests/test_flake8_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ def test_run_with_matching_single_file_with_linting_errors(run_flake8_markdown):
assert flake8_markdown_process.returncode == 1

output = flake8_markdown_process.stdout
# PyPy reports a different column than Python for EOL errors
if "PyPy" in sys.version:
assert "tests/samples/basic.md:8:7: E999" in output
elif sys.version_info < (3, 10):
if sys.version_info < (3, 10):
assert "tests/samples/basic.md:8:48: E999" in output
elif sys.version_info >= (3, 10):
assert "tests/samples/basic.md:8:8: E999" in output
Expand Down Expand Up @@ -89,9 +86,7 @@ def test_run_with_file_containing_pycon_blocks(run_flake8_markdown):
error_count = len(output.splitlines())
assert error_count == 3
assert "tests/samples/pycon.md:10:11: F821" in output
if "PyPy" in sys.version:
assert "tests/samples/pycon.md:17:1: E999" in output
elif sys.version_info < (3, 10):
if sys.version_info < (3, 10):
assert "tests/samples/pycon.md:17:10: E999" in output
elif sys.version_info >= (3, 10):
assert "tests/samples/pycon.md:17:2: E999" in output
Expand Down

0 comments on commit e7b5f82

Please sign in to comment.