Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add black. #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 18 additions & 0 deletions .github/workflows/lint-and-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Linting & formatting

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Lint - PEP8 & more (flake8)
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run black
run: black --check create_icon_theme.py
4 changes: 1 addition & 3 deletions create_icon_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

dest = join(dirname(__file__), "./theme/eos-icons.woff")
shutil.copyfile(
join(
dirname(__file__), "./node_modules/eos-icons/dist/fonts/eos-icons.woff"
),
join(dirname(__file__), "./node_modules/eos-icons/dist/fonts/eos-icons.woff"),
dest,
)

Expand Down
13 changes: 13 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
appdirs==1.4.4
black==20.8b1
click==7.1.2
fonttools==4.21.1
mccabe==0.6.1
mypy-extensions==0.4.3
pathspec==0.8.1
pycodestyle==2.7.0
pyflakes==2.3.0
regex==2021.3.17
toml==0.10.2
typed-ast==1.4.2
typing-extensions==3.7.4.3