Skip to content

Commit 147f98f

Browse files
behdadclaude
andcommitted
Remove black and flake8 linting
- Remove lint job from CI workflow - Remove black and flake8 from pre-commit hooks - Remove black from requirements-dev.txt - Remove [tool.black] configuration from pyproject.toml - Keep mypy and basic pre-commit hooks Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 90715f6 commit 147f98f

4 files changed

Lines changed: 0 additions & 57 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -102,29 +102,3 @@ jobs:
102102
echo 'fn main() { println!("{}", data_get(128)); }' >> test_large.rs
103103
rustc test_large.rs
104104
./test_large
105-
106-
lint:
107-
name: Lint with Black and Flake8
108-
runs-on: ubuntu-latest
109-
110-
steps:
111-
- uses: actions/checkout@v4
112-
113-
- name: Set up Python
114-
uses: actions/setup-python@v5
115-
with:
116-
python-version: "3.11"
117-
118-
- name: Install linters
119-
run: |
120-
python -m pip install --upgrade pip
121-
pip install flake8
122-
123-
# Disabled: black has version compatibility issues
124-
# - name: Check code formatting with Black
125-
# run: |
126-
# black --check packTab
127-
128-
- name: Lint with Flake8
129-
run: |
130-
flake8 packTab --max-line-length=132 --extend-ignore=E203,W503,F403,F405

.pre-commit-config.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ repos:
1414
- id: check-toml
1515
- id: debug-statements
1616

17-
- repo: https://github.com/psf/black
18-
rev: 24.1.1
19-
hooks:
20-
- id: black
21-
language_version: python3
22-
23-
- repo: https://github.com/PyCQA/flake8
24-
rev: 7.0.0
25-
hooks:
26-
- id: flake8
27-
args: ['--max-line-length=88', '--extend-ignore=E203,W503']
28-
2917
- repo: https://github.com/pre-commit/mirrors-mypy
3018
rev: v1.8.0
3119
hooks:

pyproject.toml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,6 @@ ucdxml = [
4747
[tool.setuptools.packages.find]
4848
include = ["packTab*"]
4949

50-
[tool.black]
51-
line-length = 132
52-
target-version = ['py38', 'py39', 'py310', 'py311', 'py312', 'py313', 'py314']
53-
include = '\.pyi?$'
54-
extend-exclude = '''
55-
/(
56-
# directories
57-
\.eggs
58-
| \.git
59-
| \.hg
60-
| \.mypy_cache
61-
| \.tox
62-
| \.venv
63-
| build
64-
| dist
65-
)/
66-
'''
67-
6850
[tool.mypy]
6951
python_version = "3.8"
7052
warn_return_any = true

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pytest>=7.0.0
55
pytest-cov>=4.0.0
66

77
# Code quality
8-
black>=23.0.0
98
mypy>=1.0.0
109

1110
# Documentation (optional, uncomment if needed)

0 commit comments

Comments
 (0)