Skip to content

Commit

Permalink
Add configuration for black to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Oct 27, 2023
1 parent 63b8aaf commit b639e2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install Dependencies
run: pip install -r requirements/lint.txt
- name: Black Format Check
run: black --check . --exclude samples/
run: black --check .
- name: Run pylint
run: make lint

Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ version_file = "src/codemodder/_version.py"
[tool.pytest.ini_options]
# Ignore integration tests and ci tests by default
testpaths = ["tests"]

[tool.black]
extend-exclude = '''
/(
tests/samples |
src/codemodder/_version.py
)/
'''

0 comments on commit b639e2a

Please sign in to comment.