mirrors-mypy
openapi-spec-validator
mirrors-mypy | openapi-spec-validator | |
---|---|---|
4 | 2 | |
264 | 334 | |
1.5% | 1.5% | |
5.3 | 8.0 | |
17 days ago | 9 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mirrors-mypy
-
How I start every new Python backend API project
repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - id: trailing-whitespace - id: check-merge-conflict - id: check-yaml args: [--unsafe] - id: check-json - id: detect-private-key - id: end-of-file-fixer - repo: https://github.com/timothycrosley/isort rev: 5.10.1 hooks: - id: isort - repo: https://github.com/psf/black rev: 22.8.0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 rev: 3.9.2 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.971 hooks: - id: mypy args: [ --warn-unused-configs, --ignore-missing-imports, --disallow-untyped-defs, --follow-imports=silent, --install-types, --non-interactive ]
-
Should I follow the warnings in Pycharm? Does anyone do this?
repo: https://github.com/pre-commit/mirrors-mypy rev: v0.961 hooks:
-
Error: Cannot find implementation or library stub for module named "pytest" when run from pre-commit
default_language_version: python: python3.10 default_stages: [commit, push] repos: #... Other hooks - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.961 hooks: - args: ["--verbose"] description: Type checking for Python id: mypy
-
Python Code Quality - Improve the quality of your Python code with linters, code formatters, and security vulnerability scanners
yaml repos: - repo: https://github.com/myint/autoflake rev: v1.4 hooks: - id: autoflake args: - --in-place - --remove-all-unused-imports - --expand-star-imports - --remove-duplicate-keys - --remove-unused-variables - repo: https://github.com/asottile/pyupgrade rev: v2.29.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/PyCQA/isort rev: 5.9.3 hooks: - id: isort - repo: https://github.com/psf/black rev: 21.10b0 hooks: - id: black args: [--safe, --quiet] - repo: https://github.com/PyCQA/flake8 rev: 4.0.1 hooks: - id: flake8 - repo: local hooks: - id: pylint name: pylint entry: pylint language: system types: [python] args: [ "-rn", "-sn", ] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.910-1 hooks: - id: mypy name: mypy entry: mypy language: python types: [python] args: [] require_serial: true - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.4.1 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88]
openapi-spec-validator
-
How I start every new Python backend API project
openapi-spec-validator
-
Validating RESTful-ness of Flask API
I did find https://github.com/p1c2u/openapi-spec-validator and https://github.com/p1c2u/openapi-schema-validator, but I'm pretty new to the devops world so I'm not sure if these are exactly what I'm looking for. Any recommendations or advice is appreciated.
What are some alternatives?
autoflake - Removes unused imports and unused variables as reported by pyflakes
openapi-linter - Is your OpenAPI Spec ready for SDK generators?
pyupgrade - A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.
openapi-schema-validator - OpenAPI schema validator is a Python library that validates schema against OpenAPI Schema Specification v3.0 and v3.1
mirrors-prettier - mirror of the `prettier` npm package for pre-commit
falcon-apispec - apispec plugin that generates OpenAPI specification (aka Swagger Docs) for Falcon web applications.
reorder-python-imports - Rewrites source to reorder python imports
full-stack-fastapi-template - Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
isort - A Python utility / library to sort imports. [Moved to: https://github.com/PyCQA/isort]
flake8
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production