Skip to content

Commit

Permalink
another way of doing actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellabitta committed Jun 24, 2024
1 parent efc4eda commit 536dda7
Show file tree
Hide file tree
Showing 7 changed files with 1,933 additions and 512 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/black.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/flake8.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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.11'
- name: flake8
run: |
pip install `egrep -o 'flake8==\S+' requirements.txt` # install our version of flake8
flake8 web/ --config wikimedia/setup.cfg
- name: black
run: |
pip install `egrep -o 'black==\S+' requirements.txt` # install our version of black
black --check --diff . # Uses pyproject.toml
- name: mypy
run: |
pip install -r requirements.txt # install a full environment for mypy
cd wikimedia
PYTHONPATH=. mypy
80 changes: 79 additions & 1 deletion poetry.lock

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

8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ 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"
mypy = "^1.10.0"

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

0 comments on commit 536dda7

Please sign in to comment.