-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typing to signac.core.json. (#313)
* Add typing to signac.core.json. * Run mypy in continuous integration. * Remove unused FileNotFoundError (likely Python 2 legacy compatibility). * Ignore missing imports in mypy checks. * Define mypy config. * Ignore typing in syncutil dircmp_deep. * Fix error in print statement parentheses. * Add type ignores. * Remove unused format argument. * Ignore errors in custom logging level. * Run mypy on . instead of just signac package. * Update changelog. * Rename style-check to pre-checks. * Update signac/syncutil.py Co-Authored-By: Carl Simon Adorf <[email protected]> * Update signac/syncutil.py Co-authored-by: Carl Simon Adorf <[email protected]>
- Loading branch information
Showing
12 changed files
with
40 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ orbs: | |
win: circleci/[email protected] # Enables Windows executors | ||
|
||
jobs: | ||
style-check: | ||
pre-checks: | ||
docker: | ||
- image: circleci/python:3.8 | ||
|
||
|
@@ -19,18 +19,23 @@ jobs: | |
- run: | ||
name: install-dependencies | ||
command: | | ||
pip install --progress-bar off --user -U flake8==3.7.1 pydocstyle==5.0.2 | ||
pip install --progress-bar off --user -U flake8==3.7.1 pydocstyle==5.0.2 mypy==0.770 | ||
- run: | ||
name: style-check-code | ||
name: check-style | ||
command: | | ||
python -m flake8 --show-source . | ||
- run: | ||
name: style-check-doc-strings | ||
name: check-docstyle | ||
command: | | ||
pydocstyle | ||
- run: | ||
name: check-type-hints | ||
command: | | ||
mypy . | ||
linux-python-38: &linux-template | ||
docker: | ||
- image: circleci/python:3.8 | ||
|
@@ -180,25 +185,25 @@ workflows: | |
version: 2 | ||
test: | ||
jobs: | ||
- style-check | ||
- pre-checks | ||
- linux-python-38: | ||
requires: | ||
- style-check | ||
- pre-checks | ||
- linux-python-37: | ||
requires: | ||
- style-check | ||
- pre-checks | ||
- linux-python-36: | ||
requires: | ||
- style-check | ||
- pre-checks | ||
- linux-python-35: | ||
requires: | ||
- style-check | ||
- pre-checks | ||
- linux-pypy-3: | ||
requires: | ||
- linux-python-36 | ||
- windows-python-38: | ||
requires: | ||
- style-check | ||
- pre-checks | ||
- check-metadata: | ||
filters: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters