Skip to content

Commit

Permalink
tmp will be squashed, CI debug by YAML hell
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-tstpd committed Oct 22, 2023
1 parent 8fd812b commit 342c591
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
17 changes: 9 additions & 8 deletions pyproject.toml
Expand Up @@ -5,7 +5,7 @@ readme = "README.rst"
description = "A Pylint plugin to help Pylint understand the Django web framework"
repository = "https://github.com/PyCQA/pylint-django"
authors = ["Carl Crowder <git@carlcrowder.com>"]
classifiers=[
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
Expand All @@ -17,6 +17,7 @@ classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3",
"Framework :: Django :: 3.0",
Expand All @@ -28,25 +29,24 @@ classifiers=[
"Framework :: Django :: 4.2",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
]
keywords=["pylint", "django", "plugin"]
keywords = ["pylint", "django", "plugin"]
packages = [
{ include = "pylint_django/"}
{ include = "pylint_django/" }
]
include = [
"LICENSE",
"*.rst",
"*.md"
"LICENSE",
"*.rst",
"*.md"
]
exclude = ["**/tests/**", "**/testutils.py", "**/tests.py"]

[tool.poetry.dependencies]
python = ">=3.7,<4.0"
pylint-plugin-utils = ">=0.8"
pylint = ">=2.0,<3"
Django = {version=">=2.2", optional = true}
Django = { version = ">=2.2", optional = true }

[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
tox = "^4.5.1"
pylint = ">=2.13"
twine = "^4.0.2"
Expand All @@ -55,6 +55,7 @@ pytest-cov = "^4.0.0"
django-tables2 = "^2.6.0"
factory-boy = "^3.3.0"
django-tastypie = "^0.14.6"
pytest = "^7.3.1"

[tool.poetry.extras]
with_django = ["Django"]
Expand Down
3 changes: 3 additions & 0 deletions scripts/test.sh
@@ -1,2 +1,5 @@
#!/bin/bash
# TODO : find out why tox refuses to install this or install any dev dependencies from poetry :-|
pip install 'pytest>=7.3.1'

python pylint_django/tests/test_func.py -v "$@"
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -22,7 +22,7 @@ commands =
flake8: flake8 pylint_django/
pylint: pylint --rcfile=tox.ini -d missing-docstring,too-many-branches,too-many-return-statements,too-many-ancestors,fixme --ignore=tests pylint_django
readme: bash -c "poetry build && twine check dist/*"
py{37,38,39,310,311}-django{22,30,31,32,40,41,42}: bash scripts/test.sh --cov=pylint_django
py{37,38,39,310,311}-django{22,30,31,32,40,41,42}: bash scripts/test.sh
clean: find . -type f -name '*.pyc' -delete
clean: find . -type d -name __pycache__ -delete
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
Expand Down

0 comments on commit 342c591

Please sign in to comment.