Skip to content

Commit e95dc94

Browse files
authored
Improve environment setup (.gitignore, pre-commit hooks, deps) (#40)
* Update `setup.py` file and add more patterns to `.gitignores` * Clean up redundant config files * Improve pre-commit hooks
1 parent f96657f commit e95dc94

File tree

11 files changed

+27
-1172
lines changed

11 files changed

+27
-1172
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
.*.sw*
77
dist/
88
*.egg-info
9-
*.egg
10-
*.egg/
9+
*.egg*/
1110
build/
1211
.build/
1312
_build/

.pre-commit-config.yaml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,26 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.0.1
5+
rev: v4.4.0
66
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-toml
11+
- id: check-added-large-files
1112

12-
- repo: https://github.com/ambv/black
13-
rev: 21.9b0
13+
- repo: https://github.com/asottile/pyupgrade
14+
rev: v3.3.1
1415
hooks:
15-
- id: black
16+
- id: pyupgrade
17+
args: [--py37-plus]
1618

1719
- repo: https://github.com/pycqa/isort
18-
rev: 5.9.3
20+
rev: 5.10.1
1921
hooks:
2022
- id: isort
21-
name: isort (python)
2223

23-
- repo: local
24+
- repo: https://github.com/psf/black
25+
rev: 22.10.0
2426
hooks:
25-
- id: flake8
26-
name: flake8
27-
stages: [commit]
28-
language: python
29-
entry: flake8
30-
types: [python]
27+
- id: black

.travis.yml

Lines changed: 0 additions & 171 deletions
This file was deleted.

environment.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)