diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index a78343c3..812b3ee7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,9 +15,9 @@ assignees: '' Steps to reproduce the behavior: 1. Go to '...' -1. Run '....' -1. Scroll down to '....' -1. See error +2. Run '....' +3. Scroll down to '....' +4. See error diff --git a/.github/ISSUE_TEMPLATE/documentation.md b/.github/ISSUE_TEMPLATE/documentation.md index c74b3408..ef18dcaf 100644 --- a/.github/ISSUE_TEMPLATE/documentation.md +++ b/.github/ISSUE_TEMPLATE/documentation.md @@ -11,7 +11,7 @@ assignees: '' For typos and doc fixes, please go ahead and: 1. Create an issue. -1. Fix the typo. -1. Submit a PR. +2. Fix the typo. +3. Submit a PR. Thanks! diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f344f9ce..93cb15a1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,13 +39,6 @@ repos: args: ["--maxkb=350", "--enforce-all"] - id: detect-private-key - - repo: https://github.com/asottile/pyupgrade - rev: v3.15.1 - hooks: - - id: pyupgrade - args: ["--py38-plus"] - name: Upgrade code - - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: @@ -75,6 +68,7 @@ repos: - mdformat-gfm #- mdformat-black - mdformat_frontmatter + args: ["--number"] exclude: README.md - repo: https://github.com/pre-commit/mirrors-prettier diff --git a/pyproject.toml b/pyproject.toml index 61127e5f..1580b762 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,12 +48,14 @@ ignore-words-list = "te, compiletime" [tool.ruff] line-length = 120 +target-version = "py38" # Enable Pyflakes `E` and `F` codes by default. lint.select = [ "E", "W", # see: https://pypi.org/project/pycodestyle "F", # see: https://pypi.org/project/pyflakes "S", # see: https://pypi.org/project/flake8-bandit "RUF018", # see: https://docs.astral.sh/ruff/rules/assignment-in-assert + "UP", # see: pyupgrade ] lint.extend-select = [ "I", # see: isort