Skip to content
Draft

black #195

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
7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = false

[*.{py,ini,yaml,yml,rst}]
[*.py]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{ini,yaml,yml,rst}]
trim_trailing_whitespace = true
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Install dependencies
run: make deps

- name: Lint with flake8
- name: Run linters
run: make lint
- name: Check for unfinished code
run: make fixme-check
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ deep-clean: clean clean-docs

# Linting

.PHONY: black
black:
poetry run black $(PACKAGE) tests

.PHONY: lint
lint:
poetry run flake8 --statistics --count
poetry run black --check $(PACKAGE) tests
poetry check

.PHONY: fixme-check
Expand Down
Loading