Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop to Main #66

Merged
merged 3 commits into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: tox

- name: Run pre-commit hooks
run: tox -e pre-commit
run: pre-commit run --all-files --config=.pre-commit-config-ci.yaml

- name: Upload coverage to Codecov
run: codecov
Expand Down
95 changes: 95 additions & 0 deletions .pre-commit-config-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-toml
- id: check-yaml
files: \.yaml$
- id: trailing-whitespace
exclude: (migrations/|tests/|docs/).*
- id: end-of-file-fixer
exclude: (migrations/|tests/|docs/).*
- id: check-added-large-files
exclude: (migrations/|tests/|docs/).*
- id: check-case-conflict
exclude: (migrations/|tests/|docs/).*
- id: check-merge-conflict
exclude: (migrations/|tests/|docs/).*
- id: check-docstring-first
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.2.1
hooks:
- id: pyproject-fmt

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.1
hooks:
- id: tox-ini-fmt

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [ "--config=pyproject.toml" ]
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/commitizen-tools/commitizen
rev: v3.28.0
hooks:
- id: commitizen
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
args: [ "-c", "pyproject.toml", "-r", "." ]
additional_dependencies: [ "bandit[toml]" ]
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: [ "--in-place", "--recursive", "--blank" ]
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.4.2
files: '\.rst$'

- repo: https://github.com/rstcheck/rstcheck
rev: "v6.2.4"
hooks:
- id: rstcheck
args: [ "--report-level=warning" ]
files: ^(docs/(.*/)*.*\.rst)
additional_dependencies: [ Sphinx==6.2.1 ]

- repo: local
hooks:
- id: pytest
name: Pytest
entry: poetry run pytest -v
language: system
types: [ python ]
stages: [ commit ]
pass_filenames: false
always_run: true
38 changes: 19 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
rev: 23.3.0
hooks:
- id: black
args: ["--config=pyproject.toml"]
args: [ "--config=pyproject.toml" ]
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/commitizen-tools/commitizen
Expand All @@ -56,15 +56,15 @@ repos:
rev: 1.7.4
hooks:
- id: bandit
args: ["-c", "pyproject.toml", "-r", "."]
args: [ "-c", "pyproject.toml", "-r", "." ]
additional_dependencies: [ "bandit[toml]" ]
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: ["--in-place", "--recursive", "--blank"]
args: [ "--in-place", "--recursive", "--blank" ]
exclude: (migrations/|tests/|docs/).*

- repo: https://github.com/adamchainz/blacken-docs
Expand All @@ -79,30 +79,30 @@ repos:
rev: "v6.2.4"
hooks:
- id: rstcheck
args: ["--report-level=warning"]
args: [ "--report-level=warning" ]
files: ^(docs/(.*/)*.*\.rst)
additional_dependencies: [Sphinx==6.2.1]
additional_dependencies: [ Sphinx==6.2.1 ]

- repo: local
hooks:
- id: pytest
name: Pytest
entry: poetry run pytest -v
language: system
types: [python]
stages: [commit]
types: [ python ]
stages: [ commit ]
pass_filenames: false
always_run: true

# - id: pylint
# name: pylint
# entry: pylint
# language: system
# types: [python]
# require_serial: true
# args:
# - "-rn"
# - "-sn"
# - "--rcfile=pyproject.toml"
# files: ^django_logging/
# exclude: (migrations/|tests/|docs/).*
- id: pylint
name: pylint
entry: pylint
language: system
types: [ python ]
require_serial: true
args:
- "-rn"
- "-sn"
- "--rcfile=pyproject.toml"
files: ^django_logging/
exclude: (migrations/|tests/|docs/).*