Skip to content

Commit

Permalink
feat(build): .pre-commit-config.yaml has been actualized
Browse files Browse the repository at this point in the history
  • Loading branch information
alexted committed Jan 9, 2025
1 parent ab09478 commit d1cb8ad
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 41 deletions.
47 changes: 13 additions & 34 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-ast
- id: check-executables-have-shebangs
Expand All @@ -12,7 +12,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.13.0
rev: v9.20.0
hooks:
- id: commitlint
stages: [commit-msg]
Expand All @@ -26,41 +26,22 @@ repos:
args: [--prose-wrap=always]

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.1
rev: v0.17.1
hooks:
- id: markdownlint-cli2

- repo: local
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.6
hooks:
- id: black
name: black
language: system
entry: poetry run black
require_serial: true
types: [python]

- id: flake8
name: flake8
language: system
entry: poetry run flake8 --config .flake8 --statistics
require_serial: true
types: [python]

- id: isort
name: isort
language: system
entry: poetry run isort
require_serial: true
types: [python]
- id: ruff-format
- id: ruff
args: [ --fix, --unsafe-fixes ]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
name: mypy
language: system
entry: poetry run dmypy run --timeout 3600 src
require_serial: true
pass_filenames: false
files: ^src/.+$
exclude: ^tests/.+$
args: [ --no-strict-optional, --ignore-missing-imports ]

exclude: |
(?x)^(
Expand All @@ -71,7 +52,5 @@ ci:
autofix_commit_msg: "refactor(pre-commit): Apply hook auto fixes"
autoupdate_commit_msg: "build(pre-commit): Apply hook rev updates"
skip:
- black
- flake8
- isort
- ruff
- mypy
13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[build-system]
requires = ['setuptools>=68.0.0', "wheel", 'Cython>=3.0.0']
build-backend = 'setuptools.build_meta'

[project]
name = "prometheus-fastapi-instrumentator"
version = "7.0.0"
Expand Down Expand Up @@ -35,10 +31,10 @@ classifiers=[
'Topic :: Internet',
"Typing :: Typed",
]
requires-python = '>=3.9'
readme = "README.md"
keywords = ["prometheus", "monitoring", "instrumentation", "fastapi", "exporter", "metrics"]
dynamic = ["dependencies"]
requires-python = '>=3.9'

[project.urls]
Homepage = 'https://github.com/trallnag/prometheus-fastapi-instrumentator'
Expand Down Expand Up @@ -66,8 +62,12 @@ uvicorn = ">=0.28.0"
gunicorn = "^21.2.0"
fastapi = "^0.110.0"

[build-system]
requires = ['setuptools>=68.0.0', "wheel", 'Cython>=3.0.0']
build-backend = 'setuptools.build_meta'

[tool.mypy]
python_version = ">=3.9"
python_version = "3.13"
ignore_missing_imports = true
allow_redefinition = true
disallow_untyped_defs = true
Expand All @@ -79,7 +79,6 @@ show_error_codes = true

[tool.ruff]
src = ["src"]
target-version = "py313"
line-length = 120
fix = true
unsafe-fixes = true
Expand Down

0 comments on commit d1cb8ad

Please sign in to comment.