-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
2,410 additions
and
353 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,4 +1,4 @@ | ||
# Security policy | ||
|
||
Security reports can be made via [Tidelift](https://tidelift.com/security). | ||
Tidelift will coordinate the fix and disclosure. | ||
Security reports can be made via [Tidelift](https://tidelift.com/security). Tidelift | ||
will coordinate the fix and disclosure. |
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
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 |
---|---|---|
|
@@ -2,13 +2,28 @@ name: Lint | |
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
PIP_DISABLE_PIP_VERSION_CHECK: 1 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- uses: pre-commit/[email protected] | ||
cache: pip | ||
- uses: pre-commit/[email protected] | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install -U tox | ||
- name: Mypy | ||
run: tox -e mypy |
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
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 |
---|---|---|
|
@@ -152,5 +152,8 @@ dmypy.json | |
# Cython debug symbols | ||
cython_debug/ | ||
|
||
# hatch-vcs | ||
src/*/_version.py | ||
|
||
# Jetbrains IDEs | ||
.idea/ |
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,86 +1,67 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.4 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
- id: ruff | ||
args: [--exit-non-zero-on-fix] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/PyCQA/autoflake | ||
rev: v2.0.2 | ||
hooks: | ||
- id: autoflake | ||
name: autoflake | ||
args: | ||
[ | ||
"--in-place", | ||
"--remove-unused-variables", | ||
"--remove-all-unused-imports", | ||
] | ||
language: python | ||
files: \.py$ | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-2020, flake8-errmsg, flake8-implicit-str-concat] | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.10.0 | ||
hooks: | ||
- id: python-check-blanket-noqa | ||
- id: python-no-log-warn | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: forbid-submodules | ||
- id: trailing-whitespace | ||
exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md | ||
|
||
- repo: https://github.com/PyCQA/pydocstyle | ||
rev: 6.3.0 | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.29.2 | ||
hooks: | ||
- id: pydocstyle | ||
args: ["--convention", "google"] | ||
files: "src/" | ||
- id: check-github-workflows | ||
- id: check-renovate | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.1.1 | ||
- repo: https://github.com/rhysd/actionlint | ||
rev: v1.7.1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [pytest, types-freezegun, types-setuptools] | ||
args: [--strict] | ||
- id: actionlint | ||
|
||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: 0.9.2 | ||
rev: 2.2.3 | ||
hooks: | ||
- id: pyproject-fmt | ||
|
||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.12.2 | ||
rev: v0.19 | ||
hooks: | ||
- id: validate-pyproject | ||
|
||
- repo: https://github.com/tox-dev/tox-ini-fmt | ||
rev: 1.0.0 | ||
rev: 1.3.2 | ||
hooks: | ||
- id: tox-ini-fmt | ||
|
||
- repo: https://github.com/rbubley/mirrors-prettier | ||
rev: v3.3.3 | ||
hooks: | ||
- id: prettier | ||
args: [--prose-wrap=always, --print-width=88] | ||
exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md | ||
|
||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes | ||
|
||
ci: | ||
autoupdate_schedule: quarterly |
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,2 +1,19 @@ | ||
python: | ||
pip_install: true | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
# Project page: https://readthedocs.org/projects/python-humanize/ | ||
|
||
version: 2 | ||
|
||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3" | ||
|
||
commands: | ||
- pip install -U tox | ||
- tox -e docs | ||
- mkdir _readthedocs | ||
- mv site _readthedocs/html |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.