Skip to content

Commit

Permalink
Make all linting tools run from root instead of a subdirectory
Browse files Browse the repository at this point in the history
This should ensure they pick up any configuration in pyproject.toml
and .flake8

I also added some configuration for isort
  • Loading branch information
harrislapiroff committed Jul 21, 2023
1 parent bfbaaa1 commit c51c105
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[flake8]
max-line-length = 100
max-line-length = 100
exclude = .git,.venv,__pycache__,docs/source/conf.py,old,build,dist
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Install Python dependencies
run: poetry install --with=dev
- name: Run Flake8
run: poetry run flake8 trackthenews
run: poetry run flake8 .
- name: Run Black
run: poetry run black --check trackthenews
run: poetry run black --check .
- name: Run isort
run: poetry run isort --check --diff trackthenews
run: poetry run isort --check --diff .
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
line-length = 100
target-version = ['py39']

[tool.isort]
profile = "black"
multi_line_output = 3

[tool.poetry]
name = "trackthenews"
version = "0.2"
Expand Down

0 comments on commit c51c105

Please sign in to comment.