Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4101ba1
add pkg-fourth
yyolk Mar 21, 2025
cc69667
update pre-commit-config
yyolk Mar 21, 2025
1e7e288
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 21, 2025
5b9948a
update .pre-commit-config.yaml
yyolk Mar 21, 2025
72ff0d9
update .pre-commit-config.yaml
yyolk Mar 21, 2025
0a82ebf
update precommit, relock
yyolk Mar 21, 2025
4580182
update functions for docstrings
yyolk Mar 21, 2025
d44c25c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 21, 2025
b5fe6e0
add docstring, intentional malformat
yyolk Mar 21, 2025
2d82827
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 21, 2025
56e2a76
Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"
yyolk Mar 24, 2025
a839ac5
update .pre-commit-config, see if pre-commit default install required
yyolk Mar 24, 2025
4bfb5a3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 24, 2025
e589efe
test local task
yyolk Mar 24, 2025
7a61be8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 24, 2025
0324466
update .pre-commit config
yyolk Mar 24, 2025
938bf38
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 24, 2025
0b0e61d
update CODEOWNERS
yyolk Mar 24, 2025
0f6b418
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 24, 2025
d83c842
intentional unsort
yyolk Mar 25, 2025
3cc647c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
z
d
f apple cat
g
a apple cat
b
c
165 changes: 89 additions & 76 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,62 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

# ci: {}

# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.5.0
# hooks:
# - id: check-added-large-files
# - id: check-shebang-scripts-are-executable
# - id: check-symlinks
# - id: check-docstring-first
# - id: check-toml
# - id: check-yaml
# - id: destroyed-symlinks
# - id: end-of-file-fixer
# - id: forbid-new-submodules
# - id: trailing-whitespace
# - id: name-tests-test
# - id: sort-simple-yaml
# files: .pre-commit-config.yaml
# - repo: local
# hooks:
# - id: ruff-format
# name: ruff-format
# entry: pdm run python -m ruff format --force-exclude
# language: system
# types_or:
# - python
# - pyi
# require_serial: true
# - id: toml-sort
# name: toml-sort
# entry: pdm run toml-sort
# language: system
# types:
# - toml
# # - id: pdm-sync
# # name: pdm-sync
# # entry: pdm sync
# # language: python
# # stages:
# # - post-checkout
# # - post-merge
# # always_run: true
# # - id: submodule-fetch-and-update
# # name: submodule-fetch-and-update
# # entry: ./tasks/update_submodules.py
# # language: python

default_install_hook_types:
- post-checkout
- post-merge
- pre-commit
# - pre-commit
- pre-push
default_stages:
- manual
- pre-push
- pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down Expand Up @@ -44,39 +93,50 @@ repos:
- id: ruff-format
# Avoid running on jypter notebooks
types_or: [ python, pyi ]
- repo: local
- repo: https://github.com/pdm-project/pdm
rev: 2.22.4
hooks:
- id: pdm-sync
name: pdm-sync
entry: pdm sync
language: python
stages:
- post-checkout
- post-merge
always_run: true
pass_filenames: false
- id: pdm-lock-check
name: pdm-lock-check
entry: pdm lock --check
- repo: local
hooks:
- id: codeowners-sort
name: codeowners-sort
language: python
files: ^pyproject.toml$
entry: ./tasks/codeowners_sort.py
pass_filenames: false
- id: mypy
name: mypy
entry: pdm run python -m mypy
language: system
types_or:
- python
- pyi
require_serial: true
- id: ruff
name: ruff
entry: pdm run python -m ruff check --force-exclude
language: system
types_or:
- python
- pyi
require_serial: true
files: ".github/CODEOWNERS"
# - id: pdm-sync
# name: pdm-sync
# entry: pdm sync
# language: python
# stages:
# - post-checkout
# - post-merge
# always_run: true
# pass_filenames: false
# - id: pdm-lock-check
# name: pdm-lock-check
# entry: pdm lock --check
# language: python
# files: ^pyproject.toml$
# pass_filenames: false
# - id: mypy
# name: mypy
# entry: pdm run python -m mypy
# language: system
# types_or:
# - python
# - pyi
# require_serial: true
# - id: ruff
# name: ruff
# entry: pdm run python -m ruff check --force-exclude
# language: system
# types_or:
# - python
# - pyi
# require_serial: true
# - id: ruff-format
# name: ruff-format
# entry: pdm run python -m ruff format --force-exclude
Expand All @@ -96,50 +156,3 @@ repos:
entry: found Copier update rejection files; review them and remove them
language: fail
files: \.rej$

# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.5.0
# hooks:
# - id: check-added-large-files
# - id: check-shebang-scripts-are-executable
# - id: check-symlinks
# - id: check-docstring-first
# - id: check-toml
# - id: check-yaml
# - id: destroyed-symlinks
# - id: end-of-file-fixer
# - id: forbid-new-submodules
# - id: trailing-whitespace
# - id: name-tests-test
# - id: sort-simple-yaml
# files: .pre-commit-config.yaml
# - repo: local
# hooks:
# - id: ruff-format
# name: ruff-format
# entry: pdm run python -m ruff format --force-exclude
# language: system
# types_or:
# - python
# - pyi
# require_serial: true
# - id: toml-sort
# name: toml-sort
# entry: pdm run toml-sort
# language: system
# types:
# - toml
# # - id: pdm-sync
# # name: pdm-sync
# # entry: pdm sync
# # language: python
# # stages:
# # - post-checkout
# # - post-merge
# # always_run: true
# # - id: submodule-fetch-and-update
# # name: submodule-fetch-and-update
# # entry: ./tasks/update_submodules.py
# # language: python

# ci: {}
Loading