Skip to content

Commit

Permalink
Add black + flake8 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellabitta authored Jun 25, 2024
1 parent c1b9626 commit 969a495
Show file tree
Hide file tree
Showing 17 changed files with 2,465 additions and 844 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lints

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install dev dependencies
run: |
pip install poetry
poetry install
- name: flake8
run: |
poetry run flake8 wikimedia/ --config wikimedia/setup.cfg
- name: black
run: |
poetry run black --check --diff .
204 changes: 196 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ s3fs = "^2024.6.0"
mwparserfromhell = "^0.6.6"
validators = "^0.28.3"
requests = "^2.32.3"
beautifulsoup4 = "^4.12.3"

[tool.poetry.dev-dependencies]
[tool.black]
line-length = 88
extend-exclude = "sdc-sync.py"

[tool.poetry.group.dev.dependencies]
black = "24.4.2"
flake8 = "7.1.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
Loading

0 comments on commit 969a495

Please sign in to comment.