mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Adds failing test for cwd problem.
This commit is contained in:
parent
d4c9f9075e
commit
aa9c77abe8
6 changed files with 69 additions and 28 deletions
4
testing/resources/prints_cwd_repo/manifest.yaml
Normal file
4
testing/resources/prints_cwd_repo/manifest.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- id: prints_cwd
|
||||
name: Prints Cwd
|
||||
entry: prints_cwd
|
||||
language: python
|
||||
0
testing/resources/prints_cwd_repo/prints_cwd/__init__.py
Normal file
0
testing/resources/prints_cwd_repo/prints_cwd/__init__.py
Normal file
5
testing/resources/prints_cwd_repo/prints_cwd/main.py
Normal file
5
testing/resources/prints_cwd_repo/prints_cwd/main.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import os
|
||||
|
||||
def func():
|
||||
print os.getcwd()
|
||||
return 0
|
||||
11
testing/resources/prints_cwd_repo/setup.py
Normal file
11
testing/resources/prints_cwd_repo/setup.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from setuptools import find_packages
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='prints_cwd',
|
||||
version='0.0.0',
|
||||
packages=find_packages('.'),
|
||||
entry_points={
|
||||
'console_scripts': ['prints_cwd = prints_cwd.main:func'],
|
||||
},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue