Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmc committed Nov 21, 2024
1 parent 564468f commit 7f7be7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,23 @@ jobs:
# - name: Type checking
# run: mypy -p dgcv

# Pending to be added in the near future:
# * flake8 src --count --exit-zero --max-complexity=10 --statistics
- name: Linting with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src --count --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 99 chars wide
flake8 . --count --exit-zero --max-complexity=10 --statistics
flake8 src --count --exit-zero --statistics
- name: Run tests
working-directory: ./tests # Run in subdir to use installed lib, not sources
run: |
pytest
source dgcv_venv/bin/activate
pytest tests
deactivate
- name: Generate coverage
run: |
source dgcv_venv/bin/activate
pytest --cov=. --cov-report=xml tests
deactivate
2 changes: 1 addition & 1 deletion attic/curves_creation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# (c) 2023/24 RTE
# (c) 2023/24 RTE
# Developed by Grupo AIA
# [email protected]
# [email protected]
Expand Down
2 changes: 1 addition & 1 deletion attic/steady_state.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# (c) 2023/24 RTE
# (c) 2023/24 RTE
# Developed by Grupo AIA
# [email protected]
# [email protected]
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/helps.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def write_output(file, text):
for line in text.splitlines():
file.write(f"\t{line}\n")
file.write(f"\n")
file.write("\n")


def generate_help_files():
Expand Down

0 comments on commit 7f7be7f

Please sign in to comment.