Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernise precommit script #1432

Merged
merged 2 commits into from
Oct 6, 2020
Merged

Modernise precommit script #1432

merged 2 commits into from
Oct 6, 2020

Conversation

Anthchirp
Copy link
Member

remove Python2/3 bridging capability

The previous script allowed running an internal Python 3.6 installation so black could be used even with a Python 2.7 base installation. Since we now only support 3.6+ developer installs this entire logic can be scrapped. Existing developer installations should not be affected.

embrace conda

Similarly, we only support the precommit installation logic in a conda environment. If you have your own setup then you can set up pre-commits manually, but this use case will no longer be supported by our automated precommit setup. Again, existing setups will not be affected.

modernize code

lru_cache. pathlib. f-strings!

* remove Python2/3 bridging capability
* embrace conda
* modernize code
@Anthchirp Anthchirp self-assigned this Sep 26, 2020
@codecov
Copy link

codecov bot commented Sep 26, 2020

Codecov Report

Merging #1432 into master will decrease coverage by 0.12%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #1432      +/-   ##
==========================================
- Coverage   65.31%   65.19%   -0.13%     
==========================================
  Files         617      615       -2     
  Lines       69650    70027     +377     
  Branches     9557     9740     +183     
==========================================
+ Hits        45495    45657     +162     
- Misses      22322    22502     +180     
- Partials     1833     1868      +35     

@Anthchirp Anthchirp merged commit 437e31c into master Oct 6, 2020
@Anthchirp Anthchirp deleted the precommitbx branch October 6, 2020 10:07
Anthchirp added a commit that referenced this pull request Oct 7, 2020
Anthchirp added a commit that referenced this pull request Oct 7, 2020
dagewa pushed a commit that referenced this pull request Oct 14, 2020
dagewa pushed a commit that referenced this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant