Skip to content

Commit

Permalink
EditorConfig specification for the project and minor tooling improvem…
Browse files Browse the repository at this point in the history
…ents (#1778)
  • Loading branch information
asnare authored May 28, 2024
1 parent 089b248 commit 407d45c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Top-most EditorConfig file.
root = true

# Universal settings.
[*]
indent_style = space
indent_size = 4
tab_width = 8
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[Makefile]
indent_style = tab
indent_size = tab

[*.{json,yml}]
indent_size = 2
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ integration:
coverage:
hatch run coverage && open htmlcov/index.html

.PHONY: all clean dev lint fmt test integration coverage
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fmt = ["black . --extend-exclude 'tests/unit/source_code/samples/*'",
"mypy --disable-error-code 'annotation-unchecked' --exclude 'tests/unit/source_code/samples/*' .",
"pylint --output-format=colorized -j 0 src tests"]
verify = ["black --check . --extend-exclude 'tests/unit/source_code/samples/*'",
"ruff .",
"ruff check .",
"mypy --exclude 'tests/unit/source_code/samples/*' .",
"pylint --output-format=colorized -j 0 src tests"]
lint = ["pylint --output-format=colorized -j 0 src tests"]
Expand Down

0 comments on commit 407d45c

Please sign in to comment.