This is an automated email from the ASF dual-hosted git repository. tn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push: new f88f3f1 chore: add some more useful checks f88f3f1 is described below commit f88f3f1623a2c4654a7aac70e893dd4415e69886 Author: Thomas Neidhart <t...@apache.org> AuthorDate: Wed Feb 12 17:29:58 2025 +0100 chore: add some more useful checks --- .pre-commit-config.yaml | 9 +++++++++ LICENSE-template.txt | 2 +- atr/routes.py | 3 ++- atr/static/root.css | 16 ++++++++-------- atr/templates/root.html | 4 ++-- migrations/README | 2 +- 6 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 535fc51..7eaf12e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,13 @@ +exclude: '^(asfquart)' repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: check-toml + - id: check-yaml + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.5.5 hooks: diff --git a/LICENSE-template.txt b/LICENSE-template.txt index 90705e0..60b675e 100644 --- a/LICENSE-template.txt +++ b/LICENSE-template.txt @@ -13,4 +13,4 @@ software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations -under the License. \ No newline at end of file +under the License. diff --git a/atr/routes.py b/atr/routes.py index 6b7f9f8..306ca88 100644 --- a/atr/routes.py +++ b/atr/routes.py @@ -55,7 +55,8 @@ async def pmc_create_arg(project_name: str) -> dict: session.refresh(pmc) except IntegrityError: raise ASFQuartException( - f"PMC with name '{project_name}' already exists", errorcode=409 # HTTP 409 Conflict + f"PMC with name '{project_name}' already exists", + errorcode=409, # HTTP 409 Conflict ) # Convert to dict for response diff --git a/atr/static/root.css b/atr/static/root.css index 234722f..1dbc347 100644 --- a/atr/static/root.css +++ b/atr/static/root.css @@ -1,15 +1,15 @@ -body { - font-family: sans-serif; +body { + font-family: sans-serif; margin: 2em; line-height: 1.6; } -h1 { +h1 { color: #303284; } -.pmc-list { - list-style: none; +.pmc-list { + list-style: none; padding: 0; max-width: 1200px; } @@ -29,14 +29,14 @@ h1 { box-shadow: 0 4px 8px rgba(0,0,0,0.1); } -.pmc-name { +.pmc-name { font-weight: bold; font-size: 1.2em; color: #303284; margin-bottom: 0.5em; } -.pmc-stats { +.pmc-stats { color: #666; display: flex; gap: 1.5em; @@ -51,4 +51,4 @@ h1 { .intro { max-width: 800px; color: #555; -} \ No newline at end of file +} diff --git a/atr/templates/root.html b/atr/templates/root.html index 7e4643d..9bb757e 100644 --- a/atr/templates/root.html +++ b/atr/templates/root.html @@ -9,7 +9,7 @@ <body> <h1>Apache Trusted Releases</h1> <p class="intro">Welcome to the Apache Trusted Release platform. Below are the current Apache PMCs and their releases:</p> - + <ul class="pmc-list"> {% for pmc in pmcs %} <li class="pmc-item"> @@ -32,4 +32,4 @@ {% endfor %} </ul> </body> -</html> +</html> diff --git a/migrations/README b/migrations/README index 98e4f9c..2500aa1 100644 --- a/migrations/README +++ b/migrations/README @@ -1 +1 @@ -Generic single-database configuration. \ No newline at end of file +Generic single-database configuration. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tooling.apache.org For additional commands, e-mail: dev-h...@tooling.apache.org