|
1 | | -[tool.black] |
| 1 | +# -- PACKAGE INFO --------------------- |
| 2 | + |
| 3 | +[build-system] |
| 4 | +requires = ["setuptools >= 65.0"] |
| 5 | +build-backend = "setuptools.build_meta" |
| 6 | + |
| 7 | +[project] |
| 8 | +authors = [ |
| 9 | + { name = "CodeRed LLC", email = "[email protected]"} |
| 10 | +] |
| 11 | +classifiers = [ |
| 12 | + "Intended Audience :: Developers", |
| 13 | + "License :: OSI Approved :: BSD License", |
| 14 | + "Natural Language :: English", |
| 15 | + "Operating System :: OS Independent", |
| 16 | + "Programming Language :: Python :: 3", |
| 17 | + "Programming Language :: Python :: 3 :: Only", |
| 18 | + "Framework :: Django", |
| 19 | + "Framework :: Wagtail", |
| 20 | + "Framework :: Wagtail :: 3", |
| 21 | + "Framework :: Wagtail :: 4", |
| 22 | + "Framework :: Wagtail :: 5", |
| 23 | + "Framework :: Wagtail :: 6", |
| 24 | +] |
| 25 | +dependencies = [ |
| 26 | + "wagtail>=3.0,<7", |
| 27 | +] |
| 28 | +description = "A simple page cache for Wagtail based on the Django cache middleware." |
| 29 | +dynamic = ["version"] |
| 30 | +license = {file = "LICENSE"} |
| 31 | +name = "wagtail-cache" |
| 32 | +readme = "README.md" |
| 33 | +requires-python = ">=3.8" |
| 34 | + |
| 35 | +[project.urls] |
| 36 | +Source = "https://github.com/coderedcorp/wagtail-cache" |
| 37 | + |
| 38 | +[tool.setuptools] |
| 39 | +packages = ["wagtailcache"] |
| 40 | + |
| 41 | +[tool.setuptools.dynamic] |
| 42 | +version = {attr = "wagtailcache.__version__"} |
| 43 | + |
| 44 | + |
| 45 | +# -- TOOLS ---------------------------- |
| 46 | + |
| 47 | +[tool.codespell] |
| 48 | +ignore-words-list = ["doubleclick"] |
| 49 | + |
| 50 | +[tool.django-stubs] |
| 51 | +django_settings_module = "testproject.settings" |
| 52 | + |
| 53 | +[tool.mypy] |
| 54 | +ignore_missing_imports = true |
| 55 | +check_untyped_defs = true |
| 56 | +exclude = [ |
| 57 | + '^\..*', |
| 58 | + 'migrations', |
| 59 | + 'node_modules', |
| 60 | + 'venv', |
| 61 | +] |
| 62 | + |
| 63 | +[tool.pytest.ini_options] |
| 64 | +DJANGO_SETTINGS_MODULE = "testproject.settings" |
| 65 | +junit_family = "xunit2" |
| 66 | +addopts = "--cov wagtailcache --cov-report html --cov-report xml --junitxml junit/test-results.xml" |
| 67 | +python_files = "tests.py test_*.py" |
| 68 | + |
| 69 | +[tool.ruff] |
| 70 | +extend-exclude = ["build", "migrations"] |
2 | 71 | line-length = 80 |
3 | | -target-version = ['py38', 'py39', 'py310', 'py311'] |
4 | | -# Regular expression of files to exclude. |
5 | | -exclude = ''' |
6 | | -/( |
7 | | - \.venv |
8 | | - | build |
9 | | - | migrations |
10 | | -)/ |
11 | | -''' |
12 | | - |
13 | | -[tool.isort] |
14 | | -force_alphabetical_sort_within_sections = true |
15 | | -force_single_line = true |
16 | | -lines_after_imports = 2 |
17 | | -lines_before_imports = 0 |
18 | | -lines_between_sections = 1 |
19 | | -lines_between_types = 0 |
20 | | -line_length = 80 |
21 | | -profile = "black" |
22 | | -skip_gitignore = true |
23 | | -extend_skip = ["migrations"] |
24 | | -# Specific to this project |
25 | | -known_first_party = ["home", "wagtailcache"] |
| 72 | + |
| 73 | +[tool.ruff.lint] |
| 74 | +extend-select = ["I"] |
| 75 | + |
| 76 | +[tool.ruff.lint.isort] |
| 77 | +case-sensitive = false |
| 78 | +force-single-line = true |
| 79 | +lines-after-imports = 2 |
0 commit comments