-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drop py up to 3.8, remove future dep * fix setup.cfg * fix copypasta * poetry lock * update tests * format
- Loading branch information
Showing
13 changed files
with
1,491 additions
and
1,005 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
linting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install virtualenv from poetry | ||
uses: 20c/workflows/poetry@v1 | ||
- name: Run linters | ||
run: | | ||
poetry run pre-commit run --all-files | ||
test: | ||
needs: linting | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ "ubuntu-latest" ] | ||
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Install virtualenv from poetry | ||
uses: 20c/workflows/poetry@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run tests | ||
run: poetry run tox -e py | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: false | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
fail_fast: false | ||
exclude: | | ||
(?x)^( | ||
tests/data/.* | ||
)$ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.1.14 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
# removes imports for tests | ||
exclude: tests/ | ||
args: [--fix] | ||
# Run the formatter. | ||
- id: ruff-format | ||
- repo: local | ||
hooks: | ||
- id: pyupgrade | ||
name: pyupgrade | ||
entry: poetry run pyupgrade --py38-plus | ||
language: python | ||
types: [python] | ||
pass_filenames: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
codecov>=2.0.5 | ||
coverage>=4.1 | ||
pytest-cov>=2.3, <3 | ||
tox>=2.3.1, <4 | ||
pytest-cov>=2.3 | ||
tox>=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
decorator>=4, <5 | ||
future>=0.16.0, <1 | ||
requests-mock>=1, <2 | ||
decorator>=4 | ||
requests-mock>=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,57 @@ | ||
[tool.poetry] | ||
name = "pytest_filedata" | ||
repository = "git@github.com:20c/pytest-filedata.git" | ||
name = "pytest-filedata" | ||
version = "0.4.0" | ||
description = "easily load data from files" | ||
authors = [ "20C <code@20c.com>",] | ||
description = "easily load test data from files" | ||
readme = 'README.md' | ||
license = "LICENSE.txt" | ||
repository = "https://github.com/20c/pytest-filedata" | ||
authors = [ "20C <code@20c.com>",] | ||
license = "Apache-2.0" | ||
|
||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Pytest", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Software Development :: Testing", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.6.1,<4.0" | ||
pre-commit = "^2.13.0" | ||
python = ">=3.8,<4.0" | ||
decorator = ">=4" | ||
requests-mock = ">=1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
# test | ||
pytest = ">=6.0.1" | ||
pytest-django = ">=3.8.0" | ||
pytest-cov = "*" | ||
pytest-pythonpath = "*" | ||
|
||
# lint | ||
bandit = "^1.6.2" | ||
black = "^20.8b1" | ||
isort = "^5.7.0" | ||
flake8 = "^3.8.4" | ||
|
||
# docs | ||
markdown = "*" | ||
markdown-include = ">=0.5,<1" | ||
mkdocs = ">=1.0.0,<2.0.0" | ||
# Package docutils (0.21.post1) not found. | ||
docutils = "<=0.21" | ||
|
||
# tests | ||
coverage = ">=5.3" | ||
pytest = ">=6.1.2" | ||
pytest-cov = ">=2.10.1" | ||
tox = ">=4" | ||
tox-gh-actions = ">2" | ||
|
||
# linting | ||
ruff = ">=0.1" | ||
mypy = ">=0.950" | ||
pre-commit = ">=2.13" | ||
pyupgrade = ">=2.19" | ||
|
||
# ctl | ||
ctl = "^1.0.0" | ||
jinja2 = "^2.11.2" | ||
tmpl = "^0.3.0" | ||
ctl = ">=1" | ||
jinja2 = ">=3" | ||
tmpl = ">=1" | ||
twine = ">=3.3.0" | ||
|
||
decorator = ">=4, <5" | ||
future = ">=0.16.0, <1" | ||
requests-mock = ">=1, <2" | ||
|
||
|
||
[tool.poetry.plugins."markdown.extensions"] | ||
pymdgen = "pymdgen.md:Extension" | ||
# docs | ||
markdown-include = ">=0.5,<1" | ||
mkdocs = ">=1.2.3" | ||
pymdgen = ">=1" | ||
|
||
[build-system] | ||
requires = [ "poetry>=0.12",] | ||
build-backend = "poetry.masonry.api" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
requires = ["poetry-core>=1"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.