Skip to content

Commit d07d619

Browse files
committed
Add configuration for black to pyproject.toml
1 parent 4dce8ee commit d07d619

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install Dependencies
3232
run: pip install -r requirements/lint.txt
3333
- name: Black Format Check
34-
run: black --check . --exclude samples/
34+
run: black --check .
3535
- name: Run pylint
3636
run: make lint
3737

‎pyproject.toml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ version_file = "src/codemodder/_version.py"
4040
[tool.pytest.ini_options]
4141
# Ignore integration tests and ci tests by default
4242
testpaths = ["tests"]
43+
44+
[tool.black]
45+
extend-exclude = '''
46+
/(
47+
tests/samples |
48+
src/codemodder/_version.py
49+
)/
50+
'''

0 commit comments

Comments
 (0)