Skip to content

Commit

Permalink
Merge pull request #119 from florianfischer91/add_black_and_isort
Browse files Browse the repository at this point in the history
Clorm is now formatted with black and isort!
  • Loading branch information
daveraja committed Oct 9, 2022
2 parents 84cfb3c + dfc10a4 commit 7806260
Show file tree
Hide file tree
Showing 62 changed files with 11,210 additions and 8,487 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: install prerequisites
shell: pwsh
run: |
pip install -r requirements.txt
pip install -r requirements.txt -r requirements-dev.txt
- name: install clorm
shell: pwsh
Expand All @@ -37,6 +37,10 @@ jobs:
python -VV
pip list
- uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files

- name: test
shell: pwsh
run: |
Expand Down
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: local
hooks:
- id: black
name: black
entry: black .
types: [python]
language: system
pass_filenames: false

- id: isort
name: isort
entry: isort .
types: [python]
language: system
pass_filenames: false
1 change: 0 additions & 1 deletion clorm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
__email__ = "daver@gemarex.com.au"
__copyright__ = "Copyright (c) 2018 David Rajaratnam"
__license__ = "MIT"

0 comments on commit 7806260

Please sign in to comment.