Skip to content

Commit

Permalink
Fix black and flake8 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Jan 7, 2025
1 parent f178424 commit b33e8be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python --version
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install black flake8
make install-dev-tool
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -34,9 +34,6 @@ jobs:
- name: Test
run: |
cd src && nose2
- name: black
- name: dev tools
run: |
black --check src/
- name: flake8
run: |
flake8 src/builder/ --ignore E501,W503,E203,E722,E402
make run-dev-tool
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ docker-run-builder: docker-build-builder docker-build-lt
docker build -t tmt-data . -f docker/dockerfile-data;
./docker/stop-docker.sh;

install-dev-tool:
pip install black==24.10.0 flake8==7.1.1

run-dev-tool:
flake8 src/builder/ --ignore E501,W503,E203,E722,E402
black src/
1 change: 0 additions & 1 deletion src/generate_quality_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def init_logging(self, del_logs):
logger = logging.getLogger("")
console.setLevel(LOGLEVEL)


logger.addHandler(console)

fh = logging.FileHandler(logfile_error)
Expand Down

0 comments on commit b33e8be

Please sign in to comment.