forked from LandRegistry/govuk-frontend-jinja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a pyproject.toml for the package and add pre-commit hook to check…
… the pyproject.toml
- Loading branch information
Showing
12 changed files
with
74 additions
and
74 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
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,18 +1,20 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: d6d3bd94604578adbd918c5a00d531d98350d86f # v2.3.0 | ||
hooks: | ||
- id: detect-private-key | ||
- repo: https://github.com/Yelp/detect-secrets | ||
rev: a3e7998bfa4924b13df3f9cb49070abdbdff8802 # v0.13.1 | ||
hooks: | ||
- id: detect-secrets | ||
args: ['--baseline', '.secrets.baseline'] | ||
exclude: .*/keys/.*| | ||
(?x)( | ||
^package-lock.json$/| | ||
^Pipfile/| | ||
^pyproject.toml | ||
) | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: detect-private-key | ||
|
||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.22 | ||
hooks: | ||
- id: validate-pyproject | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
prune tests |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ccs-govuk-frontend-jinja" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
'jinja2>=3.0.2', | ||
] | ||
requires-python = ">=3.10,<3.13" | ||
authors = [ | ||
{name = "HM Land Registry Developers"}, | ||
{name = "CCS Developers"}, | ||
] | ||
description = "GOV.UK Frontend Jinja Macros" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja" | ||
Repository = "https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja.git" | ||
Issues = "https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja/issues" | ||
Changelog = "https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja/CHANGELOG.md" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "govuk_frontend_jinja.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["node_modules*"] | ||
|
||
[tool.setuptools.package-data] | ||
govuk_frontend_jinja = ["**/*.html"] |
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,6 +1,6 @@ | ||
import pytest | ||
|
||
from app import create_app | ||
from utils.app import create_app | ||
|
||
|
||
@pytest.fixture | ||
|
Empty file.
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