Skip to content

Commit

Permalink
Update dependencies, pre-commit hooks and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MrThearMan committed Nov 22, 2022
1 parent cfd3a16 commit 68614a5
Show file tree
Hide file tree
Showing 9 changed files with 309 additions and 581 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Set up python
id: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Set up python
id: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

- name: Set up python
id: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down
52 changes: 9 additions & 43 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
repos:

- repo: https://github.com/hadialqattan/pycln
rev: v2.1.1
hooks:
- id: pycln
args: [
"--config=pyproject.toml",
]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
args: [
"--profile=black",
"--line-length=120"
]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
Expand All @@ -31,34 +14,17 @@ repos:
"--markdown-linebreak-ext=md"
]

- repo: https://github.com/ambv/black
rev: 22.8.0
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.128
hooks:
- id: black
args: [
"--line-length=120"
]
- id: ruff

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: flake8
exclude: ^tests/
args: [
"--max-line-length=120",
"--extend-ignore=E203,E501"
]
- id: isort

- repo: local
- repo: https://github.com/ambv/black
rev: 22.10.0
hooks:
- id: pylint
name: pylint
exclude: ^tests/
entry: env DJANGO_SETTINGS_MODULE=tests.django.settings poetry run pylint
language: system
types: [python]
args: [
"--score=n",
"--load-plugins=pylint_django",
"--django-settings-module=tests.django.settings",
]
- id: black
Loading

0 comments on commit 68614a5

Please sign in to comment.