Skip to content

Commit

Permalink
config options for black
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshshukla99 committed Apr 6, 2023
1 parent ed00147 commit ae16533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Code Reviews are super-useful: another contributor can review the code, which me

- **Code Formatters:** We follow Astropy, enforcing this style guide using the black code formatter, see [The Black Code Style](https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html) for details. Please run

`black -l 100 stingray`
`black stingray`

before each commit
- **Imports:**
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ skip_install = true
changedir = .
description = check code style, e.g. with flake8
deps = flake8
commands = flake8 stingray --count --max-line-length=100 --ignore=W605
commands = flake8 stingray --count

[testenv:black]
skip_install = true
changedir = .
description = use black
deps =
black ~= 23.1.0
commands = black -l 100 --check stingray
commands = black --check stingray

0 comments on commit ae16533

Please sign in to comment.