Upgrade pre-commit hooks and reformat code

main
Jaap Joris Vens 2023-02-21 00:21:13 +01:00
rodzic 94af72cca8
commit 20edda4936
6 zmienionych plików z 25 dodań i 26 usunięć

Wyświetl plik

@ -1,24 +1,11 @@
repos:
- repo: https://github.com/rtts/djhtml
rev: v1.5.2
hooks:
- id: djhtml
- repo: https://github.com/myint/autoflake
rev: v2.0.0
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports']
- repo: https://github.com/pycqa/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
args: ['--resolve-all-configs', '--line-length', '88']
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
@ -26,3 +13,11 @@ repos:
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/rtts/djhtml
rev: 3.0.0
hooks:
- id: djhtml
- id: djcss
types: [scss]
- id: djjs

Wyświetl plik

@ -3,9 +3,9 @@ import os
import re
import shutil
import cms
from pip._internal.operations import freeze as pip
import cms
import example

Wyświetl plik

@ -1,10 +1,9 @@
from cms import registry
from django import template
from django.shortcuts import reverse
from django.utils.safestring import mark_safe
from markdown import markdown as md
from cms import registry
MARKDOWN_EXTENSIONS = ["extra", "smarty"]
register = template.Library()

Wyświetl plik

@ -1,2 +1,3 @@
[tool.isort]
profile = "black"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

Wyświetl plik

@ -1,4 +1,7 @@
[flake8]
max-line-length = 88
select = C,E,F,W,B,B950
extend-ignore = E203, E501
extend-ignore = E203
[isort]
profile = black
known_third_party = cms

Wyświetl plik

@ -1,7 +1,6 @@
#!/usr/bin/env python
from setuptools import find_packages, setup
import cms
from setuptools import find_packages, setup
with open("README.md", "r") as fh:
long_description = fh.read()
@ -22,7 +21,10 @@ setup(
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
(
"License :: OSI Approved :: GNU Affero General Public License v3 or later"
" (AGPLv3+)"
),
"Operating System :: OS Independent",
],
python_requires=">=3.8",
@ -34,7 +36,6 @@ setup(
"easy-thumbnails",
"libsass",
"markdown",
"pre-commit",
"psycopg2",
"pylibmc",
],