Skip to content

Commit 4b238c2

Browse files
committed
move autoflake8 CLI flags to setup.cfg
pre-commit autoupdate fix typo in readme and docs_rst/introduction.rst orientated->oriented
1 parent 175077e commit 4b238c2

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ repos:
2222
- id: black-jupyter
2323

2424
- repo: https://github.com/PyCQA/flake8
25-
rev: 4.0.1
25+
rev: 5.0.4
2626
hooks:
2727
- id: flake8
2828
additional_dependencies: [flake8-bugbear]
2929

3030
- repo: https://github.com/asottile/pyupgrade
31-
rev: v2.34.0
31+
rev: v2.37.3
3232
hooks:
3333
- id: pyupgrade
3434
args: [--py38-plus]
3535

3636
- repo: https://github.com/pre-commit/mirrors-mypy
37-
rev: v0.961
37+
rev: v0.971
3838
hooks:
3939
- id: mypy
4040

@@ -49,25 +49,19 @@ repos:
4949
- id: trailing-whitespace
5050

5151
- repo: https://github.com/codespell-project/codespell
52-
rev: v2.1.0
52+
rev: v2.2.1
5353
hooks:
5454
- id: codespell
5555
stages: [commit, commit-msg]
5656
exclude_types: [csv, svg, html, yaml, jupyter]
5757

58-
- repo: https://github.com/myint/autoflake
59-
rev: v1.4
58+
- repo: https://github.com/PyCQA/autoflake
59+
rev: v1.5.1
6060
hooks:
6161
- id: autoflake
62-
args:
63-
- --in-place
64-
- --remove-unused-variables
65-
- --remove-all-unused-imports
66-
- --expand-star-imports
67-
- --ignore-init-module-imports
6862

6963
- repo: https://github.com/nbQA-dev/nbQA
70-
rev: 1.3.1
64+
rev: 1.4.0
7165
hooks:
7266
- id: nbqa-pyupgrade
7367
args: [--py38-plus]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ New contributors are welcome, please see our [Code of Conduct.](code-of-conduct.
3939

4040
## Future of This Repository
4141

42-
The Crystal Toolkit repository is home of an object-orientated Python framework for rendering materials science data based on the schema employed by the Materials Project.
42+
The Crystal Toolkit repository is home of an object-oriented Python framework for rendering materials science data based on the schema employed by the Materials Project.
4343

4444
The custom Plotly Dash components that power Crystal Toolkit are now maintained in a [separate repository](https://github.com/materialsproject/dash-mp-components) for ease of development, as well as the [custom React components](https://github.com/materialsproject/mp-react-components). These components were formerly included in the Crystal Toolkit repo, and are still considered part of Crystal Toolkit in spirit.
4545

docs_rst/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Toolkit" app `available here <https://next-gen.materialsproject.org/toolkit>`_.
2424
Crystal Toolkit Web Framework
2525
-----------------------------
2626

27-
Crystal Toolkit is designed as a modular, object-orientated suite of UI components
27+
Crystal Toolkit is designed as a modular, object-oriented suite of UI components
2828
built upon the `Dash framework by Plotly <https://dash.plot.ly>`_. The Crystal Toolkit web app is just
2929
one example of using these components.
3030

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ per-file-ignores =
1010

1111
[tool:pytest]
1212
addopts = -p no:warnings
13+
14+
[autoflake]
15+
in-place = true
16+
remove-unused-variables = true
17+
remove-all-unused-imports = true
18+
expand-star-imports = true
19+
ignore-init-module-imports = true

0 commit comments

Comments
 (0)