Skip to content
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ lib64
src/plone_code_analysis.egg-info
src/build
/pyvenv.cfg
.flakeheaven_cache
1 change: 0 additions & 1 deletion docker-entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import os
import sys


ACTIONS = {
"check": run_checks,
"format": run_formatters,
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ include = '\.pyi?$'
profile = "black"
force_alphabetical_sort = true
force_single_line = true
lines_after_imports = 2
line_length = 120

[tool.flakeheaven]
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
src/
black==25.1.0
black==26.3.1
flake8-blind-except==0.2.1
flake8-debugger==4.1.2
flake8-print==5.0.0
flakeheaven==3.3.0
isort==6.0.1
pyroma==4.2
tomli==2.2.1
zpretty==3.1.0
isort==8.0.1
pyroma==5.0.1
tomli==2.4.1
zpretty==4.0.0
1 change: 0 additions & 1 deletion src/plone_code_analysis/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from plone_code_analysis.logger import logger
from plone_code_analysis.settings import checks_from_settings


CHECKS = {
"black": [
run_command,
Expand Down
1 change: 0 additions & 1 deletion src/plone_code_analysis/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from plone_code_analysis.logger import logger
from plone_code_analysis.settings import formatters_from_settings


FORMATTERS = {
"isort": [
run_command,
Expand Down
1 change: 0 additions & 1 deletion src/plone_code_analysis/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import re


LOG_LEVEL = {
"INFO": logging.INFO,
"DEBUG": logging.DEBUG,
Expand Down
1 change: 0 additions & 1 deletion src/plone_code_analysis/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import tomli


SECTION = "tool.plone-code-analysis"


Expand Down
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Installer for the plone_code_analysis package."""

from pathlib import Path
from setuptools import setup


long_description = Path("README.md").read_text()


Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest configuration."""

from pathlib import Path

import os
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/configs/foo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Foo package"""
import logging

import logging

logger = logging.getLogger("logger")
2 changes: 1 addition & 1 deletion tests/fixtures/configs/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Installer for the foo package."""
from setuptools import setup

from setuptools import setup

setup(
name="foo",
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/packages/not_ok/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ include = '\.pyi?$'
profile = "black"
force_alphabetical_sort = true
force_single_line = true
lines_after_imports = 2
line_length = 120

[tool.flakeheaven]
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/packages/ok/foo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

import logging


logger = logging.getLogger("logger")
1 change: 0 additions & 1 deletion tests/fixtures/packages/ok/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ include = '\.pyi?$'
profile = "black"
force_alphabetical_sort = true
force_single_line = true
lines_after_imports = 2
line_length = 120

[tool.flakeheaven]
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/packages/ok/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from pathlib import Path
from setuptools import setup


long_description = f"""
{Path("README.md").read_text()}\n
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/package/test_check.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Test plone_code_analysis.settings."""

from pathlib import Path
from plone_code_analysis import check
from plone_code_analysis import settings

import os
import pytest


PCK_OK = Path("tests/fixtures/packages/ok").resolve()
PCK_NOK = Path("tests/fixtures/packages/not_ok").resolve()

Expand Down
2 changes: 1 addition & 1 deletion tests/package/test_settings.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Test plone_code_analysis.settings."""

from pathlib import Path
from plone_code_analysis import settings

import pytest


CONFIGS_PATH = Path("tests/fixtures/configs").resolve()


Expand Down
Loading