Skip to content

Commit

Permalink
Merge pull request #112 from caas-team/chore/CleanOutdatedFiles
Browse files Browse the repository at this point in the history
Chore/clean outdated files
  • Loading branch information
samuel-esp authored Dec 6, 2024
2 parents 73e1b6c + 0cd28bf commit c4a007e
Show file tree
Hide file tree
Showing 28 changed files with 1,023 additions and 1,049 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/issue-template.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
name: Issue Template
about: The general template for issues
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

<!--
Use this issue template for pointing out a general issue.
-->

## Issue

<!--
Briefly describe the issue.
-->


### Problem to solve

<!-- Include the following detail as necessary:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/end2end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ jobs:
exit 1
fi
echo "Deployment py-kube-downscaler OK"
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
path: coverage.xml
145 changes: 69 additions & 76 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
minimum_pre_commit_version: 1.21.0
fail_fast: true
repos:
# meta

Expand All @@ -7,121 +7,114 @@ repos:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: https://codeberg.org/hjacobs/kube-manifest-lint
rev: 0.2.0
hooks:
- id: kube-manifest-lint

# formatters
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.8.2
hooks:
- id: reorder-python-imports

- repo: https://github.com/ambv/black
rev: 22.8.0
hooks:
- id: black

- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
hooks:
- id: pyupgrade
stages: [push]

# linters
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
args: ["-x", "tests"]
stages: [push]

- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: pydocstyle
args: ["--ignore=D10,D21,D202"]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: no-commit-to-branch
args: [--branch, main]
- id: check-added-large-files
- id: check-docstring-first
- id: debug-statements
- id: check-ast
- id: check-builtin-literals
- id: detect-private-key
- id: mixed-line-ending
- id: name-tests-test
args: ["--django"]

- repo: local
hooks:
- id: prevent-todo-comments
name: prevent todo comments
entry: '# *(TODO|FIXME)\b' # matches a python comment beginning with "TODO" or "FIXME"
language: pygrep
files: \.py$
- id: prevent-too-small-headings
name: prevent too small headings
entry: "^#{5,} " # matches a h5 or smaller markdown heading
language: pygrep
files: \.md$
- id: prevent-invalid-alert-types
name: prevent invalid alert types
entry: '(?i)^> \[!(?!\b(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION)\b).+\]' # matches a github markdown callout/alert that doesn't use one of the supported keywords
language: pygrep
files: \.md$
- id: safety
name: safety
entry: safety
language: system
pass_filenames: false
args: ["check", "--bare"]
stages: [push]

stages: [pre-push]
- id: poetry
name: poetry
description: Validates the structure of the pyproject.toml file
entry: poetry check
language: system
pass_filenames: false
files: ^pyproject.toml$
stages: [push]
stages: [pre-push]

- repo: https://github.com/adrienverge/yamllint
rev: v1.28.0
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.24
hooks:
- id: yamllint
args: ["--strict", "-d", "{rules: {line-length: {max: 180}}}"]
#
exclude: >
(?x)^(
^{{.*}}.*\.yaml$|
^unsupported/helm-chart/templates/.*$
)
#
- id: helmlint

# formatters
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.14.0
hooks:
- id: reorder-python-imports

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format

# linters
- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
hooks:
- id: bandit
args: ["-x", "tests"]
stages: [pre-push]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies: [types-pytz]
additional_dependencies: [types-pytz, types-requests]

- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
stages: [commit] # required
stages: [pre-commit] # required

# miscellaneous
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: check-builtin-literals
- id: detect-private-key
- id: mixed-line-ending
- id: name-tests-test
args: ["--django"]

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
# - id: rst-backticks
- id: python-use-type-annotations
- id: python-no-log-warn
- id: python-no-eval
- id: python-check-mock-methods
- id: python-check-blanket-noqa

# commit-msg
# http://jorisroovers.com/gitlint/#using-gitlint-through-pre-commit
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.4.1
hooks:
- id: prettier
files: \.md$

- repo: https://github.com/jorisroovers/gitlint
rev: v0.17.0
rev: v0.19.1
hooks:
- id: gitlint
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dist: bionic
sudo: yes
language: python
python:
- "3.8"
- "3.9"
services:
- docker
install:
Expand Down
34 changes: 0 additions & 34 deletions Makefile

This file was deleted.

Loading

0 comments on commit c4a007e

Please sign in to comment.